@mapgpu/layers
Layer implementations for all data types.
npm install @mapgpu/layers Exports
GeoJSONLayer Load and render GeoJSON data. Supports URL fetch or inline data. Automatically detects geometry types (Point, LineString, Polygon) and applies renderer symbology.
RasterTileLayer XYZ/TMS raster tile layer. Loads map tiles from a URL template with {z}/{x}/{y} placeholders. Used for basemaps (OpenStreetMap, Mapbox, etc.).
GraphicsLayer Client-side layer for programmatically adding, removing, and querying features. Does not fetch from any remote service. Ideal for dynamic data, user-drawn geometry, and animation.
FeatureLayer Feature layer that queries a remote OGC service (WFS, OGC API Features). Supports pagination, caching, and collection switching.
WMSLayer OGC WMS layer with GetCapabilities auto-detection, GetMap tile loading, and GetFeatureInfo queries.
WGSLLayer Custom WGSL shader layer. Write your own vertex/fragment shaders with full control over the GPU pipeline. Supports uniforms, textures, and animation.
GpuClusterLayer Point clustering layer using Grid++ algorithm. Clusters points at each zoom level, renders cluster circles with count labels using Canvas 2D. Supports theme presets and click-to-zoom.