Parameter | Mandatory | Type | Description |
|---|---|---|---|
lat | Yes | double | Latitude. The value range is [-90, 90]. |
lng | Yes | double | Longitude. The value range is [-180, 180]. |
matchType | No | int | Indicates whether road binding is restricted for the departure place and destination. The options are 0 (default) and 1.
|
Parameter | Mandatory | Type | Description |
|---|---|---|---|
name | Yes | String | Condition name. |
field | Yes | String | Attribute name of vector data. |
operator | Yes | String | Operator. Supported operators are =, !=, <, >, <=, >=, like, and not like. |
value | Yes | String | Value. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
minZoom | Yes | integer | Minimum zoom level. |
maxZoom | Yes | integer | Maximum zoom level. |
bbox | No | String[] | Slicing range, including the longitude and latitude of the southeast corner and northwest corner. |
filter | No | Rule for filtering vector data. | |
resampling | No | String | Raster data resampling algorithm. The options are as follows:
|
Parameter | Mandatory | Type | Description |
|---|---|---|---|
conditions | Yes | Criteria for filtering vector data. | |
logics | Yes | String | Logical relationship between criteria. The options are or, and, (, and ). |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
strokeColor | No | String | Stroke color. |
strokeWidth | No | integer | Stroke width. The default value is 1. |
strokeLineDash | No | Integer[] | Dashed stroke line. |
fillColor | No | String | Fill color. |
fillOpacity | No | number($float) | Fill color transparency. The value range is [0, 1]. The default value is 1. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
url | No | String | Icon URL, which must be accessible through the Internet. |
anchor | No | String | Relative anchor position of the icon. The value range is [center, left, right, top, bottom, top-left, top-right, bottom-left, bottom-right]. The default value is center. |
scale | No | number($float) | Icon size. The value must be greater than or equal to 0. The default value is 1. |
opacity | No | number($float) | Transparency. The value range is [0, 1]. |
color | No | String | Fill color. The default value is #000000. Only SDF images are supported. |
collisionSize | No | number($float) | Icon collision size, in pixels. The default value is 1. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
textField | No | String | Label content, which is obtained from the tile, for example, textField: 'title'. |
textSize | No | integer | Font size, in pixels. The value must be greater than 0, and the default value is 16. |
offsetX | No | integer | Text offset on the X axis. The default value is 0. |
offsetY | No | integer | Text offset on the Y axis. The default value is 0. |
color | No | String | Text fill color. The default value is #000000. |
textOuterLineSize | No | integer | Text stroke width. The default value is 0. |
textOuterLineColor | No | String | Text stroke color. The default value is rgba(0, 0, 0, 0). |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
dataId | Yes | String | Data ID. |
featureId | Yes | String | Feature ID. |
layerType | No | String | Vector map layer type. The options are as follows:
|
data | Yes | Tile data compilation rule. | |
point | No | Point layer. | |
zoning | No | Zoning layer. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
visible | No | boolean | Indicates whether to display the point layer.
|
collisionEnabled | No | boolean | Indicates whether to enable text and icon collision.
|
symbolSortKey | No | String | Feature priority, which is obtained from the tile. The feature with a smaller value will cover that with a larger value. Example: symbolSortKey: 'rank' |
multilingualOptions | No | Map | Multi-language settings for a custom map layer. If this parameter is not set, the value of textField in Label will be used for display. {
localCode: 'zh',
zh: 'zh_name',
en: 'en_name',
fr: 'fr_name',
} The localCode field is mandatory. Other fields indicate the language name and the attribute field name displayed in the corresponding language. Display rule: The attribute value is displayed based on the current language. If the current language does not have a corresponding attribute value, the attribute value corresponding to localCode will be displayed. |
zIndex | No | integer | Cover relationship. A layer with a larger value will cover that with a smaller value. The default value is 0. |
icon | No | Icon of the point layer. | |
label | No | Text configuration of the point layer. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
field | No | String | Segment field, which is obtained from the tile. |
type | No | String | Segment type. The options are single and interval. |
styles | No | Segment style. The fill value of SegmentStyle is the same as that of Segment. However, the strokeLineDash attribute is not supported. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
factor | No | String | Segment value.
|
fill | No | Fill of a zoning layer. The fill value of SegmentStyle is the same as that of Segment. However, the strokeLineDash attribute is not supported. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
visible | No | boolean | Indicates whether to display the zoning layer.
|
fillSortKey | No | String | Zoning priority, which is obtained from the tile. A layer with a larger value will cover that with a smaller value. Example: fillSortKey: 'rank' |
zIndex | No | integer | Cover relationship. A layer with a larger value will cover that with a smaller value. The default value is 0. |
fill | No | Fill of a zoning layer. | |
segmentStyle | No | Segment style of a zoning layer. |