Live data from Hacker News

LeafletJS: a JavaScript library for interactive maps

leafletjs.com

81–90 of 91 posts

Re: LeafletJS: a JavaScript library for interactive maps

#81
post #68

Earlier quoted context omitted.

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!

Re: LeafletJS: a JavaScript library for interactive maps

#83
post #12
post #8

If you're looking for an actual demo of the product, it seems that the weather map on https://www.msn.com/en-us/weather/maps?lat=47.6032&lon=-122.... is powered by leaflet. I really like the work they've done with the wind animations and historical air quality maps

That's pretty cool, it reminded me of Windy which is also pretty awesome. In fact, peeking at the source of windy, it looks like it also uses Leaflet! https://www.windy.com

Hot damn, an online weather page that doesn't perform like I'm trying to load the radar view over a 56k modem.

Re: LeafletJS: a JavaScript library for interactive maps

#84
post #60

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

Re: LeafletJS: a JavaScript library for interactive maps

#85

I have used this and it is excellent. It is a tremendous alternative to all the paid GIS/mapping suites.

You will pretty much always have to pay for the tileserver service though. The main benefit I saw was that you could trivially switch to any other tile service without being tied in to a particular one like if you used the google maps library.

If you want to roll your own tiles, you get tons of flexibility with your own tileserver, which is great if you want to change naming rules/styles/etc.. It is a rabbit hole to go down, since mapping is inherently fun.

http://maps.stamen.com/#toner/12/37.7706/-122.3782 - they have free tile servers (obviously, donate if you use them) that are relatively styled. They don't get updated and may not be 100%, but for small scale uses, they are good enough versus risking going over the free tiers at Mapbox or getting stuck in the Google ecosystem.

Re: LeafletJS: a JavaScript library for interactive maps

#86
post #63
post #60

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 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!

Re: LeafletJS: a JavaScript library for interactive maps

#87
post #60

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

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

Re: LeafletJS: a JavaScript library for interactive maps

#88
post #60

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

Can leaflet replace OpenLayers for scientific purposes?

Re: LeafletJS: a JavaScript library for interactive maps

#89
post #60

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

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.

Re: LeafletJS: a JavaScript library for interactive maps

#90
post #87
post #60

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

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".
Post reply on HN