Live data from Hacker News

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

leafletjs.com

71–78 of 78 posts

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

#71
post #49
post #35

Earlier quoted context omitted.

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

Oh that's good to hear. No, I'm not doing anything with cycling right now, and looks like you pretty much have it covered, but always nice to know good data-sets. Thanks!

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

#72
post #46

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

I really appreciate the work you do! It's great to be out of Google's ecosystem for this, as it is not extensible enough for my needs. Is there any plan to add NPM support anytime soon? I tried using the NPM library but icons did not work (got invalid path error) so I was forced to use div icons. The leaflet/npm ecosystem goes out the window when you take into account plug-ins as well, As they require script tags. Th…

If the icons don't work when you use Leaflet through NPM, please report a bug at https://github.com/Leaflet/Leaflet/issues. This is certainly not an expected behavior. It might have regressed in recent versions.

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

#73
post #60
post #50

Earlier quoted context omitted.

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.

Does this effect happen on the Leaflet frontpage example? You could be using an older version Leaflet CSS with a newer version JS.

The CSS wasn't mismatched, but I've upgraded to the latest leaflet and now it works super. Thanks!

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

#74
post #30

Earlier quoted context omitted.

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!

Yep - I figured based on the projects, but didn't want to call out your real ID in case that mattered. Lunch out on your plaza sounds pretty appealing right now compared to the weather up here!

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

#75
post #72

Earlier quoted context omitted.

I really appreciate the work you do! It's great to be out of Google's ecosystem for this, as it is not extensible enough for my needs. Is there any plan to add NPM support anytime soon? I tried using the NPM library but icons did not work (got invalid path error) so I was forced to use div icons. The leaflet/npm ecosystem goes out the window when you take into account plug-ins as well, As they require script tags. Th…

If the icons don't work when you use Leaflet through NPM, please report a bug at https://github.com/Leaflet/Leaflet/issues . This is certainly not an expected behavior. It might have regressed in recent versions.

I actually got it to work using DivIcons, but I felt it was kind of hacky (it was a div containing an image with a url to my marker).

Interestingly enough, the bug I was getting (can't seem to repro anymore) was already solved... by you! https://github.com/Leaflet/Leaflet/issues/766#issuecomment-7...

None of the fixes on that page worked, but using DivIcons did. If I can repro, I will definitely make an issue. Thanks!

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

#76
Participate in Atlassian Research

My name is Angela and I do research for Bitbucket. I’m kicking off a round of discussions with people who use Git tools. Ideally, I’d like to talk to people that sit on a team of 3 or more. If this is you, I would love to talk to you about your experience with Git tools, or just some of the pain points that are keeping you up at night when doing your jobs.



We’ll just need 30 mins of your time, and as a token of my thanks to those that participate, I’d like to offer a US$50 Amazon gift voucher. 



If you’re interested, just shoot me an email with your availability over the next few weeks and we can set up a time to chat for 30 minutes. Please also include your timezone so we can schedule a suitable time (as I’m located in San Francisco). Hope to talk to you soon!

Cheers, 
 Angela Guo aguo@atlassian.com

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

#77

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…

Participate in Atlassian Research

My name is Angela and I do research for Bitbucket. I’m kicking off a round of discussions with people who use Git tools. Ideally, I’d like to talk to people that sit on a team of 3 or more. If this is you, I would love to talk to you about your experience with Git tools, or just some of the pain points that are keeping you up at night when doing your jobs. 

 We’ll just need 30 mins of your time, and as a token of my thanks to those that participate, I’d like to offer a US$50 Amazon gift voucher. 



If you’re interested, just shoot me an email with your availability over the next few weeks and we can set up a time to chat for 30 minutes. Please also include your timezone so we can schedule a suitable time (as I’m located in San Francisco). Hope to talk to you soon!

Cheers, 
 Angela Guo aguo@atlassian.com

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

#78
post #60
post #50

Earlier quoted context omitted.

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.

Does this effect happen on the Leaflet frontpage example? You could be using an older version Leaflet CSS with a newer version JS.

Hey @mourner... so it works great with pinch zoom. Still have the same issue if using the mouse wheel to zoom. Just FYI.
Post reply on HN