Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

高德地图能否下载其它风格的瓦片? #3

Open
786442592 opened this issue Sep 23, 2019 · 2 comments
Open

高德地图能否下载其它风格的瓦片? #3

786442592 opened this issue Sep 23, 2019 · 2 comments

Comments

@786442592
Copy link

官方提供的https://lbs.amap.com/api/javascript-api/example/personalized-map/set-theme-style

baseUrl: #瓦片下载地址
amap: "http://wprd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scl=1&style=5&x={x}&y={y}&z={z}"
设置的下载地址参数怎样对应?

@lhq-github
Copy link
Owner

他这种样式应该是动态渲染了,你配置好样式后,它会生成一个css文件。例如
tile-loader/src/main/resources/offline-maps-api/amap/style/normalStyle.css
但当初我尝试过将css离线后用api加载,可惜没有生效。你可以自己尝试一下,js api中我应该有标记css样式的加载位置。你再js中搜索 TODO 标识

@lhq-github
Copy link
Owner

看了一下,它的这个自定义样式,大概是它本身加载的是矢量图,然后页面直接动态渲染的。而我们离线的是瓦片,所以不支持它的那种自定义样式。至于其他样式的图,就看看高德默认提供哪些类型的瓦片了,至少卫星瓦片应该是有的,可以试试瓦片下载的url中的style属性设置成其他值看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants