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

3
1

Hi everyone. Now I'm using Openlayers to integrate Openstreetmap into my web. Besides, I want to hide/remove all the labels on map(country,city,road,lake....). How can I do that without establishing my own Web Map Server? Thank you every much !

asked 28 Jan '15, 18:24

snowangel912's gravatar image

snowangel912
56114
accept rate: 0%

edited 28 Jan '15, 19:04

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


Unfortunately you can't, because the labels are rendered into the tiles that you're displaying.

Unless you can find a public source of tiles without labels, of course ... which turned out to be rather simpler than expected (see comment below). Here's an example:

http://c.tiles.wmflabs.org/osm-no-labels/10/549/335.png

You should be able to figure out everything you need from that.

permanent link
This answer is marked "community wiki".

answered 28 Jan '15, 18:28

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

edited 28 Jan '15, 19:52

3

Well, a public source are those "no labels" tiles from wmflabs.org (Wikimedia).

I guess it is okay to use them for a small private website, but please check their(!) tile usage policy (example: osm.org's tile usage policy) if you plan to use them with more than a few accesses. Also check under which license they are distributed (in any case you need to attribute OSM correctly, too)

(28 Jan '15, 19:00) aseerel4c26 ♦
1

you can also do a keyword search on this FAQ site about "label", "no label" or "without label" ... there are some topics.

(28 Jan '15, 19:18) stephan75

@aseerel4c26 thanks - I had no idea those still existed, I thought that the WM labs stuff (like the multilanguage stuff, which found a new home) had all gone.

(28 Jan '15, 19:50) SomeoneElse ♦
Your answer
toggle preview

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:

×65
×16
×10
×6

question asked: 28 Jan '15, 18:24

question was seen: 39,363 times

last updated: 28 Jan '15, 19:52

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