tmcw / geojson.net

https://www.placemark.io/
ISC License
150 stars 32 forks source link

Use mapbox as a vector instead of a tile api layer #56

Open Dylanb-dev opened 5 years ago

Dylanb-dev commented 5 years ago

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?

tmcw commented 5 years ago

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.

Dylanb-dev commented 5 years ago

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.