diff --git a/docs/tutorial/examples/control/index.en.md b/docs/tutorial/demo/control/index.en.md similarity index 86% rename from docs/tutorial/examples/control/index.en.md rename to docs/tutorial/demo/control/index.en.md index d94f9f490a..d5ffb84bc7 100644 --- a/docs/tutorial/examples/control/index.en.md +++ b/docs/tutorial/demo/control/index.en.md @@ -1,6 +1,6 @@ --- title: Control -order: 2 +order: 12 --- How to use the map control diff --git a/docs/tutorial/examples/control/index.zh.md b/docs/tutorial/demo/control/index.zh.md similarity index 85% rename from docs/tutorial/examples/control/index.zh.md rename to docs/tutorial/demo/control/index.zh.md index f14201a8c3..885e620b26 100644 --- a/docs/tutorial/examples/control/index.zh.md +++ b/docs/tutorial/demo/control/index.zh.md @@ -1,6 +1,6 @@ --- title: 组件 -order: 2 +order: 12 --- 如何使用组件 diff --git a/docs/tutorial/examples/layer/index.en.md b/docs/tutorial/demo/layer/index.en.md similarity index 80% rename from docs/tutorial/examples/layer/index.en.md rename to docs/tutorial/demo/layer/index.en.md index 7f77bc28f5..5ac8d54b04 100644 --- a/docs/tutorial/examples/layer/index.en.md +++ b/docs/tutorial/demo/layer/index.en.md @@ -1,6 +1,6 @@ --- title: Layer -order: 2 +order: 12 --- Layer init and interaction diff --git a/docs/tutorial/examples/layer/index.zh.md b/docs/tutorial/demo/layer/index.zh.md similarity index 80% rename from docs/tutorial/examples/layer/index.zh.md rename to docs/tutorial/demo/layer/index.zh.md index f2ca907612..664865caf4 100644 --- a/docs/tutorial/examples/layer/index.zh.md +++ b/docs/tutorial/demo/layer/index.zh.md @@ -1,6 +1,6 @@ --- title: 图层 -order: 2 +order: 12 --- 图层初始化与交互 diff --git a/docs/tutorial/examples/map/index.en.md b/docs/tutorial/demo/map/index.en.md similarity index 93% rename from docs/tutorial/examples/map/index.en.md rename to docs/tutorial/demo/map/index.en.md index 1404c840c1..74f90416ee 100644 --- a/docs/tutorial/examples/map/index.en.md +++ b/docs/tutorial/demo/map/index.en.md @@ -1,6 +1,6 @@ --- title: Map -order: 0 +order: 12 --- how to use L7 Initialize third-party maps diff --git a/docs/tutorial/examples/map/index.zh.md b/docs/tutorial/demo/map/index.zh.md similarity index 93% rename from docs/tutorial/examples/map/index.zh.md rename to docs/tutorial/demo/map/index.zh.md index 9fc0ccf8bd..36789c31ec 100644 --- a/docs/tutorial/examples/map/index.zh.md +++ b/docs/tutorial/demo/map/index.zh.md @@ -1,6 +1,6 @@ --- title: 地图 -order: 0 +order: 12 --- 介绍如何初始化一个第三方底图 diff --git a/docs/tutorial/examples/marker/index.en.md b/docs/tutorial/demo/marker/index.en.md similarity index 88% rename from docs/tutorial/examples/marker/index.en.md rename to docs/tutorial/demo/marker/index.en.md index 7d8ceb2778..da423019fc 100644 --- a/docs/tutorial/examples/marker/index.en.md +++ b/docs/tutorial/demo/marker/index.en.md @@ -1,6 +1,6 @@ --- title: Marker -order: 2 +order: 12 --- add Rich text annotation to scene diff --git a/docs/tutorial/examples/marker/index.zh.md b/docs/tutorial/demo/marker/index.zh.md similarity index 88% rename from docs/tutorial/examples/marker/index.zh.md rename to docs/tutorial/demo/marker/index.zh.md index 328d82cd34..c75cbe2d50 100644 --- a/docs/tutorial/examples/marker/index.zh.md +++ b/docs/tutorial/demo/marker/index.zh.md @@ -1,6 +1,6 @@ --- title: Marker -order: 2 +order: 12 --- 通过添加dom实现富文本地图标注 diff --git a/examples/gallery/animate/demo/meta.json b/examples/gallery/animate/demo/meta.json index fe543c24d2..67d5de2849 100644 --- a/examples/gallery/animate/demo/meta.json +++ b/examples/gallery/animate/demo/meta.json @@ -34,11 +34,10 @@ "title": "航向图", "screenshot":"https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*B645Q4K9PxYAAAAAAAAAAAAAARQnAQ" }, - { "filename": "turin.js", "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", diff --git a/gatsby-config.js b/gatsby-config.js index 6ffd3bf5d9..842ed21453 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -91,7 +91,7 @@ module.exports = { order: 4 }, { - slug: 'tutorial/examples', + slug: 'tutorial/demo', icon: 'map', title: { zh: '教程示例', @@ -263,13 +263,15 @@ module.exports = { } ], examples: [ + { slug: 'gallery', icon: 'gallery', title: { zh: '官方精品库', en: 'Featured' - } + }, + order: 0 }, { slug: 'point', @@ -277,7 +279,8 @@ module.exports = { title: { zh: '点图层', en: 'Point Layer' - } + }, + order: 1 }, { slug: 'line', @@ -285,7 +288,8 @@ module.exports = { title: { zh: '线图层', en: 'Line Layer' - } + }, + order: 2 }, { slug: 'polygon', @@ -293,7 +297,26 @@ module.exports = { title: { zh: '面图层', 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', @@ -302,7 +325,7 @@ module.exports = { zh: '热力图', en: 'HeatMap Layer' }, - order: 5 + order: 6 }, { slug: 'raster', @@ -310,7 +333,8 @@ module.exports = { title: { zh: '栅格图层', en: 'Raster Layer' - } + }, + order: 7 }, { slug: 'engine', @@ -318,7 +342,8 @@ module.exports = { title: { zh: '第三方引擎', en: 'other engine' - } + }, + order: 8 }, { slug: 'react', @@ -326,7 +351,8 @@ module.exports = { title: { zh: 'React 组件', en: 'React Demo' - } + }, + order: 9 }, { slug: 'amapPlugin', @@ -334,31 +360,18 @@ module.exports = { title: { zh: '高德地图插件', en: 'amapPlugin' - } - }, - { - slug: 'earth', - icon: 'map', - title: { - zh: '地球模式', - en: 'Earth Mode' - } - }, - { - slug: 'wind', - icon: 'raster', - title: { - zh: '风场图层', - en: 'Wind Layer' - } + }, + order: 10 }, + { slug: 'district', icon: 'map', title: { zh: '行政区划', en: 'L7 District' - } + }, + order: 11 }, { slug: 'draw', @@ -366,7 +379,8 @@ module.exports = { title: { zh: '绘制组件', en: 'L7 Draw' - } + }, + order: 12 }, { slug: 'tutorial',