docs: 完善官网demo、文档

This commit is contained in:
shihui 2022-01-11 21:13:26 +08:00
parent 065f3b3683
commit de75651934
10 changed files with 51 additions and 38 deletions

View File

@ -1,6 +1,6 @@
--- ---
title: Control title: Control
order: 2 order: 12
--- ---
How to use the map control How to use the map control

View File

@ -1,6 +1,6 @@
--- ---
title: 组件 title: 组件
order: 2 order: 12
--- ---
如何使用组件 如何使用组件

View File

@ -1,6 +1,6 @@
--- ---
title: Layer title: Layer
order: 2 order: 12
--- ---
Layer init and interaction Layer init and interaction

View File

@ -1,6 +1,6 @@
--- ---
title: 图层 title: 图层
order: 2 order: 12
--- ---
图层初始化与交互 图层初始化与交互

View File

@ -1,6 +1,6 @@
--- ---
title: Map title: Map
order: 0 order: 12
--- ---
how to use L7 Initialize third-party maps how to use L7 Initialize third-party maps

View File

@ -1,6 +1,6 @@
--- ---
title: 地图 title: 地图
order: 0 order: 12
--- ---
介绍如何初始化一个第三方底图 介绍如何初始化一个第三方底图

View File

@ -1,6 +1,6 @@
--- ---
title: Marker title: Marker
order: 2 order: 12
--- ---
add Rich text annotation to scene add Rich text annotation to scene

View File

@ -1,6 +1,6 @@
--- ---
title: Marker title: Marker
order: 2 order: 12
--- ---
通过添加dom实现富文本地图标注 通过添加dom实现富文本地图标注

View File

@ -34,11 +34,10 @@
"title": "航向图", "title": "航向图",
"screenshot":"https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*B645Q4K9PxYAAAAAAAAAAAAAARQnAQ" "screenshot":"https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*B645Q4K9PxYAAAAAAAAAAAAAARQnAQ"
}, },
{ {
"filename": "turin.js", "filename": "turin.js",
"title": "都灵道路图", "title": "都灵道路图",
"screenshot":"https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*CNzqRJDMh-oAAAAAAAAAAAAAARQnAQ" "screenshot":"https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*mo_7Q6sTqOIAAAAAAAAAAAAAARQnAQ"
}, },
{ {
"filename": "cylinder.js", "filename": "cylinder.js",

View File

@ -91,7 +91,7 @@ module.exports = {
order: 4 order: 4
}, },
{ {
slug: 'tutorial/examples', slug: 'tutorial/demo',
icon: 'map', icon: 'map',
title: { title: {
zh: '教程示例', zh: '教程示例',
@ -263,13 +263,15 @@ module.exports = {
} }
], ],
examples: [ examples: [
{ {
slug: 'gallery', slug: 'gallery',
icon: 'gallery', icon: 'gallery',
title: { title: {
zh: '官方精品库', zh: '官方精品库',
en: 'Featured' en: 'Featured'
} },
order: 0
}, },
{ {
slug: 'point', slug: 'point',
@ -277,7 +279,8 @@ module.exports = {
title: { title: {
zh: '点图层', zh: '点图层',
en: 'Point Layer' en: 'Point Layer'
} },
order: 1
}, },
{ {
slug: 'line', slug: 'line',
@ -285,7 +288,8 @@ module.exports = {
title: { title: {
zh: '线图层', zh: '线图层',
en: 'Line Layer' en: 'Line Layer'
} },
order: 2
}, },
{ {
slug: 'polygon', slug: 'polygon',
@ -293,7 +297,26 @@ module.exports = {
title: { title: {
zh: '面图层', zh: '面图层',
en: 'Polygon Layer' en: 'Polygon Layer'
} },
order: 3
},
{
slug: 'earth',
icon: 'map',
title: {
zh: '地球模式',
en: 'Earth Mode'
},
order: 4
},
{
slug: 'wind',
icon: 'raster',
title: {
zh: '风场图层',
en: 'Wind Layer'
},
order: 5
}, },
{ {
slug: 'heatmap', slug: 'heatmap',
@ -302,7 +325,7 @@ module.exports = {
zh: '热力图', zh: '热力图',
en: 'HeatMap Layer' en: 'HeatMap Layer'
}, },
order: 5 order: 6
}, },
{ {
slug: 'raster', slug: 'raster',
@ -310,7 +333,8 @@ module.exports = {
title: { title: {
zh: '栅格图层', zh: '栅格图层',
en: 'Raster Layer' en: 'Raster Layer'
} },
order: 7
}, },
{ {
slug: 'engine', slug: 'engine',
@ -318,7 +342,8 @@ module.exports = {
title: { title: {
zh: '第三方引擎', zh: '第三方引擎',
en: 'other engine' en: 'other engine'
} },
order: 8
}, },
{ {
slug: 'react', slug: 'react',
@ -326,7 +351,8 @@ module.exports = {
title: { title: {
zh: 'React 组件', zh: 'React 组件',
en: 'React Demo' en: 'React Demo'
} },
order: 9
}, },
{ {
slug: 'amapPlugin', slug: 'amapPlugin',
@ -334,31 +360,18 @@ module.exports = {
title: { title: {
zh: '高德地图插件', zh: '高德地图插件',
en: 'amapPlugin' en: 'amapPlugin'
} },
}, order: 10
{
slug: 'earth',
icon: 'map',
title: {
zh: '地球模式',
en: 'Earth Mode'
}
},
{
slug: 'wind',
icon: 'raster',
title: {
zh: '风场图层',
en: 'Wind Layer'
}
}, },
{ {
slug: 'district', slug: 'district',
icon: 'map', icon: 'map',
title: { title: {
zh: '行政区划', zh: '行政区划',
en: 'L7 District' en: 'L7 District'
} },
order: 11
}, },
{ {
slug: 'draw', slug: 'draw',
@ -366,7 +379,8 @@ module.exports = {
title: { title: {
zh: '绘制组件', zh: '绘制组件',
en: 'L7 Draw' en: 'L7 Draw'
} },
order: 12
}, },
{ {
slug: 'tutorial', slug: 'tutorial',