NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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.

permanent link

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 ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×26
×10
×9
×9

question asked: 12 Dec '13, 11:31

question was seen: 10,548 times

last updated: 12 Dec '13, 12:53

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum