Why not ask your question on the new OpenStreetMap Community Forum?

Using leaflet and OSM, to show some maps on my web application, I need to know if it is possible to have only roads map and remove data from the map which is shown on my page

alt text

 L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    attribution: '',
    maxZoom: 19

asked 12 Apr '21, 19:57

Ehsan_1362's gravatar image

accept rate: 0%

It is possible but you will have to set up your own tile server, and modify the map style to remove those elements you do not want. Setting up your own tile server is described on switch2osm.org.

permanent link

answered 12 Apr '21, 20:03

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 12 Apr '21, 19:57

question was seen: 947 times

last updated: 12 Apr '21, 20:03

powered by OSQA