openstreetmap-ng icon indicating copy to clipboard operation
openstreetmap-ng copied to clipboard

Move to vector maps (MapLibre)

Open goteusz-maszyk opened this issue 1 year ago • 1 comments

As "part" of #44, we definitely should switch to vector maps. They make maps more interactive, require less resources to run and give more customization options.

This would involve switching rendering system to Maplibre GL, which supports raster tiles that may come from other sources as other layers.

Vector tiles will also let us remove annoying "what's here"/"query features" thing.

Requirements:

  • [ ] Set up a tile server, most preferably OpenMapTiles or find one that lets us use their resources for free
  • [ ] Rewrite the entire map rendering system
  • [ ] Let users upload their own custom styles
  • [ ] Make objects clickable

goteusz-maszyk avatar Aug 05 '24 21:08 goteusz-maszyk

MapLibre :rocket:

Zaczero avatar Aug 05 '24 22:08 Zaczero

I'll do it... At least partially

KonradowyPL avatar Oct 06 '24 10:10 KonradowyPL

@KonradowyPL Sure! If you have any questions, hit me up on Discord :-)

Zaczero avatar Oct 11 '24 14:10 Zaczero

@KonradowyPL did you manage to write some code? If it's not yet ready, is there a public git branch to track progress? End of January or later, we should implement this feature. I can continue your work if you won't have time to finish it.

Zaczero avatar Jan 01 '25 09:01 Zaczero

I have public branch named mablibre here

KonradowyPL avatar Jan 02 '25 11:01 KonradowyPL

Finished Leaflet to MapLibre switch and video showcase coming soon. Currently there is no support for uploading custom styles, first we need a foundation for serving raw map data for vector files -- this is not something we should work on just yet -- let's first analyze the OSMF-sponsored vector tiles work when it's finished.

I have assigned bounties for the work done in this issue.

Zaczero avatar Jan 27 '25 10:01 Zaczero