如何使用 maptalks 只显示一个确切的区域(确切区域的瓦片)?
How to display only a exact region (tiles for exact region) with maptalks?
我只需要在地图上显示一个区域。例如阿拉斯加或纽约市。我如何通过使用 Maptalks 或至少使用 OpenStreetMap 来做到这一点?
此解决方案与 maptalks 库相关。
- 通过 nominatim.openstreetmap.org API 在 geojson 中获取边界
格式。
- 将多边形遮罩设置为 baselayer
我只需要在地图上显示一个区域。例如阿拉斯加或纽约市。我如何通过使用 Maptalks 或至少使用 OpenStreetMap 来做到这一点?
此解决方案与 maptalks 库相关。
- 通过 nominatim.openstreetmap.org API 在 geojson 中获取边界 格式。
- 将多边形遮罩设置为 baselayer