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

I have set up a local OSM server with the tile server and leaflet. Everything works, but I thought it would by much more convenient if I could get most of the data from tile.openstreetmap.org server (the map may look just the same as it looks on OSM website) and only add my objects to it that I would store on my server.

Is it possible?

Thank you, Paweł

asked 17 Apr '20, 14:25

jujo0's gravatar image

jujo0
16225
accept rate: 0%


If the question is "is it technically possible" the answer is "yes". You have a few options:

  • One is to use Leaflet to display markers over the top of existing tiles.

  • Another option is to have two OSM databases, one with OSM data and one with "your" data, but display your data with a transparent background (see here for a discussion of that and also here for some potential drawbacks, such as name clashes).

  • Another is to merge "your data" with the "OSM data" and display that in one layer - see here for an example of that and here for an example script using osmosis to do that (though "osmium" is another, arguably better, option)..

permanent link
This answer is marked "community wiki".

answered 17 Apr '20, 14:45

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

Thank you!

(17 Apr '20, 16:09) jujo0

I found this extremely useful http://duspviz.mit.edu/web-map-workshop/

permanent link

answered 03 May '20, 19:05

jujo0's gravatar image

jujo0
16225
accept rate: 0%

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:

×204
×118
×11

question asked: 17 Apr '20, 14:25

question was seen: 2,028 times

last updated: 03 May '20, 19:05

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