自定义地图样式JSON文件通过下列4个元素来定义地图样式:
元素代码 Feature type | administrative | |||||
|---|---|---|---|---|---|---|
country | province | capital | major-city | district | locality | |
地图元素 Element type | 国家 | 省 | 首都 | 1~4级城市 | 区\县 | 乡村、城镇 |
几何边框颜色 Geometry.stroke.color |
|
| - | - | - | - |
文本填充颜色 Labels.text.fill.color |
|
|
|
|
|
|
文本颜色 Labels.text.stroke.color |
|
|
|
|
|
|
元素代码 Feature type | landcover | |||||||
|---|---|---|---|---|---|---|---|---|
natural | human-made | parkland | attraction | hospital | college | business | ||
地图元素 Element type | 陆地、岛屿、海滩、冰川等 | 聚集区、小区、工业区、监狱地面等 | building 建筑物 | 森林、公园、荒地、高尔夫球场等 | 游乐场、动植物园等 | 医院 | 学校 | 购物中心、商业区等 |
几何填充颜色 Geometry.fill.color |
|
|
|
|
|
|
|
|
文本填充颜色 Labels.text.fill.color |
| - | - |
|
|
|
|
|
文本颜色 Labels.text.stroke.color |
| - | - |
|
|
|
|
|
元素代码 Feature type | poi | |||||
|---|---|---|---|---|---|---|
shopping | tourism | leisure | eating&drinking | beauty | lodging | |
地图元素 Element type | 购物中心、市场等 | 旅游景点、历史遗迹、教堂等 | 休闲娱乐 | 饮食快餐 | 美容中心 | 酒店、住宿点 |
文本填充颜色 Labels.text.fill.color |
|
|
|
|
|
|
文本颜色 Labels.text.stroke.color |
|
|
|
|
|
|
元素代码 Feature type | poi | ||||||
|---|---|---|---|---|---|---|---|
health-care | public-service | business | automotive | sports | natural | ||
地图元素 Element type | 医院、诊所、药店等 | 学校、政府、警察局等 | 公司、商业楼等 | 汽修、充电桩、洗车等 | outdoor户外运动、爬山、骑车等 | other 保龄球、游泳等 | 山峰、森林等 |
文本填充颜色 Labels.text.fill.color |
|
|
|
|
|
|
|
文本颜色 Labels.text.stroke.color |
|
|
|
|
|
|
|
元素代码 Feature type | road | ||||||
|---|---|---|---|---|---|---|---|
highway | national | province | city-arterial | minor-road | sidewalk | ||
地图元素 Element type | country 国家高速 | city 城市高速 | 国道 | 省道 | 市区内交通要道 | 市区内支线等 | 人行道 |
几何填充颜色 Geometry.fill.color |
|
|
|
|
|
|
|
几何边框颜色 Geometry.stroke.color |
|
|
|
|
|
|
|
文本填充颜色 Labels.text.fill.color |
|
|
|
|
|
|
|
文本颜色 Labels.text.stroke.color |
|
|
|
|
|
|
|
元素代码 Feature type | transit | ||||||
|---|---|---|---|---|---|---|---|
railway | rail-station | ferry-line | ferry-terminal | airport | bus-station | other | |
地图元素 Element type | 铁路线、高铁线 | 火车站、高铁站 | 航线 | 港口 | 机场 | 公交车站 | 出租车、出入口等 |
几何填充颜色 Geometry.fill.color | - |
| - |
|
| - | - |
几何边框颜色 Geometry.stroke.color |
| - |
| - | - | - | - |
文本填充颜色 Labels.text.fill.color | - |
| - |
|
| - | - |
文本颜色 Labels.text.stroke.color | - |
| - |
|
| - | - |