Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Thank 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.


Simply `<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.


Thank you for your library and efforts!

I always use leaflet when I have to work with maps, and I couldn't be more happy.


Thanks for the kind words, that's really nice to hear!


Our 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?


This 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/introdu...


Thanks for the reply, that's a very interesting plugin!


Hi! If I want to create a somewhat more extensible alternative of https://maps.sensor.community based on Leaflet, what plugins should I choose?

Thanks in advance


I haven't looked closely into all available plugins, but it seems that you can quickly find suitable options by searching for "leaflet wind" and "leaflet hexbin".


Thank you.


Can leaflet replace OpenLayers for scientific purposes?


This 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: