by x14km2d on 8/16/21, 9:32 PM with 87 comments
by mourner on 8/17/21, 6:35 AM
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
by mekkkkkk on 8/16/21, 10:40 PM
by vmarsy on 8/16/21, 10:25 PM
by katabasis on 8/16/21, 11:44 PM
by parksy on 8/17/21, 3:36 AM
The design and data called for thousands of nested POIs all searchable by a range of filters (facilities, activities, etc), with pop-up info boxes and automatic clustering groups, with a custom layer from their XML-based geoserver full of park boundaries (polygons) which could filter the POIs within. By design this all required a round-trip to their geoserver which did a spatial query. The specification pushed one of the more popular JS mapping heavyweights of the day (I forget which) which due to the specific mix of required features ended up being painful, slow, janky, and with mobile-responsive becoming the frontend de-jure, a battle against nested layers of opinionated templating abstractions, all of which added up to a couple of hundred KB of dependencies and endless fragile callback-induced race-conditions, slow round-trips to their geoserver, and XML parsing issues. The mapping became a blocker on the project as the weeks wore on - hammer down one gopher, and another head would pop up. Design compromises were being considered to get the job over the line.
Enter Leaflet which was considered risky and new at the time, but on a whim and my own time I threw together a quick demo and got permission to spend a few days on it. I replaced weeks of frustrating spaghetti code and rebuilt a faster and more stable solution in a couple of days, polished it up after getting the "nod" and the site was finally ready to launch a couple of days later. Leaflet enabled the solution by being compact, only did the thing it was designed to do and didn't interfere elsewhere, and the plugins were tiny, did their job, and did it much more transparently. The main thing I had to do was transform their XML into GeoJSON on our webserver (their backend had only rudimentary GeoJSON support at the time - I think their internal teams either refused or were not allowed to update it?).
Anyway didn't mean to write a mini-blog post shilling Leaflet, it's a great library, my first experience of it was that it saved a seemingly doomed project, it does exactly what it says on the box and not much else, which is perfect when it's just a small component of a much larger and more complex project. It's my first go-to for interactive map rendering and even non-map stuff, like zoomable gigapixel photos.
by hamburgerwah on 8/16/21, 10:03 PM
by afavour on 8/16/21, 11:22 PM
I don’t blame the Leaflet folks for this really, rendering map data locally via WebGL is not a simple task. But it’s been depressing to see folks like MapBox close off their vector-based library (and Google’s isn’t open either). There’s an open source of Mapbox’s library but it still feels like the open source world is being left out in the cold compared to how things were just a few years ago.
by the_third_wave on 8/16/21, 10:14 PM
[1] https://git.libreoffice.org/online/+/master/loleaflet/README
by hdersch on 8/17/21, 9:34 AM
by dang on 8/16/21, 10:16 PM
How to Make Maps Using Leaflet.js, PostGIS and Chicago Open Data - https://news.ycombinator.com/item?id=19784355 - April 2019 (20 comments)
Leaflet – A JavaScript library for mobile-friendly interactive maps - https://news.ycombinator.com/item?id=16149725 - Jan 2018 (36 comments)
Leaflet: An open-source JavaScript library for mobile-friendly interactive maps - https://news.ycombinator.com/item?id=13095390 - Dec 2016 (71 comments)
Leaflet 1.0 – A JavaScript library for mobile-friendly interactive maps - https://news.ycombinator.com/item?id=12589447 - Sept 2016 (99 comments)
D3 and Leaflet maps (2012) - https://news.ycombinator.com/item?id=11017763 - Feb 2016 (8 comments)
Show HN: Lens Battle – Make comparing lenses easier (with leaflet.js) - https://news.ycombinator.com/item?id=10279358 - Sept 2015 (11 comments)
Show HN: Quizzity – a geographical quiz built on top of a Leaflet map - https://news.ycombinator.com/item?id=8981162 - Feb 2015 (6 comments)
Show HN: Traverse City Platmap with Leaflet and D3 - https://news.ycombinator.com/item?id=8164315 - Aug 2014 (6 comments)
Testing web map APIs – Google vs OpenLayers vs Leaflet - https://news.ycombinator.com/item?id=7451375 - March 2014 (12 comments)
Show HN: Earthquakes on Leaflet, Crossfilter and D3 - https://news.ycombinator.com/item?id=5157054 - Feb 2013 (7 comments)
Leaftlet - A Lightweight JavaScript Library for Interactive Maps - https://news.ycombinator.com/item?id=2746178 - July 2011 (21 comments)
by theoa on 8/17/21, 7:56 AM
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??
by alyssaxuu on 8/17/21, 8:54 AM
by beezischillin on 8/16/21, 10:13 PM
Other than that this is an awesome library with tons of great plugins that I’ve used for years now.
by chx on 8/16/21, 10:39 PM
by jokoon on 8/17/21, 10:44 AM
My only wish is that I want to generate my own raster tiles, but I've seen that planet.osm now is 1.4TB, although the .PBF is only about 60GB.
I wish I could generate tiles of areas I want, but it seems the software requirements are pretty big, I'd rather use spatialite than postGIS, and I have no idea how to generate those tiles. There are a lot of GIS softwares, and most of them are pretty heavy, not to mention there are a lot of different formats which bloats everything.
by pugets on 8/17/21, 12:07 AM
by braden_lk on 8/16/21, 11:49 PM
by shireboy on 8/17/21, 2:21 AM
by ls65536 on 8/16/21, 11:01 PM
by cormacrelf on 8/17/21, 9:37 AM
by mattrighetti on 8/17/21, 12:12 AM
by garminpartenkir on 8/17/21, 9:32 AM
by benatkin on 8/16/21, 11:18 PM
by Waterluvian on 8/17/21, 12:58 AM
by Rd6n6 on 8/17/21, 3:47 AM
It’s called plotbinder - the app and it’s website (plotbinder.com, currently nothing is hosted) should go online sometime in September
by amcaskill on 8/16/21, 10:40 PM
by gennarro on 8/16/21, 10:30 PM
by nobunagato on 8/17/21, 7:51 AM
by gavreh on 8/17/21, 1:01 PM
by lpasselin on 8/17/21, 1:41 AM
by math0ne on 8/17/21, 2:19 AM
by ve55 on 8/16/21, 11:00 PM
by LAC-Tech on 8/17/21, 4:41 AM
by antoniuschan99 on 8/16/21, 11:36 PM
Cool to see leaflet mentioned as I’ve been using it this week :P
by ChrisMarshallNY on 8/17/21, 1:11 AM
It’s an excellent library.