Use this file to discover Exa products, pricing, evaluations, comparisons, use cases, agent interfaces, and technical documentation before exploring further.
JavaScript map libraries draw interactive maps in the browser from tiles, vector data, and map styles. A renderer either places raster tiles and DOM layers on a flat map or draws vector data on the GPU with WebGL. These libraries let apps show store locators, delivery routes, and geographic data on maps that users can pan and zoom.
Popularity
Leaflet has the most monthly downloads in this comparison, at 43.5M.
_processLuminoMessage(msg: Message, _super: Function) {
_super.call(this, msg);
if (!this.obj) return;
switch (msg.type) {
case 'resize':
// We set the dirty flag to true to prevent the sub-pixel error // on the new center to be reflected on the model. this.dirty = true;
// On the pan option: // `pan=true` causes the center to be unchanged upon resize (up // to sub-pixel differences) // `pan=false` corresponds to having to top-left corner // unchanged. this.obj.invalidateSize({
animate: false,
pan: true,
});
this.dirty = false;
break;
case 'after-show':
this.dirty = true;
// If we are in a jupyter-widget tab, we get an after-show before // this.displayed is resolved. In this case, obj is not created yet. this.obj.invalidateSize({
animate: false,
pan: true,
});
this.dirty = false;
break;
}
}
maplibre-gl
Renders interactive browser maps from vector tiles using WebGL and style documents.
Downloads / mo
38.3M
Stars
12.1K
Last release
6.19.0
License
BSD-3-Clause
Strengths
Styles vector tiles in-browser.Control the map appearance through a style document.
Supports custom WebGL layers.Draw into the map’s graphics context using its camera.
Limitations
Bundlers need worker URL setup.Configure the worker URL for the application’s bundler.
Hosted tiles need separate credentials.Get provider credentials when using MapTiler data.
const addLegend = () => {
// Add legend div to the map document.getElementById("customLegend").style.display = "block";
// Add center symbol to legend symbolUtils.renderPreviewHTML(markerSymbol, {
node: document.getElementById("centerPointDiv"),
size: { width: 10, height: 10 },
symbolConfig: { isSquareFill: true },
});
// Add query buffer symbol to legend symbolUtils.renderPreviewHTML(greenLineSymbol, {
node: document.getElementById("queryBufferDiv"),
});
// Add river symbol to legend symbolUtils.renderPreviewHTML(blueLineSymbol, {
node: document.getElementById("riversAndStreamsDiv"),
});
// Add river buffer symbol to legend symbolUtils.renderPreviewHTML(redLineSymbol, {
node: document.getElementById("buffersDiv"),
});
};
FAQ
Leaflet suits interactive flat maps with markers and popups. MapLibre GL JS suits vector-tile maps rendered with WebGL. CesiumJS suits three-dimensional globes.
Leaflet builds maps from raster tiles and DOM layers without an account. Mapbox GL JS renders vector maps with WebGL and requires an active Mapbox account under the Mapbox terms of service.
MapLibre GL JS is a BSD-licensed community fork of Mapbox GL JS. Mapbox GL JS requires a Mapbox account and the Mapbox terms of service.
OpenLayers displays raster and vector geospatial data with configurable map projections. A separate bridge, OL-Cesium, adds a globe view.
CesiumJS creates three-dimensional globes and two-dimensional maps in a web browser. It can load external terrain and imagery into its scene.
For coding agents
Found your maps library? Help your agent use it.
Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.