This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Is it possible to hide data of cities and display only countries?

0

Hi, I am using the Openstreetmap with Leaflet.js library. In the map, on zoom I want to display countries only. Is it possible to hide the cities in the map?

Thanks.

asked 12 Dec '13, 11:31

Jay's gravatar image

Jay
1111
accept rate: 0%


One Answer:

3

It's only possible to do that by creating a custom map style. The text is embedded into the map images, and there's no way to remove certain features afterwards.

See https://help.openstreetmap.org/questions/136/how-do-i-render-my-own-maps-for-my-website for more.

answered 12 Dec '13, 12:01

Andy%20Allan's gravatar image

Andy Allan
12.5k23128153
accept rate: 28%

However there are various different tile providers available, maybe one of them fits your needs. Just make sure to comply with their tile usage policies.

(12 Dec '13, 12:52) scai ♦