Live data from Hacker News

LeafletJS: a JavaScript library for interactive maps

leafletjs.com

61–70 of 91 posts

Re: LeafletJS: a JavaScript library for interactive maps

#61

Just a heads up, if you are looking into using this in your project: The popup onclick triggers are currently broken in the latest version under Safari, using an older version solves it. Other than that this is an awesome library with tons of great plugins that I’ve used for years now.

This should be fixed in the master version, we just didn't get our hands on making a patch release yet.

Re: LeafletJS: a JavaScript library for interactive maps

#62

Leaflet is fantastic. One of the more interesting use cases I've seen for it is the Guild Wars 2 wiki. They use it heavily to display the game map for regions, areas of interests etc. It's quite impressive, and very useful as a player! https://wiki.guildwars2.com/wiki/Kryta#Interactive_Map

It's not even just video games! Leaflet's great for real-world non-video games maps of the whole world. It's by far the easiest system to make any random old image zoomable and pinchable.

My brother and I created a map of our local Costco in Figma and just put it up at https://costcomap.com/

Re: LeafletJS: a JavaScript library for interactive maps

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

Re: LeafletJS: a JavaScript library for interactive maps

#64
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

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?

Re: LeafletJS: a JavaScript library for interactive maps

#65
post #12

Earlier quoted context omitted.

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

Interesting that Windy uses a version from 2018. (v1.4)

Its very heavily customised.

Re: LeafletJS: a JavaScript library for interactive maps

#66
One thing question that I have. If I want to use an image as a source of my tiles. Should I split the image into chunks to load them when user moves the map around? Or is there any other way to do that? Are there any tools that would help split an image into those chunks?

Re: LeafletJS: a JavaScript library for interactive maps

#67
https://github.com/mourner/projects

The above is a list of awesome open source projects Vladimir Agafonkin is involved in.

Vlad's "Earcut" triangulator - embedded in Three.js - and his solar calculator are efforts that have helped me a lot.

I am wondering: have Vlad and Ricardo Cabello AKA "Mr.doob" ever hacked some linear algebra together??

Re: LeafletJS: a JavaScript library for interactive maps

#68
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

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

Re: LeafletJS: a JavaScript library for interactive maps

#69
Super handy library. I used it for a real-time collaborative map tool [1], it's especially useful when it comes to customization, plus it has many plugins which add a lot of functionality. Leaflet Geoman [2] for instance is great for creating all sorts of geometries on the map, I've personally used it for my tool so users can designate areas and paths. So good.

[1] https://github.com/alyssaxuu/mapus

[2] https://github.com/geoman-io/leaflet-geoman

Re: LeafletJS: a JavaScript library for interactive maps

#70

One thing question that I have. If I want to use an image as a source of my tiles. Should I split the image into chunks to load them when user moves the map around? Or is there any other way to do that? Are there any tools that would help split an image into those chunks?

There are a few tools that will "tile" an image for you. libvips dzsave works well, even for really big images: https://libvips.github.io/libvips/API/current/Making-image-p...

There are commercial products in this space too (like Maptiler).

Post reply on HN