目录

样式参考

自定义地图样式JSON文件通过下列4个元素来定义地图样式:

mapFeature

下列各表将向您展示支持修改的地图元素。

  • 图标类型icon-type支持范围为:standard/night/simple。
  • 饱和度Saturation和亮度Lightness可在元素颜色Color中进行配置。

[h2]all

all代表全部,即所有类别的集合,支持能力范围同其他所有列表。

[h2]administrative

元素代码

Feature type

administrative

country

province

capital

major-city

district

locality

地图元素

Element type

国家

省

首都

1~4级城市

区\县

乡村、城镇

几何描边颜色

Geometry.stroke.color

-

-

-

-

几何描边宽度

Geometry.stroke.weight

-

-

-

-

文本填充颜色

Labels.text.fill.color

文本填充描边宽度

Labels.text.fill.weight

文本描边颜色

Labels.text.stroke.color

文本描边宽度

Labels.text.stroke.weight

图标类型

Geometry.icon-type

-

-

-

-

[h2]landcover

元素代码

Feature type

landcover

natural

human-made

parkland

attraction

hospital

college

business

地图元素

Element type

陆地、岛屿、海滩、冰川等

聚集区、小区、工业区、监狱地面等

building

建筑物

森林、公园、荒地、高尔夫球场等

游乐场、动植物园等

医院

学校

购物中心、商业区等

几何填充颜色

Geometry.fill.color

几何描边颜色

Geometry.stroke.color

-

-

-

-

-

-

文本填充颜色

Labels.text.fill.color

-

文本填充描边宽度

Labels.text.fill.weight

-

文本描边颜色

Labels.text.stroke.color

-

文本描边宽度

Labels.text.stroke.weight

-

[h2]poi

元素代码

Feature type

poi

shopping

tourism

leisure

eating&drinking

beauty

lodging

地图元素

Element type

购物中心、市场等

旅游景点、历史遗迹、教堂等

休闲娱乐

饮食快餐

美容中心

酒店、住宿点

文本填充颜色

Labels.text.fill.color

文本填充描边宽度

Labels.text.fill.weight

文本描边颜色

Labels.text.stroke.color

文本描边宽度

Labels.text.stroke.weight

图标类型

Geometry.icon-type

元素代码

Feature type

poi

health-care

public-service

business

automotive

sports

natural

地图元素

Element type

医院、诊所、药店等

学校、政府、警察局等

公司、商业楼等

汽修、充电桩、洗车等

outdoor户外运动、爬山、骑车等

other 保龄球、游泳等

山峰、森林等

文本填充颜色

Labels.text.fill.color

文本填充描边宽度

Labels.text.fill.weight

文本描边颜色

Labels.text.stroke.color

文本描边宽度

Labels.text.stroke.weight

图标类型

Geometry.icon-type

[h2]road

元素代码

Feature type

road

highway

national

province

city-arterial

minor-road

sidewalk

地图元素

Element type

country

国家高速

city

城市高速

国道

省道

市区内交通要道

市区内支线等

人行道

几何填充颜色

Geometry.fill.color

几何填充线条描边宽度

Geometry.fill.weight

几何描边颜色

Geometry.stroke.color

几何描边宽度

Geometry.stroke.weight

文本填充颜色

Labels.text.fill.color

文本填充描边宽度

Labels.text.fill.weight

文本描边颜色

Labels.text.stroke.color

文本描边宽度

Labels.text.stroke.weight

图标类型

Geometry.icon-type

-

-

-

[h2]transit

元素代码

Feature type

transit

railway

rail-station

ferry-line

ferry-terminal

airport

bus-station

other

地图元素

Element type

铁路线、高铁线

火车站、高铁站

航线

港口

机场

公交车站

出租车、出入口等

几何填充颜色

Geometry.fill.color

-

-

几何填充线条描边宽度

Geometry.fill.weight

-

-

-

-

-

-

几何描边颜色

Geometry.stroke.color

-

-

-

-

-

-

几何描边宽度

Geometry.stroke.weight

-

-

-

-

-

-

文本填充颜色

Labels.text.fill.color

-

-

-

文本填充描边宽度

Labels.text.fill.weight

-

-

-

文本描边颜色

Labels.text.stroke.color

-

-

-

文本描边宽度

Labels.text.stroke.weight

-

-

-

图标类型

Geometry.icon-type

-

-

[h2]water

元素代码

Feature type

water

地图元素

Element type

水系、海洋、湖泊、河流

几何填充颜色

Geometry.fill.color

文本填充颜色

Labels.text.fill.color

文本填充描边宽度

Labels.text.fill.weight