Leaflet
maplibre-gl-js
Our great sponsors
Leaflet | maplibre-gl-js | |
---|---|---|
219 | 55 | |
39,879 | 5,676 | |
0.8% | 3.0% | |
8.9 | 9.9 | |
10 days ago | 1 day ago | |
JavaScript | TypeScript | |
BSD 2-clause "Simplified" License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Leaflet
-
JavaScript Libraries That You Should Know
9. Leaflet
-
Animated traveling map with Leaflet
Leaflet is the most famous open-source map library, with lots of plugins. 2 of them are used to animate a marker on the map:
-
5 JavaScript mapping APIs compared
Leaflet stands out as one of the top open source JavaScript libraries for crafting interactive maps. Optimized for both mobile and web devices, it is relatively small (around 42KB) and offers a ton of features, plugins, and a straightforward API. It works across all browsers and platforms.
- 2024: The year of the OpenStreetMap vector maps
-
Shots: Create Mockups
Finding maplibre 'better' was more valid at the time than today, and is also subjective. The creators and maintainers of both libraries have done some great work (and are still doing so).
Back in January 2022, the stable version of leaflet, v1.7.1, was from September 2020, and was affected by some small bugs degrading the user experience. Although the release of following version seemed close, there was no clear schedule for it, and I had concerns about how maintained the library would remain.
As of today, the bug from 2015 where there is some white space between map tiles on fractional zoom levels [0] is still open.
Also, leaflet was a pain to integrate in Svelte Kit framework, because it depended on `window` and-or `document`, not available at server side.
Maplibre, on the other hands, with a feature set roughly equivalent to Leaflet, benefited from much more frequent releases, and seemed more stable across browsers and devices. It was also easier to make it work in Svelte kit.
-
🌲Svelte + 🍃Leaflet + 📍 Clusters
For a personal project, I had to use Leaflet with Svelte, and I faced some problems during development.
-
Embed leaflet JS maps in notion?
Do anyone have any workaround on how to get leaflet js to work inside notion, either as an embed or as code, or widget? https://leafletjs.com/
-
Ask HN: When building with complex maps do you go with GMaps, Mapbox, OSM?
None of those things are what most in the GIS space would consider "complex", so you could go with any of the options you selected. For lightweight maps, I like Leaflet
-
What’s the most beautifully documented project you’ve seen?
I have a special place in my heart for Leaflet and it’s documentation: https://leafletjs.com
-
Who wants to collab for a Grab-clone or Angkas-clone web app?
Its suppose to be free: like with map data providers there's Leaflet, OpenStreet Maps and many more which are all for free.
maplibre-gl-js
-
Protomaps – A free and open source map of the world
(.shp .gpkg ...) | ogr2ogr -> .geojson | tippecanoe -> .pmtiles
for OpenStreetMap data there's planetiler[4], and and openmaptiles[5] styles that work with Maplibre
with those combinations you've got a great start to something you can host for pennies on AWS S3+CloudFront or Cloudflare R2, with an open source data pipeline
- GPSJam: Daily maps of possible GPS interference
-
Building a Map Application with MapLibre GL JS and Svelte
MapLibre GL JS v3.3.1
-
New Map APIs from Google
Does anyone else have a solution for the satellite layer? I was using MapLibre [0] then needed direct-on-the-ground images which made me convert to Google Maps.
- The OpenTF Manifesto
-
Use 3D map library with API key function of Amazon Location Service
When using the Amazon Location Service, I recommend MapLibre GL JS, which I introduced in my previous article, "Amazon Location Service and AWS Amplify to Use Various Map Library," but you can also use any map library you like, including iTowns this time. I hope you will choose the map library of your choice, including iTowns!
-
Using Lidar to map tree shadows
Your browser has a very powerful image decoder built into it, offloading the PNG decoding into Javascript is very resource hungry.
Using maplibre (or any map viewer) you can load blobs of image data out of a tiff and use `Image` or `Canvas` to render the data onto a map.
Its even easier if the tiffs are already Cloud optimized as they perfectly align to a 1-to-1 map tile and they don't need to be rescaled, you can then just render the images onto the map. eg here is a viewer that loads webps out of a 15GB tiff and uses Canvas to render them onto a map [1]
Unless you are trying to layer all your maps together, you also could stop reprojecting them into webmercator, or if your goal is to layer them, then storing them in webmercator would save a ton of user's compute time.
There are a bunch of us that talk web maping and imagery in the #maplibre and #imagery slack channels in OSMUS's slack [2]
[1] https://blayne.chard.com/cogeotiff-web/index.html?view=cog&i...
[2] https://github.com/maplibre/maplibre-gl-js#getting-involved
- Apache Baremaps: online maps toolkit
-
[OC] A new map of GitHub made from 350M stars, shows 460,000 projects
The map is rendered by https://maplibre.org/, you can see how it is used here https://github.com/anvaka/map-of-github
-
[OC] I made a map of GitHub. It lets you find related projects with ease
Kudos to https://maplibre.org/ - amazing library
What are some alternatives?
Cesium - An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
mapbox-gl-js - Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
OpenLayers3 - OpenLayers
folium - Python Data. Leaflet.js Maps.
leaflet-geoman - 🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers
mapbox.js - Mapbox JavaScript API, a Leaflet Plugin
polymaps - Polymaps is a free JavaScript library for making dynamic, interactive maps in modern web browsers.
ol-mapbox-style - Use Mapbox Style objects with OpenLayers
h3 - Hexagonal hierarchical geospatial indexing system