Introducing a new way to review your PRs.

Read the announcement

visgl / deck.gl

WebGL2 powered visualization framework

View on GitHub

23 documents · Updated Nov 20, 2026

docs / standard-layer-types

Standard layer types

Standard layers are the reusable visual building blocks in deck.gl. They turn data into points, lines, surfaces, connections, labels, symbols, columns, and image overlays that can be composed in one view. They also expose common extension points so an application can adjust visual output across supported rendering backends. The Layer library page places these general-purpose layers beside the more specialized geospatial layer types, aggregation and mesh layers, arrow layer packages, and advanced GPU layer packages.

Layer model

Layer instances

A layer instance pairs a data source with visual rules. The data source can be local data, a loaded URL, a promise, an async stream, or a binary attribute set. Accessors are the shared convention for mapping each data object to positions, dimensions, colors, text, and other visual values. The base layer contract provides the common lifecycle, while each standard layer adds the visual rules for one geometry family.

References: docs/…/layer.md• L3-15 docs/…/layer.md• L52-89 docs/…/using-layers.md• L67-103

Columnar data

Columnar data is a typed, field-oriented form of layer input. Standard point, line, arc, column, icon, and text layers can map supplied columns to the same visual fields that accessors provide. This lets compact data use the same layer family and visual meaning without converting every row into an object. Accessors can also read supported Arrow or SQL sources when a layer declares that input form.

Layer familyCommon column fields
ScatterplotLayer, PointCloudLayerPositions, sizes or radii, colors, and point attributes
LineLayer, ArcLayerEndpoints and line or arc style values
ColumnLayerPositions, elevations, fill, outline, and outline width
IconLayerPositions, size, color, angle, and pixel offset
TextLayerText values and character offsets

Column inputs and accessors are alternative ways to supply the same layer attributes. When a supported column is supplied, it overrides the matching accessor while preserving the layer's visual field contract and source-row interaction model. Some column paths have a narrower contract than accessor-driven paths, such as not accepting layer extensions. A layer can return to accessor-driven input when the column source is removed, so updates must preserve the same visual and interaction contract across both modes.

References: modules/…/scatterplot-layer-columns.ts• L12-80 modules/…/point-cloud-layer-columns.ts• L12-41 modules/…/line-layer-columns.ts• L12-57 modules/…/arc-layer-columns.ts• L12-81 modules/…/column-layer-columns.ts• L12-72 modules/…/icon-layer.ts• L134-176 modules/…/text-layer.ts• L372-417 modules/…/scatterplot-layer.ts• L113-139 modules/…/scatterplot-layer.ts• L227-405 modules/…/arc-layer.ts• L178-377

Layer composition

Applications compose layers by passing an ordered list to the deck.gl view. A composite layer presents one product-level visual while coordinating primitive layers underneath it. This lets one data set use several marks, such as a polygon fill with an outline or a text label with a background, without changing the application data model.

The main composite relationships are:

Composite layerVisual parts
PolygonLayerSolidPolygonLayer for area and PathLayer for outlines
TextLayerIconLayer for characters and an optional text background
GeoJsonLayerCircle, icon, or text point marks, PathLayer lines, and SolidPolygonLayer polygons selected from GeoJSON geometry

References: docs/…/polygon-layer.md• L8-11 docs/…/text-layer.md• L7-10 docs/…/text-layer.md• L480-486 modules/…/geojson-layer.ts• L473-555 modules/…/geojson-layer.ts• L557-633 modules/…/sub-layer-map.ts• L13-123

Visual layer families

Point marks

ScatterplotLayer represents each object as a circle at a position. It is suited to locations or numeric measures that need a radius, fill, optional outline, and optional edge smoothing. PointCloudLayer represents a 3D collection of points with positions, colors, and optional normals, so it serves point scans and other dense 3D point data rather than ordinary map markers. Both layers can keep point identity aligned with compact or binary data for interaction and can receive their visual fields as columnar input.

The point layers share screen-size limits and can use shader edge smoothing when a smoother point boundary is needed. Accessor-driven rendering paths accept shared size, position, and color extension changes while preserving picking as a separate output. Columnar point paths keep the same visual fields and source-row identity but do not accept layer extensions. ScatterplotLayer can switch between columnar and accessor-driven data while retaining its layer identity and rebuilding the matching data path. PointCloudLayer accepts the common point-cloud attribute shape used by loaders, which makes loaded point data fit the same visual contract as accessor-driven data.

LayerMain representationTypical visual values
ScatterplotLayerOne circle per objectPosition, radius, fill, outline
PointCloudLayerOne 3D point per objectPosition, point size, color, normal

GeoJsonLayer can use circle, icon, or text marks for point and multipoint features. It can select more than one point form by combining the supported point types, so one feature set can show a circle and a label or symbol together.

References: docs/…/scatterplot-layer.md• L7-8 modules/…/scatterplot-layer.ts• L193-380 modules/…/scatterplot-layer-columns.ts• L12-80 modules/…/scatterplot-layer-vertex.glsl.ts• L85-107 modules/…/scatterplot-layer.wgsl.ts• L100-139 modules/…/scatterplot-layer.wgsl.ts• L185-215 docs/…/point-cloud-layer.md• L7-8 modules/…/point-cloud-layer.ts• L49-68 modules/…/point-cloud-layer.ts• L69-186 modules/…/point-cloud-layer-columns.ts• L12-41 modules/…/point-cloud-layer.wgsl.ts• L50-87 modules/…/geojson-layer.ts• L557-617 modules/…/sub-layer-map.ts• L13-90

Line and path marks

LineLayer draws one straight segment between a source and a target position. PathLayer turns a connected list of positions into a stroked polyline, which makes it the better fit for routes, tracks, and other multi-vertex features. Both layers support width units and pixel bounds so a mark can either track the world or stay legible on screen. LineLayer can also receive endpoint and style fields as columnar input.

PathLayer can normalize open and closed paths and split geographic paths when needed. Preprojecting views can refine path edges to a map-meter tolerance so curved projected edges remain close to the source shape. Geographic longitude cutting is used before preprojection rather than on already projected coordinates. The layer keeps generated segments tied to their source row, including when one path expands into several render segments, so path picking and composite-layer picking can still identify the original data object. The path contract stays consistent across WebGL and WebGPU rendering, including joins, caps, path-distance behavior, and shared extension changes to stroke size, position, and color. Paths that do not have enough vertices do not produce a visual path.

LayerInput shapeVisual purpose
LineLayerSource and target positionsPairwise links or segments
PathLayerA list of positionsRoutes and continuous lines

References: docs/…/line-layer.md• L7-8 docs/…/line-layer.md• L208-238 modules/…/line-layer.ts• L115-179 modules/…/line-layer-columns.ts• L12-57 modules/…/line-layer-vertex.glsl.ts• L79-107 modules/…/line-layer.wgsl.ts• L126-165 modules/…/line-layer.wgsl.ts• L168-229 docs/…/path-layer.md• L7-8 docs/…/path-layer.md• L240-276 modules/…/path.ts• L20-47 modules/…/path-layer.ts• L172-205 modules/…/path-layer.ts• L382-484 modules/…/path-layer.ts• L486-512 modules/…/path-layer.wgsl.ts• L279-287 modules/…/path-layer.wgsl.ts• L425-520 modules/…/path-tesselator.ts• L52-109 modules/…/path-tesselator.ts• L121-187

Polygon surfaces

SolidPolygonLayer is the primitive for filled polygon surfaces. It can keep a polygon flat or give it an elevation. Its projection-aware geometry path can refine polygon edges before projected triangulation, which helps preserve curved or custom-projected boundaries. PolygonLayer adds the product-level choice of fill, stroke, extrusion, and wireframe by combining the solid surface with a path outline and forwarding the same projection settings to both parts. For flat polygons it draws the outline as a separate path visual. For extruded polygons it keeps the fill and wireframe together so the raised surface renders as one visual.

Polygon geometry can be a nested list of points, a flat position array, or a flat position array with hole boundaries. The layer normalizes these forms into a common surface representation, closes open rings, and applies the ring winding needed to distinguish an outer boundary from holes. It can also split geographic geometry at projection boundaries and prepare 3D geometry on its largest planar face when full 3D or geocentric rendering is enabled. When projection refinement is active, it preserves hole boundaries and hidden cut edges while it adds samples. This gives the same visual layer a stable input contract for simple, holed, flat, elevated, and globe-rendered surfaces.

The polygon surface supports the same source-row interaction model for top faces, side faces, and wireframes. Both polygon shader paths also apply shared position and color extension changes before the final visual output.

LayerRoleMain choices
SolidPolygonLayerPolygon surface primitiveFill, extrusion, wireframe
PolygonLayerCombined polygon visualFill, outline, extrusion, wireframe

References: docs/…/solid-polygon-layer.md• L8 docs/…/solid-polygon-layer.md• L161-208 modules/…/polygon.ts• L28-47 modules/…/polygon.ts• L204-271 modules/…/polygon.ts• L304-407 modules/…/polygon-tesselator.ts• L89-163 modules/…/polygon-tesselator.ts• L165-213 modules/…/polygon-tesselator.ts• L258-346 modules/…/solid-polygon-layer.ts• L40-130 modules/…/solid-polygon-layer.ts• L324-443 modules/…/solid-polygon-layer.ts• L540-562 modules/…/polygon-layer.ts• L251-332 modules/…/polygon-layer.ts• L376-475 modules/…/solid-polygon-layer.wgsl.ts• L35-74 modules/…/solid-polygon-layer.wgsl.ts• L99-135 modules/…/solid-polygon-layer.wgsl.ts• L168-236

Connections and arcs

ArcLayer represents a connection between two positions as a raised arc. It extends the two-endpoint model of LineLayer with height, tilt, and optional great-circle shape. Source and target colors can differ, which helps show direction or values at the two ends of a connection. Width units and pixel limits use the same line-sizing convention as other connection layers. Geographic shortest-path handling also keeps connections from taking the long way around the date line. Endpoint and style fields can also come from columnar input.

Accessor-driven arc rendering applies shared size, position, and color extension changes in both rendering backends. Columnar arc input preserves the same endpoint and style meaning but does not accept layer extensions. Its picking output remains the connection identity rather than an extension-modified display color.

References: docs/…/arc-layer.md• L7-8 docs/…/arc-layer.md• L168-214 docs/…/arc-layer.md• L219-270 modules/…/arc-layer.ts• L50-181 modules/…/arc-layer.ts• L190-241 modules/…/arc-layer.ts• L303-377 modules/…/arc-layer-columns.ts• L12-81 modules/…/arc-layer-vertex.glsl.ts• L219-247 modules/…/arc-layer.wgsl.ts• L282-369

Labels and icons

TextLayer places readable text at positions and controls its size, alignment, rotation, and optional background. It creates the font representation needed for the labels and uses an icon-based character layer as its drawing part. Its glyph rendering can also apply signed-distance-field styling for smooth text outlines. The optional TextBackgroundLayer supplies the label box with padding, rounded corners, fill, and outline. Text data can come from row accessors or compact text buffers, while picking remains tied to the source label.

IconLayer places raster symbols at positions from a shared atlas or from images packed at run time. Its icon manager can reuse a supplied atlas and mapping, or collect unique image definitions into an atlas as data arrives. It reports a failed image load with the source object and source index so applications can relate the error to their data. It can also receive position and style fields as columnar input while keeping icon definitions tied to the atlas mapping. Both layers default to camera-facing marks and support pixel offsets for screen placement. Their shared rendering paths apply size, position, and color extension changes while keeping generated character and icon instances tied to the logical source row used for picking.

LayerSource representationMain use
TextLayerText strings and font settingsNames, values, and annotations
IconLayerAtlas entries or image definitionsMarkers, symbols, and images at points

References: docs/…/text-layer.md• L7-10 docs/…/text-layer.md• L163-201 modules/…/text-layer.ts• L61-234 modules/…/text-layer.ts• L281-418 modules/…/text-layer.ts• L533-729 modules/…/multi-icon-layer.ts• L30-58 modules/…/multi-icon-layer.ts• L85-106 modules/…/multi-icon-layer.wgsl.ts• L182-353 modules/…/multi-icon-layer-vertex.glsl.ts• L75-155 modules/…/text-background-layer.ts• L33-79 modules/…/text-background-layer.ts• L165-209 modules/…/text-background-layer.wgsl.ts• L107-255 modules/…/text-background-layer-vertex.glsl.ts• L77-103 docs/…/icon-layer.md• L7-16 modules/…/icon-layer.ts• L47-128 modules/…/icon-layer.ts• L134-176 modules/…/icon-layer.ts• L365-480 modules/…/icon-manager.ts• L46-79 modules/…/icon-manager.ts• L404-519

Columns and common surfaces

ColumnLayer draws one disk or extruded column for each data object. Its position identifies the column, its radius or custom footprint defines the base, and its elevation can encode a value. Fill, outline, and wireframe choices let the same mark show flat or raised data. GridCellLayer uses the same column family for grid cells. These layers are also useful as the final visual stage for aggregation layers, which calculate cell values before handing them to a primitive representation. ColumnLayer can receive its position, elevation, and style fields as columnar input.

BitmapLayer covers a different common case: it places an image over a rectangular geographic or Cartesian area, or over four supplied corners. It is a visual surface rather than a per-object point, line, or polygon mark. An image coordinate system can reinterpret rectangular bounds when the image and view use different geographic spaces, while four-corner bounds describe the image directly. In a preprojecting view, optional mesh refinement adds samples to keep a non-linear projected image surface within a map-meter tolerance while preserving the image's bilinear UV mapping. Picking can report the image pixel under the pointer. Its rendering path keeps image-coordinate picking data separate from display color when extensions change the final color.

References: docs/…/column-layer.md• L9 docs/…/column-layer.md• L159-224 modules/…/column-geometry.ts• L23-35 modules/…/column-layer.ts• L45-150 modules/…/column-layer.ts• L247-429 modules/…/column-layer-columns.ts• L12-72 modules/…/column-layer.ts• L578-647 modules/…/bitmap-layer.ts• L47-110 modules/…/bitmap-layer.ts• L202-233 modules/…/bitmap-layer.ts• L278-312 modules/…/bitmap-layer.ts• L338-360 modules/…/create-mesh.ts• L18-80 modules/…/create-mesh.ts• L104-150 modules/…/bitmap-layer.wgsl.ts• L81-154 docs/…/README.md• L15-27

Geometry collections

GeoJsonLayer is the standard bridge for GeoJSON data. It reads feature geometry and routes points to one or more of circles, icons, and text, lines to path visuals, and polygons to filled or extruded polygon visuals. It keeps the source feature available for accessors and picking while presenting the result as the same primitive marks described above. A point feature can use more than one supported point form when the point type names are combined.

The layer accepts GeoJSON objects, feature arrays, URLs, binary feature collections, and Arrow tables with a GeoArrow geometry column. This gives applications a compact representation without changing the visual meaning of the point, line, and polygon features. Accessors still receive feature-like values, and picking maps generated instances back to source feature indexes. Point sublayers share the parent layer's style rules, while binary point text maps character hits back to the source feature. For specialized spatial sources, formats, tiles, and coordinate indexes, continue to the geospatial layer types.

References: docs/…/geojson-layer.md• L7-10 modules/…/geojson-layer.ts• L44-74 modules/…/geojson-layer.ts• L333-349 modules/…/geojson-layer.ts• L384-447 modules/…/geojson-layer.ts• L449-469 modules/…/geojson-layer.ts• L557-647 modules/…/sub-layer-map.ts• L13-123

Shared layer conventions

Position and coordinate meaning

Every object supplies positions as two- or three-value arrays. A layer interprets those positions through its coordinate system, which can be longitude and latitude, local meter offsets, degree offsets, or Cartesian coordinates. The coordinate system belongs to the layer, so layers with different source coordinate meanings can still be composed in one view.

References: docs/…/coordinate-systems.md• L1-7 docs/…/coordinate-systems.md• L49-70

Dimension and size units

Dimensions such as radius, width, height, and text size use a layer-specific *Units setting when one is available. Meter units describe physical scale, common units follow the shared projected space, and pixel units preserve screen legibility during zoom. Scale multipliers and minimum or maximum pixel limits provide a common way to tune a whole layer without changing every data value. Projection-aware refinement measures its tolerance in meters when the target coordinate reference system provides valid per-axis meter scales.

References: docs/…/coordinate-systems.md• L94-129 docs/…/scatterplot-layer.md• L168-216 docs/…/path-layer.md• L166-211 modules/…/utils.ts• L5-35 modules/…/scatterplot-layer.wgsl.ts• L100-124 modules/…/path-layer.wgsl.ts• L279-287

Accessor values

An accessor is either a constant value for all objects or a function that derives a value from each object. Standard layers use the same get... naming pattern for geometry and style, so an application can change data-driven color, size, position, text, or elevation without changing the layer type. Where a layer supports columnar input, a supplied column overrides the matching accessor while keeping the same visual field contract. Arrow and SQL accessors extend this pattern to typed or query-backed fields. The column path can still have feature limits that do not apply to accessors.

References: docs/…/using-layers.md• L81-98 docs/…/line-layer.md• L208-238 docs/…/solid-polygon-layer.md• L69-90 modules/…/arc-layer.ts• L129-175 modules/…/arc-layer-columns.ts• L54-81 modules/…/scatterplot-layer.ts• L41-139 modules/…/scatterplot-layer.ts• L337-405 modules/…/column-layer-columns.ts• L47-72 modules/…/text-layer.ts• L161-197

Identity and interaction

Each layer needs a unique id so deck.gl can match it across updates. The shared base contract also provides visibility, opacity, extensions, error handling, and picking. A layer becomes responsive to pointer events when pickable is enabled, and applications can then use hover, click, drag, and highlight behavior across the standard layer families. Path, point, polygon, icon, and text layers preserve source-row identity when one source record expands into several rendered instances. TextLayer maps character hits back to the source label, and GeoJsonLayer maps generated point hits back to the source feature.

References: docs/…/layer.md• L35-49 docs/…/layer.md• L92-138 docs/…/layer.md• L141-175 modules/…/path-layer.ts• L347-367 modules/…/path-layer.ts• L486-512 modules/…/scatterplot-layer.ts• L252-318 modules/…/scatterplot-layer.wgsl.ts• L185-215 modules/…/solid-polygon-layer.ts• L253-290 modules/…/solid-polygon-layer.wgsl.ts• L44-74 modules/…/icon-layer.ts• L228-237 modules/…/icon-layer.ts• L367-379 modules/…/text-layer.ts• L336-341 modules/…/text-layer.ts• L372-417 modules/…/multi-icon-layer.ts• L85-106 modules/…/geojson-layer.ts• L449-469

Layer extensions

Layer extensions provide shared hooks for changing mark size, projected position, and final color. Standard layers expose these hooks in both WebGL and WebGPU paths, so an extension can keep one visual rule across rendering backends. Picking colors and bitmap picking values remain payloads for interaction rather than display colors, while an extension can still discard a picked fragment through its color hook. Columnar scatterplot input uses a narrower contract and rejects extensions; switching back to accessor input restores the extension path.

References: modules/…/icon-layer-vertex.glsl.ts• L66-92 modules/…/icon-layer.wgsl.ts• L83-170 modules/…/path-layer.wgsl.ts• L279-287 modules/…/path-layer.wgsl.ts• L425-520 modules/…/solid-polygon-layer.wgsl.ts• L35-74 modules/…/bitmap-layer.wgsl.ts• L98-154 modules/…/scatterplot-layer.ts• L265-370

Layer selection flow

The layer choice follows the shape of the source data and the visual question. This diagram shows how common data shapes map to standard layer families and then to composed visuals.

flowchart LR
  D[Data objects] --> P[Point positions]
  D --> L[Endpoint pairs or paths]
  D --> A[Polygon geometry]
  D --> T[Text or image symbols]
  P --> S[ScatterplotLayer or PointCloudLayer]
  L --> E[LineLayer, PathLayer, or ArcLayer]
  A --> G[SolidPolygonLayer or PolygonLayer]
  T --> I[TextLayer or IconLayer]
  D --> J[GeoJSON features]
  J --> K[GeoJsonLayer]
  K --> S
  K --> E
  K --> G
  K --> I

References: docs/…/using-layers.md• L105-109 docs/…/README.md• L9-27 modules/…/index.ts• L7-20

Change checklist

When these files or sections are changed, remember to consider these:

  • When a primitive accessor or default changes, check the composite layers that forward that accessor, especially PolygonLayer, TextLayer, and GeoJsonLayer.
  • When a PolygonLayer composition option changes, check the fill and stroke sublayers together, including their draw order and forwarded update triggers.
  • When a columnar input changes, check its field mapping, accessor fallback, row count, loading state, bounds, and source-row picking together.
  • When switching between accessor and columnar data, check the supported extension and transition contract for the selected data path.
  • When GeoJsonLayer point forms change, check the point-type mapping, duplicate suppression, and source-feature picking for circle, icon, and text sublayers.
  • When a geometry changes from positions to a different coordinate form, check the matching coordinateSystem, position format, and dimension units together.
  • When a standard layer is added, renamed, or removed, update the public exports and the core layer catalog so users can discover the same API from both paths.
  • When text or icon input rules change, check the related font, atlas, mapping, and picking behavior because these resources affect both display and interaction.
  • When generated icon or glyph instances change, check the logical source-row mapping so picking still returns the source object rather than a generated instance.
  • When compact data supplies logical row indexes, check the point, polygon, icon, and text paths together so rendering and picking use the same source identity.
  • When a primitive becomes an aggregation output, check the handoff contract between the aggregation layer and the primitive layer rather than changing only the final visual.
  • When polygon input or tessellation changes, check ring closure, outer-ring and hole winding, hole boundaries, flat versus full 3D behavior, geocentric orientation, and any preprojection used for geospatial data together.
  • When bitmap bounds or image coordinate rules change, check rectangular bounds, four-corner bounds, projection conversion, and bitmap pixel picking together.
  • When PathLayer geometry or rendering behavior changes, check the GLSL and WGSL shader paths together with path tessellation, open or closed path handling, neighbor data, and source-row picking.
  • When path edge smoothing changes, check both billboard and common-space rendering because they must preserve the same joins, caps, and path-distance behavior.
  • When arc interpolation or edge smoothing changes, check the GLSL and WGSL paths together because they must preserve shortest-path splitting, endpoint color interpolation, picking, and width coverage.
  • When circle edge smoothing changes, check the GLSL and WGSL paths together because their antialiasing choices must produce the same circle and stroke behavior.
  • When icon atlas loading or packing changes, check unique icon reuse, mapping coordinates, texture updates, load completion, and source-aware error reporting together.
  • When shared layer uniforms or extension hooks change, check size, position, color, picking payloads, and premultiplied-alpha handling across the GLSL and WGSL paths.
  • When a shader extension hook changes, check all standard layer families that use the hook so WebGL and WebGPU keep the same visual and interaction contract.
  • When projection refinement changes, check that path, polygon, and bitmap tolerances use valid linear coordinate units, rebuild after projection or model changes, and preserve source geometry and source-row styling.
  • When GeoJSON accepts a new table or binary form, check feature decoding, forwarded accessors, incremental updates, point text indexing, and source-feature picking together.
  • When a columnar layer changes mode, check resource cleanup, asynchronous loading state, instance counts, bounds, extension lifecycle, and row-index mapping together.

Important failure modes

TriggerConsequenceGuard
A layer uses a coordinate system that does not match its positionsMarks appear in the wrong place or at the wrong scaleSet coordinateSystem and coordinateOrigin to match the source world space
Two live layer instances use the same iddeck.gl can match the wrong state during an updateGive every application layer a stable unique id
A line, path, arc, or polygon accessor returns the wrong geometry shapeThe visual is malformed or cannot be builtMatch the accessor result to the layer's position, endpoint, path, or polygon contract
Column fields have different row counts or omit required position data without a matching accessorInstances can be missing, misaligned, or unable to renderKeep related columns aligned and provide required fields through columns or accessors
Columnar input is combined with an extension or transition that the data path does not supportLayer creation or updates failUse the supported columnar contract or use accessor-driven input for those features
A columnar layer changes back to accessors without restoring its attribute and extension stateUpdates can use stale resources or lose visual extension behaviorTreat the mode change as a full data-path transition and restore the accessor contract
Polygon rings are open, have the wrong winding, or use incorrect hole boundariesThe surface can fill incorrectly or holes can disappearUse supported polygon forms and let normalization close rings and set outer and hole winding
A 3D polygon has no face with usable areaTessellation produces no surface trianglesProvide non-degenerate 3D polygon geometry or use a suitable 2D representation
A path has fewer than two points, or a closed path has fewer than threeThe path produces no rendered geometrySupply enough vertices for the selected open or closed path form
Shader edge smoothing is used on a path that overlaps itselfThe path can show coverage artifactsUse render-target multisampling when overlapping paths need cleaner edges
A shortest-path arc crosses the date line without a valid splitThe arc can span the wrong world copy or show a gapUse geographic coordinates with the layer's shortest-path behavior and keep GLSL and WGSL paths aligned
A text character is outside the configured character setThe label can be missing and a warning can be loggedInclude the needed characters or use automatic character detection when appropriate
An icon atlas and mapping do not describe the same image regionsIcons render with the wrong image or fail to renderKeep the atlas and its mapping generated and versioned as one resource
An auto-packed icon cannot load or has no stable URL or idThe icon can remain missing and the layer reports a load errorGive each icon a valid URL and stable id, and handle onIconError when needed
A generated icon or glyph instance does not carry the expected source-row mappingPicking can identify a generated instance instead of the source data objectPreserve the logical row index when expanding one source object into multiple instances
A compact point or polygon data set carries row indexes that do not match its source recordsPicking can return the wrong source object even when the mark is drawn correctlyKeep the logical row index buffer aligned with the source data used by the layer
GeoJsonLayer.pointType contains an unsupported point formThe matching GeoJSON points have no visual sublayerUse the supported circle, icon, and text forms and combine them only with the supported separator
A GeoArrow table has no geometry field with supported encodingThe GeoJSON layer cannot create feature-like rowsSupply a GeoArrow geometry column with its encoding metadata
Text outline width is set without signed-distance-field renderingThe requested outline cannot render as intendedEnable SDF text rendering when using an outline width
_imageCoordinateSystem is used with four-corner bitmap boundsThe bitmap coordinate conversion is rejectedUse rectangular bounds when an image coordinate system conversion is required
A globe view culls a line or arc from the current sideThe connection becomes invisible from some camera anglesUse a cull mode that renders both sides when the visual requires it
An extension changes size, position, or color in only one shader backendWebGL and WebGPU show different geometry or stylingApply the same extension contract to both GLSL and WGSL paths
A color extension changes a picking payload instead of only filtering itPicking returns invalid object or bitmap dataKeep picking colors and bitmap picking values unchanged while allowing discard behavior
Projection refinement is requested without a preprojecting view or valid linear target unitsLayer creation fails instead of producing refined geometryUse a preprojecting view with a projected or geocentric CRS that provides positive meter scales
Projection refinement is used with GPU-only geometry or per-vertex path or polygon stylingRefinement cannot map generated geometry or source styles to rowsUse CPU-readable normalized geometry and per-object geometry and style values

Key files

FileWhy to read it
modules/…/package.jsonDefines the public @deck.gl/layers package boundary and its runtime entry points.
modules/…/index.tsShows the public set of standard layer classes and their prop types.
docs/…/using-layers.mdExplains the shared data, accessor, composition, and update model.
docs/…/coordinate-systems.mdDefines position spaces and the units used by layer dimensions.
docs/…/layer.mdDefines the base identity, data, visibility, opacity, and interaction contract.
modules/…/scatterplot-layer.tsShows the circle mark, columnar and accessor data paths, and source-row support.
modules/…/scatterplot-layer-columns.tsShows how columnar point fields map to the scatterplot visual contract.
modules/…/point-cloud-layer.tsShows the dense 3D point representation and point-cloud data contract.
modules/…/line-layer.tsShows the endpoint-pair contract for straight connections.
modules/…/line-layer-columns.tsShows columnar endpoint and style inputs for straight connections.
modules/…/arc-layer.tsShows the raised connection contract and endpoint-specific styling.
modules/…/arc-layer-vertex.glsl.tsShows geographic interpolation, date-line splitting, extension hooks, and width coverage for the GLSL arc path.
modules/…/arc-layer.wgsl.tsShows the matching WebGPU arc behavior, extension hooks, and picking path.
modules/…/path-layer.tsShows the path visual contract, rendering modes, projection refinement, and source-row interaction behavior.
modules/…/path.tsShows the common path input forms and geographic path splitting.
modules/…/path-layer.wgsl.tsShows the WebGPU path contract for joins, caps, edge coverage, and extension hooks.
modules/…/path-tesselator.tsShows how path input becomes open or closed renderable segments, refined projected edges, and source-order segment indexes.
modules/…/solid-polygon-layer.tsShows the polygon surface choices and how flat, extruded, and wireframe visuals share one layer.
modules/…/solid-polygon-layer.wgsl.tsShows the top and side polygon visual contract, extension hooks, and source-row picking.
modules/…/polygon-tesselator.tsShows how normalized polygon geometry becomes renderable positions, indices, ring boundaries, and refined projected edges.
modules/…/polygon.tsShows the supported polygon forms, ring normalization, and surface triangulation rules.
modules/…/polygon-layer.tsShows how the composite polygon forwards fill, outline, and projection behavior to its sublayers.
modules/…/text-layer.tsShows the standard label role, compact text input, and its relationship to font and background visuals.
modules/…/multi-icon-layer.tsShows how text glyphs use icon-like instances and preserve label interaction while supporting text styling.
modules/…/text-background-layer.tsShows the visual contract for label backgrounds.
modules/…/icon-layer.tsShows the icon representation, atlas choices, column inputs, extension lifecycle, and source-row picking support.
modules/…/icon-manager.tsShows the shared atlas, run-time packing, image loading, and icon error contract.
modules/…/column-layer.tsShows the common column representation for flat and raised value marks.
modules/…/column-layer-columns.tsShows columnar position, elevation, and style inputs for columns.
modules/…/column-geometry.tsShows the shared column footprint and raised-column geometry.
modules/…/bitmap-layer.tsShows the image-surface representation, bounds, coordinate conversion, projection refinement, and pixel picking model.
modules/…/create-mesh.tsShows how bitmap bounds become a quad or refined mesh while preserving UV mapping.
modules/…/utils.tsShows the CRS unit validation used for meter-based projection tolerance.
modules/…/geojson-layer.tsShows how GeoJSON, binary features, and GeoArrow tables map to point, line, and polygon visuals.
modules/…/sub-layer-map.tsShows the supported GeoJSON point forms and the shared properties forwarded to each geometry sublayer.
docs/…/README.mdProvides the boundary between core, aggregation, geospatial, and mesh layer families.