Live data from Hacker News

Leaflet: An open-source JavaScript library for mobile-friendly interactive maps

leafletjs.com

41–50 of 78 posts

Re: Leaflet: An open-source JavaScript library for mobile-friendly interactive maps

#41
post #30

Leaflet is an amazingly powerful tool. As others have mentioned, it makes it easy to use a variety of sources for the underlying map tiles; in my case I was able to replace the modern-day base map with a map of the Roman Empire for an interactive academic publication[1]. Another great feature that doesn't get as much attention is Leaflet's ability to handle non-geographic images. In the same publication I'm also usin…

Museum tech roll call! I picked up leaflet for the same purpose and it's worked great - http://collections.artsmia.org/art/1218/olive-trees-vincent-... The Rijksmuseum "Rijksstudio" site has been around for a few years and adopted leaflet very early on for image viewing: https://www.rijksmuseum.nl/en/rijksstudio/artists/rembrandt-... Perhaps of interest to this sub-thread is "IIIF" (the international image interopera…

Very impressive achievement! Even compare to Google Institute: https://www.google.com/culturalinstitute/beta/asset/olive-tr...

Re: Leaflet: An open-source JavaScript library for mobile-friendly interactive maps

#42
post #38
post #34

Earlier quoted context omitted.

Oh that is a really good tip! Good one. Do you have a demo?

Here's a screencast of a side project that used that technique. The top artists are bound to quadkeys and are loaded via the ontileload event via a websocket. Going to get back into some map work in the next few months and might write out a blog post about this technique. https://drive.google.com/file/d/0BwPUV--rEjyiVDc4UXBzUnhhMDA...

Hah, wow that is really great. Super fun application and the UX is awesome. Nice job

Re: Leaflet: An open-source JavaScript library for mobile-friendly interactive maps

#43

Anybody using Mapbox GL JS? Basically Leaflet with WebGL and some other useful tricks.

I've been following it. The last time I tried it was a bit slow for my use case at the moment but maybe it has come along since then. I'm wondering if the C++ port that MapBox are building turned into WebAssembly might end up being the winner there.

Yeah I'd love to know about people using it as well. Certainly the features would be really useful.

Re: Leaflet: An open-source JavaScript library for mobile-friendly interactive maps

#44
I worked on a Leaflet project a while back (about a year and a half ago). While the project didn't rely on Leaflet heavily enough to use all of its features, I've gotta say, it's ridiculously easy to use if you want to get something useful up and running.

Re: Leaflet: An open-source JavaScript library for mobile-friendly interactive maps

#45
post #30

Leaflet is an amazingly powerful tool. As others have mentioned, it makes it easy to use a variety of sources for the underlying map tiles; in my case I was able to replace the modern-day base map with a map of the Roman Empire for an interactive academic publication[1]. Another great feature that doesn't get as much attention is Leaflet's ability to handle non-geographic images. In the same publication I'm also usin…

Museum tech roll call! I picked up leaflet for the same purpose and it's worked great - http://collections.artsmia.org/art/1218/olive-trees-vincent-... The Rijksmuseum "Rijksstudio" site has been around for a few years and adopted leaflet very early on for image viewing: https://www.rijksmuseum.nl/en/rijksstudio/artists/rembrandt-... Perhaps of interest to this sub-thread is "IIIF" (the international image interopera…

Nice project!

RE: IIIF, we're interested in going in that direction as well. Fortunately it looks like someone already wrote a plugin for it: https://github.com/mejackreed/Leaflet-IIIF

PS - Hey Kjell! This is Eric from the Getty. It's nice to see there are other museum folks on HN!

Re: Leaflet: An open-source JavaScript library for mobile-friendly interactive maps

#47

Am I the only one not getting retina tiles? On an iPhone 7 Plus, the map on leaflets.com looks terrible.

Leaflet supports retina tiles, they're just not used on the frontpage example because default OSM tile service doesn't provide them, and we don't use other providers on that example for the sake of simplicity (to keep it as short as possible).

Re: Leaflet: An open-source JavaScript library for mobile-friendly interactive maps

#49
post #35
post #5

In my experience the best thing about Leaflet is the possibility of using CSS to style, transform and animate markers. Shameless plug, see for instance this map using css 'explosions': https://citybik.es

Really cool, love it! Is there an open data feed for this stuff then? I love open data, there is so much available now.

We do offer an API through https://api.citybik.es with as many feeds as we can gather. Note though that no more than 10% of the feeds on citybikes are what one would consider 'open data'.

If you are interested in the actual sources, these are available on the data files that compose pybikes[1]

[1]: https://github.com/eskerda/pybikes/tree/master/pybikes/data

Re: Leaflet: An open-source JavaScript library for mobile-friendly interactive maps

#50
post #46

Leaflet author here. Thanks for the kind words everyone! A few core developers are here too. Ask us anything. :)

Hey, again great stuff.

I have a small question while you are here...

In my application, when a user zooms the map.. the tiles and markers seem to get get zoomed at different rates, then finally snap back together at the end of the zoom.

Is this something I'm doing wrong. Is there anyway to mitigate that effect?

Thanks again.

Post reply on HN