Explore data on a map
Filter weighted observations over time, inspect features and compare how a dataset changes.
A dependency-free JavaScript map engine for exploring spatial data, routing and scenarios. Start with the raster core and add vector tiles, GeoJSON or UI controls as needed.
Get started
Drop the core into your page and choose your tile source. Add-ons can come later, without a bundler or rebuild.
<div id="map" style="height: 400px"></div>
<script src="lib/microMap.min.js"></script>
<script>
microMap('#map', {
tiles: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
attribution: '© OpenStreetMap contributors', zoom: 12
});
</script>
I'm Simon Waldherr. My work spans data analysis, web development and volunteer firefighting. microMap brings those interests together in a small, inspectable map engine. These examples are a good place to explore it.
Filter weighted observations over time, inspect features and compare how a dataset changes.
Compare travel modes, close a road and see how routes and reachable areas change on a local graph.
Move through a timeline, follow simulated units and inject exercise events. An illustrative training demo.
See the core API and limitations, module examples and browser playground. Test rendering and performance with your own data and devices.
Every capability is an opt-in file. A store locator loads the core and the UI add-on; a full basemap adds the vector renderer. You only ship what you use.
Drag, pinch, wheel, keyboard, inertia, bearing and pitch, bounds, zoom snapping and a context menu in the raster core.
A typed-array MVT decoder in a Web Worker, per-tile style buckets and cached Path2D geometry on Canvas 2D.
Load selected style.json layers and expressions, with filters, zoom functions, symbol placement and MapLibre zoom semantics.
fill-extrusion features with cross-tile depth sorting, lighting and picking, drawn with the affine camera.
MapLibre- and Leaflet-shaped markers, popups and tooltips, plus navigation, scale, geolocation and attribution controls.
Dynamic routes, tracks and areas; optional field annotations; extra XYZ/WMS and aerial imagery.
flyTo, easeTo, jumpTo and fitBounds with padding, respecting prefers-reduced-motion.
queryRenderedFeatures, click/mouseenter per layer and cursor handling, in MapLibre's event shapes.
Keyboard and screen-reader support, bounded caches, navigation-aware tile preloading and a device-pixel-ratio cap.
Every map needs the core; add only the files for features you use. Each card names its required files and the total size for that combination.
Raster map, camera gestures, keyboard controls, basic markers and local feature search.
microMap.min.jsMVT tiles, light/dark starter palettes, custom colors, a MapLibre Style subset, sprites, patterns, clustering and feature state.
microMap.vector.min.jsDraggable markers, popups, tooltips and controls with CSS theme variables.
microMap.ui.min.jsDraw and update application data such as routes, areas and points.
microMap.geojson.min.jsAdd and edit points, lines or areas. Undo changes and exchange GeoJSON.
microMap.field.min.jsMeasure air distance, circles and areas, or a shortest path in your graph.
microMap.measure.min.jsFind malformed coordinates, rings and oversized imports before loading data.
microMap.inspect.min.jsExplore point density with weights and an optional time filter.
microMap.heatmap.min.jsReplay time-based entities and events for simulations, games, logistics and training.
microMap.scenario.min.jsFind weighted routes and reachable areas with access modes and closures.
microMap.network.min.jsSave the current map view with loaded tiles, canvas overlays and attribution.
microMap.export.min.jsRead local or hosted PMTiles v3 archives on demand for raster or MVT maps.
microMap.pmtiles.min.jsUse flyTo, easeTo, jumpTo and fitBounds.
microMap.camera.min.jsAdd additional XYZ or WMS sources, for example an aerial photo overlay.
microMap.raster.min.jsProvide a custom GPU renderer on a WebGL canvas alongside the map.
microMap.webgl.min.jsUse one facade to connect the core with whichever optional modules you selected.
microMap.compose.min.jsLoad only the modules your map needs. Sizes are separate JavaScript files compressed with gzip level 9.
Start with raster tiles, then browse focused examples for styles, controls or Leaflet-shaped helpers.
All three projects use permissive code licenses. Map tiles and imagery have separate terms. This page bundles only MicroMap code.
A small raster core with optional Canvas vector tiles and GeoJSON. Rotation and affine pitch suit controlled map views; there is no perspective horizon or terrain.
A mature 2D map library with raster tiles, GeoJSON, markers and a broad plugin ecosystem. Vector-tile rendering uses plugins.
A WebGL renderer for vector maps, broad style support, perspective camera, terrain and globe. It is a stronger fit for demanding 3D and style-heavy maps.
License texts: MicroMap, Leaflet and MapLibre GL JS. Map data and imagery follow their own terms.
Each demo is a single HTML page. View the source to see how it works.
new Map(), perspective pitch and 3D buildings.
Vector tilesMVT sources, styles, labels and rendered-feature queries.
GeoJSONDynamic sources and layers for routes, areas and points.
MeasurementsAir distance, circles, polygon area and shortest routes on a local graph.
HeatmapWeighted density and a time filter on a local point dataset.
Scenario timelineReplay moving units, scrub the clock and inject exercise events.
Network routingCompare weighted routes, travel modes, closures and reachable areas.
Hazard exerciseReplay an illustrative spread perimeter with a time-filtered heat layer.
Map annotationsDraw and edit features, undo changes, import and export GeoJSON.
PMTilesOpen a local raster or MVT archive directly in the browser.
SimplificationHow geometry detail adapts to zoom.
The hero map offers Karte.Bayern vector tiles, OpenFreeMap vector tiles and OpenStreetMap raster tiles. The playground also offers both vector providers. With a local MBTiles file, node bench/serve.mjs tiles.mbtiles --style=style.json serves it with your own tiles and style for local measurements.