Re:Leaflet 1.0 – A JavaScript library for mobile-friendly in...
by takdi on Tuesday September 27, 2016 @10:36AM
(#12589867)
Why are they doing this?
[ Parent
| on HN ]
Re:Leaflet 1.0 – A JavaScript library for mobile-friendly in...
by vetinari on Tuesday September 27, 2016 @10:40AM
(#12589899)
mapbox-gl-js focuses on vector tiles and webgl rendering. I'm not sure if it even supports raster tiles, canvas and other "legacy".
Re:Leaflet 1.0 – A JavaScript library for mobile-friendly in...
by Buetol on Tuesday September 27, 2016 @11:06AM
(#12590130)
Looks like it does support raster tiles: https://www.mapbox.com/mapbox-gl-js/example/map-tiles/
Re:Leaflet 1.0 – A JavaScript library for mobile-friendly in...
by vetinari on Tuesday September 27, 2016 @11:27AM
(#12590299)
You are right.
It came to me, that after all, they have to, if they want to display ortophoto or satellite tiles.
I was thinking more in the terms of street maps or thematic maps, where mapbox-gl-js displays them in a very nice way using vector tiles.
Re:Leaflet 1.0 – A JavaScript library for mobile-friendly in...
by ralmeida on Tuesday September 27, 2016 @02:56PM
(#12592056)
It does support raster tiles, using them in production here.
Re:Leaflet 1.0 – A JavaScript library for mobile-friendly in...
by jbhatab on Tuesday September 27, 2016 @09:36PM
(#12594794)
How would you say it is compared to leaflet? much more complex?
Re:Leaflet 1.0 – A JavaScript library for mobile-friendly in...
by ralmeida on Thursday September 29, 2016 @12:40PM
(#12606686)
We chose it mostly because at the time, it looked like it had more active maintenance from the people at Mapbox, and it eventually looked like it was going to pass Leaflet.
I wouldn't say it's more complex. mapbox-gl favors a more declarative style (look into "Map Style" in the docs), but the concepts are not that different than Leaflet.
Web GL features (such as video support) is an obvious advantage, and part of why we chose it. We don't use plugins for this project, so can't say much about that.