Usage¶
Map Classes¶
| Class | Base Library | Key Features |
|---|---|---|
Map / MapLibreMap |
MapLibre GL JS | Vector tiles, drawing, layer control |
MapboxMap |
Mapbox GL JS | 3D terrain, Mapbox styles |
LeafletMap |
Leaflet | Lightweight, plugins |
OpenLayersMap |
OpenLayers | WMS/WMTS, projections |
DeckGLMap |
DeckGL + MapLibre | GPU layers, aggregations |
CesiumMap |
Cesium | 3D globe, terrain, 3D Tiles |
KeplerGLMap |
KeplerGL | Data exploration UI |
PotreeViewer |
Potree | Point cloud visualization |
MapLibre GL JS (Default)¶
1 2 3 4 5 6 7 | |
Mapbox GL JS¶
1 2 3 4 5 6 7 | |
Leaflet¶
1 2 3 4 5 6 | |
OpenLayers¶
1 2 3 4 5 6 7 8 9 10 11 12 | |
DeckGL¶
1 2 3 4 5 6 7 8 9 10 11 12 | |
Cesium (3D Globe)¶
1 2 3 4 5 6 7 8 | |
KeplerGL¶
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
Potree (Point Clouds)¶
1 2 3 4 5 6 7 8 | |
Common Methods¶
| Method | Description |
|---|---|
add_basemap(name) |
Add a basemap layer |
add_vector(data, name) |
Add vector data (GeoJSON/GeoDataFrame) |
add_geojson(data, name) |
Add GeoJSON data |
add_tile_layer(url, name) |
Add XYZ tile layer |
fly_to(lng, lat, zoom) |
Fly to location |
fit_bounds(bounds) |
Fit map to bounds |
set_visibility(layer, visible) |
Set layer visibility |
set_opacity(layer, opacity) |
Set layer opacity |
to_html(filepath) |
Export to HTML |
Add Vector Data¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
Map Navigation¶
1 2 3 4 5 | |
Export to HTML¶
1 2 | |