Skip to content

Commit 318fe5d

Browse files
committed
mapbox sample
1 parent 4f63651 commit 318fe5d

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

examples/mapboxgl/config.js

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,23 @@ var exampleConfig = {
1717
}
1818

1919
}
20-
}
20+
},
21+
"viz": {
22+
name: "可视化",
23+
content: {
24+
25+
"VectorTileLayer": {
26+
name: "矢量瓦片",
27+
content: [
28+
{
29+
name: "MVT",
30+
thumbnail: "mvtVectorTile.png",
31+
fileName: "mvtVectorTile"
32+
}
33+
]
34+
}
35+
}
36+
},
2137
};
2238
/**
2339
*key值:为exampleConfig配置的key值或者fileName值
@@ -26,7 +42,8 @@ var exampleConfig = {
2642
*不分层
2743
*/
2844
var sideBarIconConfig = {
29-
"iServer": "fa-server"
45+
"iServer": "fa-server",
46+
"viz": "fa-map",
3047
};
3148

3249
/**
@@ -35,5 +52,6 @@ var sideBarIconConfig = {
3552
*与sideBarIconConfig的区别:sideBarIconConfig包括侧边栏所有层级目录的图标,exampleIconConfig仅包括一级标题的图标
3653
*/
3754
var exampleIconConfig = {
38-
"iServer": "fa-server"
55+
"iServer": "fa-server",
56+
"viz": "fa-map",
3957
};
87.3 KB
Loading

0 commit comments

Comments
 (0)