geojson.net icon indicating copy to clipboard operation
geojson.net copied to clipboard

Use mapbox as a vector instead of a tile api layer

Open Dylanb-dev opened this issue 6 years ago • 2 comments

I noticed that the app uses the mapbox api tiles instead of mapbox source as a vector.

For some reason this gives different results compared to the vector, maybe the version numbers mean something? (v4 vs v8)

Anyway is there any reason to use mapbox tiles over the vector image? Is it easy enough to change in a forked version?

Dylanb-dev avatar Sep 17 '19 09:09 Dylanb-dev

This would not be a simple change: vector tiles only work well in Mapbox GL, and raster tiles work well in Leaflet, which is what this project is based on. The drawing UI, which is fundamental to what geojson.net does, has an equivalent in GL, gl-draw, but it's barely maintained and the API is different.

tmcw avatar Sep 17 '19 15:09 tmcw

Thanks for getting back to me, it sounds impractical to try and update the editor in order to get more consistent maps in what is essentially a dev tool. I am happy to for this issue to be closed, great work btw.

Dylanb-dev avatar Sep 18 '19 01:09 Dylanb-dev