4 ms·
I'm the original author of Leaflet, ask me anything! Very happy every time I see it shared on the HN frontpage. If you're curious about the story behind Leafle
by mourner 5y ago
I'm the original author of Leaflet, ask me anything! Very happy every time I see it shared on the HN frontpage.
If you're curious about the story behind Leaflet and how and why it was born 10 years ago, here's a short 13-minute presentation on this: https://youtu.be/NLbyHffKQuU https://youtu.be/NLbyHffKQuU
- andion 5y agoThank you for your library and efforts! I always use leaflet when I have to work with maps, and I couldn't be more happy.
- mourner 5y agoThanks for the kind words, that's really nice to hear!
- 6jQhWNYh 5y agoOur company made the switch from Leaflet to OpenLayers as we were unable to reproject rasters with different CRS to the map's CRS in Leaflet. Is there any plan to add on-the-fly reprojection within Leaflet core? Is it even the core's job to deal with projection or should this be done by plugins?
- mourner 5y agoThis is definitely something we want to leave to plugins, since it’s technically involved, there are multiple ways to go about it with different trade-offs, and it’s not necessary for most use cases. There are multiple plugins for it though, the most recent one being Arrugator from one of Leaflet’s maintainers Ivan: https://ivan.sanchezortega.es/development/2021/03/08/introducing-arrugator.html https://ivan.sanchezortega.es/development/2021/03/08/introdu...
- 6jQhWNYh 5y agoThanks for the reply, that's a very interesting plugin!
- teddmagwell 5y agoThank you for your work! Can you please share your thoughts on advantages and disadvantages of using WebGL vs just "<img>" elements (like on Leaflet homepage) to render tiled photos that require deep zoom. I checked how some photo zoom solutions are made. For example, Google Photos uses tiled img elements, while online photo viewer in Apple iCloud used webgl to render. And I'm not sure what's best and why.
- mourner 5y agoSimply `<img>` elements should be fine for most use cases. WebGL could be used if you need much more fine grained control over the rendering — e.g. custom resampling when resizing like Lanczos filter, special effects, etc. It could also be better for performance but it's not certain and depends on the use case.
- pipy 5y agoHi! If I want to create a somewhat more extensible alternative of https://maps.sensor.community https://maps.sensor.community based on Leaflet, what plugins should I choose? Thanks in advance
- null4bl3 5y agoCan leaflet replace OpenLayers for scientific purposes?
- mourner 5y agoThis depends on the scientific purpose. For most cases, I'd say yes, but I'm biased, and OpenLayers has the advantage of having all possible features baked in, if you can tolerate the complexity and bloat.