What does HackerNews think of Leaflet?
π JavaScript library for mobile-friendly interactive maps πΊπ¦
Language:
JavaScript
#93
in
Hacktoberfest
#61
in
JavaScript
Leaflet is also an interesting solution in this space:
This isn't a codebase that I inherited at work, but an open source library that I used at work which impressed me: Leaflet JS has been around for 11 years, enables web devs to do really complex mapping tasks easily, has zero dependencies, is 39KB of JS (vs 261 for mapbox), is extremely legible, and easily extensible using native JS concepts rather than fancy abstractions. To me it's a shining example of how over-engineered everything on the web is today. You can make an interactive map of the world and have a smaller bundle and simpler code than even the most basic React app.
https://help.openstreetmap.org/ is a better targeted help forum.
Try fetching the map bounds (leafletjs method on the map object or plugin like https://github.com/Leaflet/Leaflet.draw), then extract the region from your planet or country .osm/.o5m/*.pbf file with https://osmcode.org/osmium-tool/manual.html#creating-geograp...
Looks like a major upgrade to leaflet.markcluster (https://github.com/Leaflet/Leaflet.markercluster), which supports 50k points at most.
Got very confused for a moment: https://github.com/Leaflet/Leaflet
The data is from http://chriswhong.com/open-data/foil_nyc_taxi/ -- I pulled 10k random pickups from each day/time for the heatmaps.
I used http://leafletjs.com/ and https://github.com/Leaflet/Leaflet.heat for the visualization.