Hacker News new | ask | show | jobs
by kreco 22 days ago
Sorry for the slight off-topic:

Is there any standard protocol/format for "layers" that could be added to such Map apps?

Let's say I want to write a plugin to add my own kind of data, and then I want to export this new kind of data so that someone can import them.

Or I want to create a website with my own data on top of existing one.

2 comments

This is all OSM-based. OSM is one big pile of data - we don't do layers.

It is also best to add it directly into OSM, importing data afterwards is tricky.

My talk at Why25 should be a good intro (https://media.ccc.de/v/why2025-198-openstreetmap-for-beginne...), but the OSM-wiki also contains some valuable sources: https://wiki.openstreetmap.org/wiki/Tags , https://wiki.openstreetmap.org/wiki/Map_features

There are also various libraries to show OSM as background map on a website and allow you to draw features on top. Those support various formats (GPX, GeoJSON, ...) Leaflet and MapLibre are the biggest here, with leaflet being the easiest and MapLibre being very flexible and performant

This is incredibly helpful. Thank you!
If by layers you mean tiles, you can make a server providing ZXY tile images. Some OSM clients (e.g. BRouter) allow adding custom tile servers for baselayer and overlays.

https://wiki.openstreetmap.org/wiki/Tile_servers