I need to show only one region on the map. For example Alaska or New-York city. How I can do this by using Maptalks or at least OpenStreetMap?
Asked
Active
Viewed 136 times
0
-
Which library? Usually you achieve this by restricting the view to a specific bounding box. – scai Apr 08 '19 at 11:25
-
Possible duplicate of [How to display only exact region on map?](https://stackoverflow.com/questions/55572273/how-to-display-only-exact-region-on-map) – scai Apr 08 '19 at 11:26
1 Answers
0
This solution is relevant to maptalks library.
- Get boundaries via nominatim.openstreetmap.org API in a geojson format.
- Set a multipolygon mask to a baselayer

Gregory Orlov
- 517
- 1
- 6
- 15