Перейти к основному содержимому

typeAlias

ControlPosition

Possible position of the control.

"topLeft"|"topCenter"|"topRight"|"centerLeft"|"centerRight"|"bottomLeft"|"bottomCenter"|"bottomRight"

DiscardApplyOptions

"maxBounds"|"styleZoom"|"modelsTilesUrl"|"modelsTileSet"|"defaultSourceModelsRootUrl"|"defaultSourceModelsAppearStrategy"|"sessionId"|"tileSessionId"|"tileServerDefaultLang"|"keepCenterWhileUserZoomRotate"|"preserveDrawingBuffer"|"useRtlTextPlugin"|"rtlPluginUrl"|"rtlPluginHash"|"commercialPoiRandomSeed"|"disableSurvivedPoiPrevalence"|"webglVersion"|"disableBssStatistics"|"disableBssStatisticsForCommPoi"|"bssUrl"|"disableAntiAliasing"|"key"|"zoomControl"|"trafficControl"|"scaleControl"|"floorControl"|"copyright"|"interactiveCopyright"|"autoHideOSMCopyright"|"controlsLayoutPadding"|"styleState"|"styleOptions"|"styleServer"|"tileServer"|"tileProtocol"|"tileSet"|"commercialTileSet"|"trafficServer"|"trafficProtocol"|"floorsEnabled"|"disableAnalytics"|"subdomains"|"cameraConfig"|"trafficMinZoom"|"trafficMaxZoom"|"dracoDecoderUrl"|"trafficMaxDetailLevel"|"bssHostAppParams"|"modelShowHideEventsSublayers"|"graphicsPreset"

Easing

A set of easing functions (https://easings.net/en).

"linear"|"easeInQuad"|"easeOutQuad"|"easeInOutQuad"|"easeInCubic"|"easeOutCubic"|"easeInOutCubic"|"easeInQuart"|"easeOutQuart"|"easeInOutQuart"|"easeInQuint"|"easeOutQuint"|"easeInOutQuint"|"easeInSine"|"easeOutSine"|"easeInOutSine"|"easeInExpo"|"easeOutExpo"|"easeInOutExpo"|"easeInCirc"|"easeOutCirc"|"easeInOutCirc"|"easeInElastic"|"easeOutElastic"|"easeInOutElastic"|"easeInBack"|"easeOutBack"|"easeInOutBack"|"easeOutBounce"

EventTargetData

The target data of a pointer event.

GeoJsonEventTargetData|DefaultEventTargetData

Expression

Type representing the style layer property expressions.

For detailed information about expression compositing, exceptions, and specific property requirements for different layer types, refer to the MapGL JS API documentation.

[ExpressionName, ...any[]]

ExpressionName

TypeExpressionName|ExtractorExpressionName|LogicalExpressionName|MathExpressionName|InterpolateExpressionName|"pattern"

ExtractorExpressionName

"get"|"sourceAttr"|"featureState"|"global"

GraphicsPresetFeatureFlag

Graphics preset feature flags.

"skyOff"|"fogOff"|"shadowsOff"|"immersiveRoadsOff"|"modelsOff"|"globeOff"

GraphicsPresetName

"light"|"normal"|"immersive"

InterpolateExpression

["interpolate", ["linear"]|["exponential", number], ["zoom"], ...T[]]

InterpolateExpressionName

"interpolate"|"step"

Layer

For more information on how to use style layers, refer to the MapGL JS API documentation.

PolygonStyleLayer|LineStyleLayer|DashedLineStyleLayer|PointStyleLayer|RasterStyleLayer|HeatmapStyleLayer|ModelStyleLayer|PolygonExtrusionStyleLayer|LineExtrusionStyleLayer|Polygon3dStyleLayer|MetricPointStyleLayer|LabelLineStyleLayer|GroupStyleLayer

LogicalExpressionName

"!"|"=="|"!="|">"|">="|"<"|"<="|"match"|"all"|"any"|"in"

MathExpressionName

"^"|"log10"

PolylineRenderingMode

Defines the polyline rendering mode. Use:

  • '3d' to use the depth buffer.
  • '2d' to add a layer with no depth.
"2d"|"3d"

Source

GeoJsonSource|RasterTileSource

SupportedSimpleOpts

"disableDragging"|"enableTrackResize"|"loopWorld"|"disableHidingPois"|"enableTwoFingerDragging"

TileCoords

Tile coordinates [x, y, zoom]

[number, number, number]

TypeExpressionName

"to-boolean"|"to-color"|"literal"

WebGLContext

WebGLRenderingContext|WebGL2RenderingContext

WebGLVersion

1|2