MCPcopy
hub / github.com/mapbox/mapbox-gl-js

github.com/mapbox/mapbox-gl-js @14.25.0 sqlite

repository ↗ · DeepWiki ↗ · release 14.25.0 ↗
7,121 symbols 21,384 edges 860 files 750 documented · 11%
README

Mapbox logo

Mapbox GL JS is a JavaScript library for interactive, customizable vector maps on the web. It takes map styles that conform to the Mapbox Style Specification, applies them to vector tiles that conform to the Mapbox Vector Tile Specification, and renders them using WebGL.

Mapbox GL JS is part of the cross-platform Mapbox GL ecosystem, which also includes compatible native SDKs for applications on Android, iOS, macOS, and React Native. Mapbox provides building blocks to add location features like maps, search, and navigation into any experience you create. To get started with GL JS or any of our other building blocks, sign up for a Mapbox account.

In addition to GL JS, this repository contains code, issues, and test fixtures that are common to both GL JS and the native SDKs. For code and issues specific to the native SDKs, see the mapbox/mapbox-gl-native repository.

Mapbox GL JS gallery of map images

Caption: (Mapbox GL JS maps, left-to-right, top-to-bottom): Custom styled point clusters, custom style with points, hexbin visualization on a Dark style map with Popups, data-driven circles over a raster layer with satellite imagery, 3D terrain with custom Markers, Mapbox Movement data visualization.

License

Mapbox Web SDK

Copyright © 2021 - 2023 Mapbox, Inc. All rights reserved.

The software and files in this repository (collectively, “Software”) are licensed under the Mapbox TOS for use only with the relevant Mapbox product(s) listed at www.mapbox.com/pricing. This license allows developers with a current active Mapbox account to use and modify the authorized portions of the Software as needed for use only with the relevant Mapbox product(s) through their Mapbox account in accordance with the Mapbox TOS. This license terminates automatically if a developer no longer has a Mapbox account in good standing or breaches the Mapbox TOS. For the license terms, please see the Mapbox TOS at https://www.mapbox.com/legal/tos/ which incorporates the Mapbox Product Terms at www.mapbox.com/legal/service-terms. If this Software is a SDK, modifications that change or interfere with marked portions of the code related to billing, accounting, or data collection are not authorized and the SDK sends limited de-identified location and usage data which is used in accordance with the Mapbox TOS. [Updated 2023-01]

Extension points exported contracts — how you extend this code

Bucket (Interface)
(no doc) [7 implementers]
src/data/bucket.ts
IControl (Interface)
(no doc) [8 implementers]
src/ui/map.ts
IStructArrayLayout (Interface)
(no doc) [38 implementers]
src/util/struct_array.ts
Expression (Interface)
(no doc) [27 implementers]
src/style-spec/expression/expression.ts
ISource (Interface)
(no doc) [4 implementers]
src/source/source.ts
BucketWithGroundEffect (Interface)
(no doc) [2 implementers]
src/render/draw_fill_extrusion.ts
CollisionDetector (Interface)
(no doc) [1 implementers]
src/symbol/placement_algorithm.ts
FeatureTriSegment (Interface)
(no doc)
3d-style/data/frc_segment_builder.ts

Core symbols most depended-on inside this repo

push
called by 1040
src/data/bucket/fill_extrusion_bucket.ts
on
called by 852
src/ui/map.ts
createMap
called by 650
test/util/vitest.ts
waitFor
called by 508
test/util/vitest.ts
get
called by 481
src/style/fog.ts
run
called by 397
src/util/task_queue.ts
getCanvas
called by 380
src/ui/map.ts
assert
called by 316
src/style-spec/migrate/v8.ts

Shape

Method 3,873
Function 2,123
Class 1,023
Interface 102

Languages

TypeScript100%

Modules by API surface

src/data/array_types.ts295 symbols
src/style/style.ts230 symbols
src/ui/map.ts196 symbols
src/gl/value.ts152 symbols
src/geo/transform.ts136 symbols
src/data/bucket/fill_extrusion_bucket.ts102 symbols
src/data/bucket/symbol_bucket.ts81 symbols
src/terrain/terrain.ts80 symbols
src/style/properties.ts80 symbols
src/util/mapbox.ts71 symbols
src/render/painter.ts69 symbols
src/data/program_configuration.ts68 symbols

Dependencies from manifests, versioned

@actions/core3.0.1 · 1×
@e18e/eslint-plugin0.5.0 · 1×
@eslint/compat2.1.0 · 1×
@eslint/eslintrc3.3.5 · 1×
@eslint/js10.0.1 · 1×
@mapbox/mapbox-gl-styles2.2.0 · 1×
@mapbox/mapbox-gl-supported4.0.0 · 1×
@mapbox/mvt-fixtures4.0.0 · 1×
@mapbox/point-geometry1.1.0 · 1×
@mapbox/tiny-sdf2.2.0 · 1×
@mapbox/unitbezier1.0.0 · 1×
@mapbox/vector-tile3.0.0 · 1×

For agents

$ claude mcp add mapbox-gl-js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact