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

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"|"sunda"

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|StringExpressionName|"pattern"

ExtractorExpressionName​

"get"|"source-attr"|"feature-state"|"global"|"sourceAttr"|"featureState"

GraphicsPresetFeatureFlag​

Graphics preset feature flags.

"skyOff"|"fogOff"|"shadowsOff"|"immersiveRoadsOff"|"reliefOff"|"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

StringExpressionName​

"concat"|"format"

StyleIconConfig​

Config of an original user icon. Only SVG images are supported.

StyleSimpleIconConfig|StyleStretchableIconConfig

SupportedSimpleOpts​

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

TileCoords​

Tile coordinates [x, y, zoom]

[number, number, number]

TypeExpressionName​

"to-boolean"|"to-color"|"literal"|"toBoolean"|"toColor"

WebGLContext​

WebGLRenderingContext|WebGL2RenderingContext

WebGLVersion​

1|2