Our great sponsors
-
Leaflet.VectorGrid
Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I created a demo phoenix project that shows a test page. To edit it play with the map_controller and /priv/static/map_logic.js where I added the js logic, all is done using leaflet and the vector grid plugin. Demo repository can be found tile_server
Some background on mbtiles files from mapbox/mbtiles-spec
There is also an alternative to just unpack the files and serve it form the /priv/static folder. To serve it this way we need mb-util app installed - The files are compressed, so we need either unpack them or rename to have .gz extension - then phoenix will serve it gzipped and add the header for us.
Related posts
- Trying to create clickable elements on an OpenLayers map using Geoserver and not having much luck.
- Why is do I get the error: vectorgrid does not exist on type import ... (Leaflet)
- Show HN: Geojson-shave, a tool for reducing the size of GeoJSON files
- Protomaps – A free and open source map of the world
- Shapemap: How to