0

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?

Gregory Orlov
  • 517
  • 1
  • 6
  • 15
  • 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 Answers1

0

This solution is relevant to maptalks library.

  1. Get boundaries via nominatim.openstreetmap.org API in a geojson format.
  2. Set a multipolygon mask to a baselayer
Gregory Orlov
  • 517
  • 1
  • 6
  • 15