Geospatial layer types
Geospatial layers connect map data to deck.gl's geographic coordinate system and spatial data sources. They support ready-to-draw features as well as sources that need tile selection, format decoding, elevation handling, or coordinate conversion before rendering.
Geospatial layer model
The geospatial layer family covers two related needs. Core layers draw geographic geometry that the application already has. The geo-layers package adds support for map services, tiled sources, GIS formats, terrain, 3D tiles, and spatial indexes. See the layer library for the wider layer family, standard layer types for layers that do not need geospatial source handling, aggregation and mesh layers for higher-level spatial or mesh output, and the Arrow and advanced GPU proposals for other data paths.
| Data need | Layer types | Main purpose |
|---|---|---|
| GeoJSON features | GeoJsonLayer | Show points, lines, and polygons from GeoJSON or a compatible binary form |
| Paths and motion | PathLayer, TripsLayer, GreatCircleLayer | Draw routes, animated trips, or curved links between places |
| Map imagery | BitmapLayer, WMSLayer | Place an image or a WMS service response over a geographic area |
| 2D tiled data | TileLayer, MVTLayer | Load visible tiles and draw vector or custom tile content |
| Elevation and 3D tiles | TerrainLayer, Tile3DLayer | Turn elevation or 3D tile sources into map surfaces and models |
| Spatial cell identifiers | A5Layer, H3HexagonLayer, H3ClusterLayer, GeohashLayer, QuadkeyLayer, S2Layer | Turn cell or index values into geographic areas |
The choice depends first on the source contract. Use a geometry layer when the data is ready to draw. Use a source-aware or tiled layer when the layer must translate service metadata, tile addresses, elevation values, or index values into geographic output.
Spatial loading
View-based tile loading
TileLayer provides the shared 2D loading model for large geographic data sets. It maps the current viewport to tile addresses, requests selected tiles, keeps recent tiles in a cache, and refines coarse tiles into detailed tiles as they become available. This lets a map show a small part of a large source without loading the full source at once.
TileLayer also serves as a compatibility layer for the established single-view tile API. Applications can provide a custom tile data loader and a renderer that turns each loaded tile into one or more sublayers.
Tileset2D is the shared tile set that owns tile content, request scheduling, cache limits, source metadata, and tile lifecycle events. A Tile2DView gives one viewport its own selected and visible tile state while the tile set can serve more than one consumer. A Tileset2DAdapter separates tile traversal and tile bounds from a specific view type, so a source can use a custom view state as well as the standard deck.gl viewport.
The tile model also preserves useful map behavior during movement. A loaded parent or child tile can remain visible while a newly selected tile is pending. Request limits, cache limits, zoom limits, and tile refinement balance load cost with visual detail. Each tile treats a completed error or empty result as settled, so a missing source tile does not block the viewport forever. A newer load also takes precedence over a stale result.
Tile selection uses the view's visible volume and level of detail. Globe views reject tiles hidden beyond the horizon, while other views use the camera frustum and the available elevation range to avoid loading data that cannot contribute to the frame. The selection can also account for a model transform, custom projections, and repeated world copies. Requests near the screen center receive higher priority, while requests for tiles that are no longer selected or visible can be stopped.
This diagram shows how a viewport drives tile selection and how loaded tile content becomes rendered sublayers.
flowchart LR
V[Map viewport] --> A[Traversal adapter]
A --> I[Visible tile indexes]
I --> C[Shared tile cache and request queue]
C --> D[Tile data]
D --> S[Tile sublayers]
S --> R[Geospatial rendering]
C --> P[Parent or child refinement]
P --> S
References: modules/…/tile-layer.ts• L184-188 modules/…/tile-layer.ts• L201-204 modules/…/tile-layer.ts• L215-255 modules/…/tile-layer.ts• L265-283 modules/…/adapter.ts• L8-51 modules/…/deck-tileset-adapter.ts• L11-24 modules/…/refinement.ts• L25-49 modules/…/tile-2d-header.ts• L140-210 modules/…/tile-2d-view.ts• L24-55 modules/…/tile-2d-view.ts• L79-133 modules/…/tile-2d-view.ts• L181-233 modules/…/tileset-2d.ts• L157-192 modules/…/tileset-2d.ts• L228-258 modules/…/tileset-2d.ts• L405-467 modules/…/tileset-2d.ts• L525-608 modules/…/tileset-2d.ts• L770-852 modules/…/tileset-2d.ts• L993-1069 modules/…/tile-2d-traversal.ts• L70-123 modules/…/tile-2d-traversal.ts• L176-215 modules/…/tile-2d-traversal.ts• L219-288 test/…/tile-2d-example.spec.ts• L10-105
Vector tile sources
MVTLayer specializes the tile model for Mapbox Vector Tiles. It accepts a tile URL template or TileJSON metadata. It loads visible vector tiles and presents their features through GeoJSON-style rendering. The layer keeps tile-local coordinates separate from geographic coordinates when needed. It converts picked features back to geographic form for application use.
Each tile renders in its own local coordinate space and clips its sublayers to that tile. This prevents buffered features from being drawn more than once when a feature occurs in neighboring tiles. The same local-to-geographic contract applies in globe and ordinary map views.
The coordinate conversion used for picking maps tile geometry through the tile's Web Mercator bounds and returns WGS84 longitude and latitude independently of the active rendering target. This keeps application-facing feature geometry geographic even when rendering uses tile-local or projected coordinates.
The layer can use compact binary tile data for rendering, while GeoJSON tile data is used when subdivision or another geographic operation needs it. Feature identifiers let highlighting continue to work when one feature is split across tiles. Binary feature lookup can limit its search to a named source layer and return the global feature identity. Globe and geographic-loader paths keep their own picking contract instead of applying the tile-local conversion. MVTLayer remains the compatibility layer for the established binary, TileJSON, and rendered-feature APIs.
References: modules/…/mvt-layer.ts• L74-118 modules/…/mvt-layer.ts• L142-167 modules/…/mvt-layer.ts• L180-225 modules/…/mvt-layer.ts• L235-265 modules/…/mvt-layer.ts• L267-323 modules/…/mvt-layer.ts• L337-355 modules/…/mvt-layer.ts• L360-469 modules/…/find-index-binary.ts• L20-33 modules/…/find-index-binary.ts• L36-113 modules/…/coordinate-transform.ts• L18-58 test/…/mvt-layer.spec.ts• L240-289 test/…/mvt-layer.spec.ts• L583-720
Service and imagery sources
WMSLayer connects a Web Map Service to the current view. It accepts a service URL or an existing image source, reads service metadata, asks the service for an image that matches the viewport and selected map layers, and displays the result as a geographic bitmap. It also supports feature-information requests when the service provides them.
The layer requests a new image after the source, service type, selected service layers, or view changes. It delays rapid view changes and keeps a newer request from being replaced by a slower older response. The selected spatial reference system controls how the service bounds and the returned image are placed. Automatic selection uses geographic coordinates for most views and Web Mercator for a matching projected view.
BitmapLayer is the lower-level image layer in this pair. It places an image within rectangular bounds or four geographic corners. Its coordinate setting allows an image encoded in longitude and latitude to display in a projected map. It also supports the reverse case when a globe view needs projected imagery.
References: modules/…/wms-layer.ts• L28-45 modules/…/wms-layer.ts• L99-145 modules/…/wms-layer.ts• L163-196 modules/…/wms-layer.ts• L199-255 modules/…/bitmap-layer.ts• L46-77 modules/…/bitmap-layer.ts• L236-257 test/…/wms-layer.spec.ts• L15-23 test/…/wms-layer.spec.ts• L39-58
Surface and 3D source layers
Elevation surfaces
TerrainLayer turns elevation data into a geographic surface. It supports one elevation source for a complete surface or a tile template for view-based loading. An optional image source supplies the surface texture. The elevation decoder explains how source pixels represent height.
Terrain loading therefore has two linked outputs: a mesh that changes the shape of the map and an image that changes its appearance. The layer can keep using the elevation mesh when a texture request fails. Missing imagery does not remove the terrain surface.
Tile bounds are projected into the active view's coordinate space before the surface is built. The resulting mesh keeps its own coordinate system when it is drawn. On a globe, valid geographic mesh bounds can remain in longitude and latitude; other cases use Cartesian placement. This lets tiled terrain work with ordinary map views, globe views, and custom projected views while keeping the mesh bounds and its render coordinate system aligned.
References: modules/…/terrain-layer.ts• L122-170 modules/…/terrain-layer.ts• L172-226 modules/…/terrain-layer.ts• L233-271 modules/…/terrain-layer.ts• L273-315 modules/…/terrain-layer.ts• L352-430 modules/…/simple-mesh-layer.ts• L210-259 modules/…/simple-mesh-layer.ts• L329-350
Hierarchical 3D tiles
Tile3DLayer displays hierarchical 3D Tiles and Esri I3S data. A tileset describes content at several levels of detail. The layer selects content suited to the active viewports. It then renders meshes, point clouds, or instanced scene graphs.
The layer tracks active viewports before it selects tiles. This lets one tileset serve more than one view while each view renders only the tiles selected for it.
The hierarchy lets a large city, building model, or point collection appear at useful detail without keeping every object active. Tile selection and cache events also define when content becomes available, when old content is released, and which tile is linked to a picking result. The layer maps content coordinates into the current coordinate contract. It also normalizes known numeric values from older loader versions while leaving unknown values for core validation.
Mesh and scenegraph content use local origins and model transforms so large geographic objects can render with suitable numeric precision. Scenegraph instances can also apply per-object transforms and signal when their first draw is visible. These details let tile replacement keep parent content visible until the selected child is ready.
Mesh content uses the geo-layers MeshLayer as the bridge from tile data to mesh rendering. It preserves physically based material appearance and can carry feature identifiers into picking, so a rendered part can still be linked to source data.
References: modules/…/tile-3d-layer.ts• L35-59 modules/…/tile-3d-layer.ts• L107-120 modules/…/tile-3d-layer.ts• L152-179 modules/…/tile-3d-layer.ts• L190-235 modules/…/tile-3d-layer.ts• L245-315 modules/…/tile-3d-layer.ts• L318-467 modules/…/mesh-layer.ts• L19-35 modules/…/mesh-layer.ts• L42-55 modules/…/mesh-layer.ts• L65-123 modules/…/mesh-layer.ts• L125-190 modules/…/mesh-layer-uniforms.ts• L7-33 modules/…/mesh-pbr-material.ts• L14-43 modules/…/scenegraph-layer.ts• L175-188 modules/…/scenegraph-layer.ts• L401-447 modules/…/matrix.ts• L57-171
Geographic geometry layers
GeoJSON features
GeoJsonLayer is the main format layer for geographic feature data. It accepts GeoJSON objects, feature arrays, URLs or promises, and a binary feature collection. It groups the source by geometry type and presents points, lines, and polygons with shared styling and picking behavior.
Point features can appear as circles, icons, or text. Lines can be stroked. Polygons can be filled, outlined, or extruded. GeoJsonLayer therefore bridges a geographic file or API response with the standard visual layers described in standard layer types.
References: modules/…/geojson-layer.ts• L40-68 modules/…/geojson-layer.ts• L186-236 modules/…/geojson-layer.ts• L300-338 modules/…/geojson-layer.ts• L577-605
Paths and routes
PathLayer draws each list of positions as a thick geographic polyline. It supports width and color accessors, width units, join and cap styles, and billboard behavior. Its input can be a normal path or a flat coordinate form when the caller already knows the path shape.
The layer normalizes nested and flat paths before rendering. It can split a path at projection grid boundaries or at the Mercator world boundary. This keeps geographic paths, including paths that wrap or cross a view boundary, aligned with the active view.
TripsLayer extends this path model with time values. A current time and trail length decide which path segments are visible. An optional fade makes older segments less visible. The layer aligns each path segment with its start and end times, then applies the time test and fade during GPU rendering. Its WebGPU path packs timestamp pairs in the same padded instance order as the path tessellator, so closed paths and padded segments keep the correct time values. GreatCircleLayer is a compatibility name for an ArcLayer configured to follow great-circle paths. New uses should prefer ArcLayer with its great-circle option.
References: modules/…/path-layer.ts• L30-106 modules/…/path-layer.ts• L136-171 modules/…/path-layer.ts• L215-264 modules/…/path-layer.ts• L369-437 modules/…/path-layer.ts• L577-609 modules/…/path-layer-uniforms.ts• L7-62 modules/…/path-layer.wgsl.ts• L125-161 modules/…/path-layer.wgsl.ts• L270-357 modules/…/path.ts• L5-46 modules/…/trips-layer.ts• L45-159 modules/…/trips-layer.wgsl.ts• L10-55 modules/…/trips-layer-uniforms.ts• L7-42 modules/…/great-circle-layer.ts• L13-24
Geographic index cells
Cell layers draw an area from a spatial index instead of explicit polygon coordinates. A5Layer, H3HexagonLayer, H3ClusterLayer, GeohashLayer, QuadkeyLayer, and S2Layer read an index value from each data object. They turn that value into a polygon that can be filled, stroked, or extruded.
These layers also accept CPU-readable cell columns. A column can hold one cell per row or a list of cells per row. Dictionary-encoded and numeric 64-bit columns are read without losing identifier precision. The column path expands each source row while retaining its source identity, so styles and picking continue to refer to the original feature. Cell and style columns must have matching lengths and cannot contain null values.
These layers share the visual behavior of polygon layers. They own the conversion from an index to geographic bounds. H3HexagonLayer can represent each H3 cell as a polygon or an extruded column. Its automatic precision choice uses the cell set and the view: mixed resolutions, pentagons, lower resolutions, or required subdivision use the precise polygon path, while suitable uniform cells use the efficient column path. Style-only column changes can update accessors without rebuilding unchanged cell geometry. Removing the columns returns the layer to its normal data and accessor path.
References: modules/…/GeoCellLayer.ts• L12-94 modules/…/cell-columns.ts• L13-29 modules/…/cell-columns.ts• L39-141 modules/…/h3-hexagon-layer.ts• L123-143 modules/…/h3-hexagon-layer.ts• L177-244 modules/…/h3-hexagon-layer.ts• L301-349 modules/…/h3-cluster-layer.ts• L30-105 modules/…/geohash-layer.ts• L27-62 modules/…/quadkey-layer.ts• L27-67 modules/…/s2-layer.ts• L26-62 modules/…/a5-layer.ts• L27-71 test/…/cell-columns.node.spec.ts• L35-153 test/…/cell-columns.spec.ts• L25-163
Coordinate handling
Geospatial layers must distinguish geographic coordinates from view or tile coordinates. Longitude and latitude are useful for source data and picking. Projected or local coordinates are useful for stable rendering and for data that is relative to a tile or a local origin.
The viewport supplies the map projection. Tile layers use each tile's geographic or Cartesian bounds to place content. A tileset adapter supplies traversal and bounds when a source does not use the standard viewport contract. Vector tile layers can render tile-local values and translate them to longitude and latitude for picked features. Terrain layers project tile bounds before making a surface mesh. Image layers use explicit bounds and a coordinate interpretation for the image. Mesh and scenegraph layers apply object transforms only when the source and view coordinate systems make those transforms meaningful.
Custom projection views
CustomProjectionView provides a planar map view for sources whose world coordinates need conversion to a different map coordinate system. A projection converter maps source positions into planar map meters and maps valid screen results back to source coordinates. The view keeps this conversion at the viewport boundary so geospatial layers can use the same loading and rendering contracts.
The view can bound the source domain and can subdivide source space when a curved or otherwise changing conversion needs more detail. Its distance scale describes how map units relate to meters, which keeps elevation and distance-based behavior meaningful. Invalid inverse results remain outside the source domain instead of producing a false geographic position.
This diagram shows how a source position passes through a custom view and returns to application coordinates during picking.
flowchart LR
W[Source world coordinates] --> F[Projection converter]
F --> M[Planar map meters]
M --> V[Viewport and rendering]
V --> U[Inverse conversion]
U --> W2[Picked source coordinates]
References: modules/…/custom-projection-view.ts• L11-69 modules/…/custom-projection-viewport.ts• L15-48 modules/…/custom-projection-viewport.ts• L97-175 modules/…/custom-projection-viewport.ts• L186-235
This diagram shows the common direction of coordinate handling without tying it to one source format.
flowchart LR
G[Source geographic values] --> T[Tile or service bounds]
T --> P[Viewport projection]
P --> R[Render coordinates]
R --> K[Pick result]
K --> U[Geographic feature or pixel information]
A mismatch in coordinate interpretation can place valid data in the wrong region or distort a surface. When a source is tile-local, use the layer that knows its tile bounds. When an image uses a different spatial reference system from the view, use the image coordinate setting or a service-aware layer.
References: modules/…/coordinate-transform.ts• L18-58 modules/…/mvt-layer.ts• L267-323 modules/…/mvt-layer.ts• L337-355 modules/…/terrain-layer.ts• L233-315 modules/…/wms-layer.ts• L199-249 modules/…/bitmap-layer.ts• L308-339 modules/…/scenegraph-layer.ts• L409-440 modules/…/simple-mesh-layer.ts• L329-350 modules/…/matrix.ts• L157-171 test/…/mvt-layer.spec.ts• L240-289 test/…/wms-layer.spec.ts• L39-58
Source package boundaries
The @deck.gl/layers package supplies reusable geometry and image layers such as GeoJsonLayer, PathLayer, and BitmapLayer. The @deck.gl/geo-layers package adds map-specific source and format support such as tiled loading, MVT, WMS, terrain, 3D tiles, spatial indexes, and the shared 2D tileset types. The geo-layers package is published as a separate package for geospatial use cases and GIS formats. Its public package contract includes compatible deck.gl, luma.gl, and loaders.gl peer packages.
The @deck.gl/carto package builds on these contracts for CARTO sources. Its public layers include vector, raster, cluster, heatmap, H3, and quadbin tile views. These layers are useful when the source is a CARTO TileJSON result or a CARTO spatial service rather than a generic tile URL.
References: modules/…/index.ts• L7-20 modules/…/index.ts• L7-72 modules/…/package.json• L1-5 modules/…/package.json• L24-73 modules/…/index.ts• L5-32 modules/…/vector-tile-layer.ts• L40-59 modules/…/raster-tile-layer.ts• L37-45
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to
TileLayer,Tileset2D, orTile2DViewcan affect every view-based source layer. Recheck tile selection, shared cache ownership, per-view visibility, loading callbacks, and picking metadata together. - Changes to
TileLayer's default tile renderer must preserve the color convention passed from the parent layer. Custom tile renderers still own their own color contract. - Changes to a
Tileset2DAdaptermust preserve the relationship between view state, selected tile indexes, and geographic or Cartesian tile bounds. Non-standard views must still provide an adapter. - Changes to tile traversal must preserve frustum culling, globe horizon culling, elevation bounds, repeated-world selection, model transforms, and custom projection behavior.
- Changes to refinement must preserve the difference between selected tiles and visible fallback content for every consumer. Recheck all built-in strategies and custom refinement callbacks.
- Changes to tile request completion or cancellation must preserve the settled state for failed or empty tiles and must not allow stale results to replace newer content.
- Changes to
MVTLayercoordinate conversion or tile clipping must preserve both tile-local rendering and geographic picked-feature output. Recheck binary, GeoJSON tile, globe, and custom projection paths. - Changes to binary feature lookup must preserve the link between source-layer ranges, unique identifiers, and global feature IDs used for highlighting.
- Changes to
GeoJsonLayergeometry grouping can affectMVTLayerand CARTO vector layers because they use GeoJSON-style sublayers for tile content. - Changes to
TerrainLayerbounds, elevation decoding, overlap padding, or globe coordinate selection must stay aligned with the terrain loader and with the coordinate system used by the mesh sublayer. Recheck both the elevation mesh and the optional texture path. - Changes to
Tile3DLayerviewport selection or tile content mapping must preserve selected-tile rendering, the tile attached to picking results, and compatibility with both current and legacy coordinate-system values. - Changes to
MeshLayermaterial or feature-id handling must preserve both tile mesh appearance and the feature identity used by picking. Keep the PBR shader inputs aligned across WebGL and WebGPU. - Changes to path projection or path distance handling must preserve dash metrics for geographic and screen-facing paths. Recheck both WebGL and WebGPU position data paths.
- Changes to
TripsLayertimestamp packing or shader inputs must preserve the path tessellator's instance order and the time interpolation used by both rendering backends. - Changes to mesh or scenegraph coordinate handling must preserve local origins, model transforms, and the rule for composing transforms with the active viewport coordinate system.
- Changes to
WMSLayersource creation, request ordering, or spatial reference selection must keep service bounds, image bounds, and the bitmap coordinate system aligned. Recheck both URL sources and existing image sources. - Changes to a custom projection view must preserve forward and inverse conversion, bounds, distance scales, and the projection signature used by source layers.
- Changes to a spatial index layer must preserve the index-to-polygon contract and the polygon props inherited from
GeoCellLayer. - Changes to cell-column expansion must preserve source-row identity, one-to-many cluster expansion, numeric cell conversion, style-column alignment, semantic row comparison, and the normal accessor path after columns are removed.
- Changes to
H3HexagonLayerprecision selection or cell-column routing must preserve accurate cell shape handling for mixed resolutions, pentagons, custom projections, and viewport movement while retaining the efficient column path where it is valid. - Changes to CARTO tile metadata or access rules must be checked against both the geometry or raster tile loader and the TileJSON data passed to the public CARTO layer.
- Changes to the
@deck.gl/geo-layerspackage boundary must preserve its public layer exports, tileset adapter exports, and peer package version contract.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
A custom view uses Tileset2D without a traversal adapter | Tile selection fails because the tileset cannot interpret the view state | Provide a Tileset2DAdapter for non-standard traversal |
| A shared tileset uses one consumer's visibility flags for another consumer | One viewport can show or evict tiles needed by another viewport | Keep selection and visibility state per Tile2DView consumer |
| A tile URL template or TileJSON source is invalid | Tile requests fail and the viewport has no usable tile content | Validate the source format and handle tile error callbacks |
| A completed old tile request overwrites a newer tile load | The map shows content for an earlier source or view state | Keep tile load identity checks and discard stale results |
| Tile-local vector coordinates are treated as longitude and latitude | Features render in the wrong place or picked geometry has the wrong location | Use MVTLayer or another layer that knows the tile coordinate contract |
| A user clip region replaces the per-tile MVT clip | Buffered features render more than once across tile edges | Let MVTLayer own the tile clip and use one clip extension per sublayer |
| A mesh or scenegraph transform is composed in an incompatible coordinate system | Geographic models rotate or shift in a way that does not match the map | Keep transform composition tied to the source and viewport coordinate systems |
| Mesh feature identifiers do not match the mesh vertex data | Picking reports the wrong source feature or cannot identify the selected part | Keep feature IDs aligned with the mesh attributes and enable them only for matching geometry |
| Path normalization does not split a path at a projection or world boundary | A route can stretch across the map or show incorrect joins and dash distances | Normalize paths with the active grid or longitude-wrap rules |
| Path dash distance is not updated after a projection or view-scale change | Dash patterns stretch or shift as the map moves or zooms | Recompute path projection scale and invalidate dash metrics when the view changes |
| Trips timestamps do not follow the path tessellator's padded instance order | Animated segments show the wrong time or loop boundary | Pack start and end timestamps from the path instance ranges before GPU rendering |
| A custom projection has an invalid inverse or an incorrect distance scale | Picking returns no useful source position or distance and elevation behavior is distorted | Validate converter round trips and keep map-unit scales finite and positive |
| The elevation decoder does not match the source pixels | Terrain height is shifted or badly scaled | Match the decoder to the elevation service's pixel encoding |
| Tiled terrain uses bounds in a coordinate system that does not match its mesh | The surface is offset or warped, especially in globe views | Keep projected bounds and the mesh coordinate system aligned with the active viewport |
| A WMS request uses the wrong spatial reference system | Imagery is offset from the map or appears warped | Let the view choose the supported reference system or set it to match the service |
| A slow WMS response arrives after a newer request | Old imagery replaces the image for the current view | Keep request identity checks and ignore stale responses |
| A WMS URL or service mode does not create the expected source | Metadata and image requests use the wrong service contract | Use a supported service URL or ImageSource and set serviceType when auto detection is not suitable |
| A feature has no stable identifier across vector tiles | Highlighting can stop at one tile or fail to follow the feature | Supply uniqueIdProperty when a feature can span tiles |
| A cell or style column has the wrong length or contains null values | Cell geometry or feature styling cannot be mapped to source rows | Keep cell and style columns aligned and provide non-null values |
| A numeric cell value is passed to a grid that needs a string identifier | The derived cell polygon is invalid or the layer rejects the value | Use the supported cell type and the layer that matches the index system |
| A spatial index value is malformed or uses the wrong index system | The derived cell polygon is invalid or appears in the wrong area | Use the layer that matches the index and validate source identifiers |
| Generated cell rows retain source data transforms or comparators | Source operations can run against expanded rows or hide changed cell geometry | Clear source hooks for generated rows and compare their semantic cell and source identity |
| A 3D tile source reports an unknown coordinate-system value | Mesh content fails core coordinate validation or renders with no valid placement | Keep known legacy mappings and allow unknown values to fail validation |
| The geo-layers package is consumed without a compatible peer package | Imports or runtime layer behavior can fail across the package boundary | Keep @deck.gl/geo-layers aligned with its declared deck.gl and loader peers |
Key files
| File | Why to read it |
|---|---|
| modules/…/index.ts | Public entry point for the geospatial layer family and its shared tile types and adapters |
| modules/…/package.json | Package boundary, published entry points, and peer package contract |
| modules/…/tile-layer.ts | Shared 2D viewport loading and sublayer model |
| modules/…/tileset-2d.ts | Shared tile cache, source metadata, request control, consumer tracking, and refinement behavior |
| modules/…/adapter.ts | Contract that connects tile traversal to a view-specific state model |
| modules/…/deck-tileset-adapter.ts | Standard deck.gl viewport adapter for tile selection and bounds |
| modules/…/tile-2d-view.ts | Per-viewport tile selection, visibility, culling, and shared-cache registration |
| modules/…/refinement.ts | Shared fallback and overlap rules for visible parent and child tiles |
| modules/…/tile-2d-header.ts | Tile request state, cancellation, completion, and error handling |
| modules/…/tile-2d-traversal.ts | View culling, level-of-detail selection, globe horizon checks, and repeated-world tile selection |
| modules/…/mvt-layer.ts | Vector tile source, local tile rendering, clipping, and coordinate-aware feature behavior |
| modules/…/find-index-binary.ts | Binary vector-tile feature lookup for highlighting |
| modules/…/coordinate-transform.ts | Conversion from tile geometry to geographic picked geometry |
| modules/…/terrain-layer.ts | Elevation and texture source model for geographic surfaces |
| modules/…/tile-3d-layer.ts | Hierarchical 3D tile selection, content categories, and coordinate compatibility |
| modules/…/mesh-layer.ts | Tile mesh appearance and feature-aware picking bridge |
| modules/…/mesh-pbr-material.ts | PBR material contract used by tile meshes |
| modules/…/wms-layer.ts | View-driven WMS source, metadata, image, spatial reference, and feature-information flow |
| modules/…/utils.ts | Geographic-to-Web-Mercator conversion used for projected WMS bounds |
| modules/…/geojson-layer.ts | GeoJSON format support and mapping from geometry types to visual layers |
| modules/…/path-layer.ts | Geographic path input, route styling, projection tracking, and path geometry model |
| modules/…/path.ts | Path normalization and splitting at projection or world boundaries |
| modules/…/path-layer.wgsl.ts | GPU path shape, clipping, line distance, dashes, and coverage behavior |
| modules/…/trips-layer.ts | Animated path data, timestamp attributes, and time-based rendering controls |
| modules/…/trips-layer.wgsl.ts | WebGPU timestamp packing and time-based path filtering |
| modules/…/bitmap-layer.ts | Image bounds and coordinate interpretation |
| modules/…/custom-projection-view.ts | View-level contract for custom planar coordinate conversion |
| modules/…/custom-projection-viewport.ts | Projection, inverse conversion, bounds, and distance-scale behavior |
| modules/…/GeoCellLayer.ts | Shared polygon contract for layers that derive geometry from spatial indexes |
| modules/…/cell-columns.ts | Cell-column expansion, numeric identifier conversion, source-row identity, and style alignment |
| modules/…/h3-hexagon-layer.ts | H3 cell rendering, precision selection, and column routing |
| modules/…/h3-cluster-layer.ts | H3 cell grouping into geographic regions |
| modules/…/a5-layer.ts | A5 index conversion and cell-column support |
| modules/…/geohash-layer.ts | Geohash conversion and cell-column support |
| modules/…/quadkey-layer.ts | Quadkey conversion and cell-column support |
| modules/…/s2-layer.ts | S2 token conversion and cell-column support |
| modules/…/scenegraph-layer.ts | Geographic scenegraph instances, model transforms, and draw readiness |
| modules/…/simple-mesh-layer.ts | Mesh bounds, coordinate placement, and transform-aware rendering |
| modules/…/matrix.ts | Shared per-instance transform data and coordinate-system rules |
| modules/…/index.ts | Public CARTO geospatial layer entry point |