Skip to main content
GitHub
Documentation

Components

All available mapcn-vue components.

Components

mapcn-vue provides a comprehensive set of map components organized into categories.

Catalog at a glance

The library currently exports 65 Vue 3 components split across the families below. Counts are derived directly from the public exports in packages/v-maplibre/src/index.ts and packages/v-maplibre/src/layers/deckgl/index.ts, so each row is verifiable from the source.

CategoryCountRequired peer dependencies
Core (Map, Marker, Popup)3vue ^3, maplibre-gl ^5.24.0
Map controls9core peers only
MapLibre-native layers11core peers (+ pmtiles, maplibre-gl-wind, maplibre-gl-lidar for specific layers)
deck.gl core layers13@deck.gl/core, @deck.gl/layers, @deck.gl/mapbox ^9.3.0
deck.gl aggregation5@deck.gl/aggregation-layers ^9.3.0
deck.gl geo / tile12@deck.gl/geo-layers ^9.3.0
deck.gl mesh2@deck.gl/mesh-layers ^9.3.0
deck.gl raster (COG/Zarr)4@developmentseed/deck.gl-raster, deck.gl-geotiff, deck.gl-zarr ^0.6.0
deck.gl GeoArrow6apache-arrow ^17.0.0 (+ @deck.gl/geo-layers for trips)
deck.gl wind particle1@luma.gl/core ^9.3.0
deck.gl generic escape1corresponds to whichever layer class you pass in

Every component is demonstrated by 91 live, copy-paste example pages under /examples.

Core Components

map

The base map component with theme-aware styling.

npx shadcn-vue@latest add https://mapcn-vue.geoql.in/r/map.json

Includes:

  • Map - Main map container
  • MapMarker - Interactive markers
  • MapPopup - Popups and tooltips
  • MapControls - Navigation, scale controls

MapLibre Layers

map-layers

Native MapLibre layer components.

npx shadcn-vue@latest add https://mapcn-vue.geoql.in/r/map-layers.json

Includes:

  • MapLayerGeojson - GeoJSON data
  • MapLayerVector - Vector tiles
  • MapLayerRaster - Raster tiles
  • MapLayerCluster - Clustered points
  • MapLayerPmtiles - PMTiles
  • MapLayerImage - Static images
  • MapLayerVideo - Video overlays
  • MapLayerCanvas - Canvas rendering

deck.gl Layers

High-performance WebGL visualization layers.

map-deckgl-core

Core visualization layers.

npx shadcn-vue@latest add https://mapcn-vue.geoql.in/r/map-deckgl-core.json

Includes:

  • MapLayerScatterplot - Points/circles
  • MapLayerArc - Origin-destination arcs
  • MapLayerLine - Flat lines
  • MapLayerPath - Polylines/routes
  • MapLayerPolygon - Filled polygons
  • MapLayerGeojson - GeoJSON features
  • MapLayerIcon - Custom icons
  • MapLayerText - Text labels
  • MapLayerColumn - 3D columns
  • MapLayerBitmap - Georeferenced images

map-deckgl-aggregation

Data aggregation layers.

npx shadcn-vue@latest add https://mapcn-vue.geoql.in/r/map-deckgl-aggregation.json

Includes:

  • MapLayerHeatmap - Density heatmap
  • MapLayerHexagon - Hexagonal binning
  • MapLayerGrid - Square grid
  • MapLayerContour - Contour lines
  • MapLayerScreenGrid - Screen-space grid

map-deckgl-geo

Geospatial layers.

npx shadcn-vue@latest add https://mapcn-vue.geoql.in/r/map-deckgl-geo.json

Includes:

  • MapLayerTrips - Animated paths
  • MapLayerMVT - Mapbox Vector Tiles
  • MapLayerTile - Generic tiles
  • MapLayerTile3D - 3D Tiles (Cesium)
  • MapLayerTerrain - Terrain mesh
  • MapLayerH3Hexagon - H3 hexagons
  • MapLayerGreatCircle - Great circle arcs

map-deckgl-mesh

3D mesh layers.

npx shadcn-vue@latest add https://mapcn-vue.geoql.in/r/map-deckgl-mesh.json

Includes:

  • MapLayerSimpleMesh - 3D meshes
  • MapLayerScenegraph - glTF/GLB models

Sources