TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Leaftlet - A Lightweight JavaScript Library for Interactive Maps

107 pointsby marsalmost 14 years ago

11 comments

sciurusalmost 14 years ago
I used a similar mapping library, <a href="http://openlayers.org/" rel="nofollow">http://openlayers.org/</a> , around 4 years ago. It thought it was nice at the time. The documentation wasn't great, but there were decent examples and the support for GIS standards like WMS and WFS was solid. It looks like people have increasingly become dissatisfied with it and started working on alternatives like leaftlet.<p><a href="http://vmx.cx/cgi-bin/blog/index.cgi/wherecampeu-2011:2011-05-29:en,GeoCouch,OpenLayers,MapQuery,conference,geo" rel="nofollow">http://vmx.cx/cgi-bin/blog/index.cgi/wherecampeu-2011:2011-0...</a><p><a href="http://crschmidt.net/blog/archives/472/perceived-flaws-ofopenlayers/" rel="nofollow">http://crschmidt.net/blog/archives/472/perceived-flaws-ofope...</a><p><a href="http://notes.tommacwright.com/post/6010879882/openlayers" rel="nofollow">http://notes.tommacwright.com/post/6010879882/openlayers</a>
评论 #2746475 未加载
rgbrgbalmost 14 years ago
Looks great. Has anyone compared this and the google maps api? I'm working on a GIS project and we're going to do some stuff in js for the web so I'm very curious.
评论 #2746730 未加载
评论 #2747632 未加载
评论 #2748538 未加载
JangoStevealmost 14 years ago
I love that this uses OpenStreetMap instead of Google Maps, as I like being able to control all my own data and not be reliant upon MegaCorp (TM) for my site to function. At the same time, I've never seen an OSM API that seemed both as useful and as simple as the Google Maps API, but this looks pretty nice.<p>I may have to wipe the dust off RateMyStudentRental.com and retrofit Leaflet at some point.
krooalmost 14 years ago
For some reason the map travels behind my cursor as I drag it around. This would drive me away if I was looking for an alternative mapping library to google maps.
评论 #2748559 未加载
shaggyfrogalmost 14 years ago
Tried the demo really quickly (Mac OS X 10.6/Safari 5) but I got rendering errors without breaking a sweat:<p><a href="http://www.shaggyfrog.com/junk/leaflet-rendering-errors.png" rel="nofollow">http://www.shaggyfrog.com/junk/leaflet-rendering-errors.png</a><p>Based on it breaking so easily I wouldn't consider this an an alternative to Google Maps quite yet.
评论 #2748542 未加载
js4allalmost 14 years ago
Leaflet is just great. I made a demo as soon as I heard about it a few weeks ago. I combined leaflet on the client side with varnish as a tile cache and nginx as a tile server. I plan to switch to node.js as soon as it supports sendfile.<p><a href="http://maps.cloudno.de" rel="nofollow">http://maps.cloudno.de</a>
mixmastamykalmost 14 years ago
I've been using mapstraction (<a href="https://github.com/mapstraction/mxn" rel="nofollow">https://github.com/mapstraction/mxn</a>) and like it; don't see much different here. Maybe someone should introduce them to each other.
sciurusalmost 14 years ago
Discussed (briefly) before at <a href="http://news.ycombinator.com/item?id=2548927" rel="nofollow">http://news.ycombinator.com/item?id=2548927</a>
sjwrightalmost 14 years ago
The title is misspelled on HN. (It's Leaflet.)
msyalmost 14 years ago
Unlike Polymaps this also supports IE6 &#38; 7 which is a big win for orgs that have to support a wide range of browsers.
评论 #2746748 未加载
ricardobeatalmost 14 years ago
Borks the whole page on the iPad. It appears to be stealing all touch events after any interaction.
评论 #2748555 未加载