diff --git a/examples/cesiumEx/config.js b/examples/cesiumEx/config.js
index b6d82c98..5f8e8558 100644
--- a/examples/cesiumEx/config.js
+++ b/examples/cesiumEx/config.js
@@ -1,4 +1,6 @@
/* by jiawanlong*/
+
+
var identification = {
name: "Leaflet"
};
@@ -1055,7 +1057,7 @@ var exampleConfig = {
thumbnail: "8.1.5、等值面.jpg",
fileName: "8.1.5、等值面"
},
-
+
]
},
"map11cddd3233231": {
diff --git a/examples/cesiumGf/config.js b/examples/cesiumGf/config.js
new file mode 100644
index 00000000..b6089a16
--- /dev/null
+++ b/examples/cesiumGf/config.js
@@ -0,0 +1,77 @@
+/* by jiawanlong*/
+var identification = {
+ name: "Leaflet"
+};
+
+
+var exampleConfig = {
+ "base": {
+ name: "base",
+ name_en: "base",
+ content: {
+ "map": {
+ name: "base",
+ name_en: "base",
+ content: [
+ // {
+ // name: "1.1、默认设置",
+ // thumbnail: "1.1、默认设置.png",
+ // fileName: "1.1、默认设置"
+ // },
+ ]
+ },
+ }
+ },
+
+};
+gallery_demos.forEach(element => {
+ exampleConfig.base.content.map.content.push({
+ name: element.name,
+ fileName: 'https://sandcastle.cesium.com/gallery/' + element.name + '.html',
+ thumbnail: 'https://sandcastle.cesium.com/gallery/' + element.img + '',
+ })
+});
+
+/**
+ *key值:为exampleConfig配置的key值或者fileName值
+ * (为中间节点时是key值,叶结点是fileName值)
+ *value值:fontawesome字体icon名
+ *不分层
+ */
+var sideBarIconConfig = {
+ "base": "fa-server",
+ "iPortal": "fa-desktop",
+ "Online": "fa-cloud",
+ "iManager": "fa-group",
+ "Elasticsearch": "fa-tasks",
+ "plot": "fa-edit",
+ "dynamicPlot": "fa-pencil",
+ "control": "fa-sliders",
+ "components": "fa-window-restore",
+ "clientSpatialAnalyst": "fa-object-group",
+ "viz": "fa-map",
+ "OGC": "fa-globe",
+ "mapping": "fa-send"
+};
+
+/**
+ *key值:为exampleConfig配置的key值
+ *value值:fontawesome字体icon名
+ *与sideBarIconConfig的区别:sideBarIconConfig包括侧边栏所有层级目录的图标,exampleIconConfig仅包括一级标题的图标
+ */
+var exampleIconConfig = {
+ "base": "fa-server",
+ "iPortal": "fa-desktop",
+ "Online": "fa-cloud",
+ "iManager": "fa-group",
+ "Elasticsearch": "fa-tasks",
+ "plot": "fa-edit",
+ "dynamicPlot": "fa-pencil",
+ "control": "fa-sliders",
+ "components": "fa-window-restore",
+ "clientSpatialAnalyst": "fa-object-group",
+ "viz": "fa-map",
+ "OGC": "fa-globe",
+ "mapping": "fa-send"
+};
+window.leafletExampleConfig = exampleConfig;
diff --git a/examples/cesiumGf/editor.html b/examples/cesiumGf/editor.html
new file mode 100644
index 00000000..aeb2aeba
--- /dev/null
+++ b/examples/cesiumGf/editor.html
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/examples/cesiumGf/examples.html b/examples/cesiumGf/examples.html
new file mode 100644
index 00000000..b1f7c8f7
--- /dev/null
+++ b/examples/cesiumGf/examples.html
@@ -0,0 +1,491 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/examples/js/editor.js b/examples/js/editor.js
index 3ed6a618..89ce7c79 100644
--- a/examples/js/editor.js
+++ b/examples/js/editor.js
@@ -89,12 +89,18 @@ function loadExampleHtml() {
if (!locationParam) {
return;
}
- var href = window.location.toString();
- var mapUrl = href.substr(0, href.lastIndexOf('/') + 1);
- mapUrl = mapUrl + locationParam + ".html";
- if (!mapUrl) {
- return;
+ var mapUrl;
+ if (locationParam.indexOf('http') > -1) {
+ mapUrl = locationParam
+ }else{
+ var href = window.location.toString();
+ mapUrl = href.substr(0, href.lastIndexOf('/') + 1);
+ mapUrl = mapUrl + locationParam + ".html";
+ if (!mapUrl) {
+ return;
+ }
}
+ // console.log(mapUrl);
var isError = false;
var response = $.ajax({
url: mapUrl,
diff --git a/examples/js/example.js b/examples/js/example.js
index 213b36d8..9aeb331f 100644
--- a/examples/js/example.js
+++ b/examples/js/example.js
@@ -111,8 +111,14 @@ function createGalleryChart(example) {
var target = "editor.html",
defaultThumb = "../img/thumb.png",
title = utils.getLocalPairs(example, "name"),
- href = example.fileName ? example.fileName : "",
- thumbnail = example.thumbnail ? thumbLocation + "/img/" + example.thumbnail : "",
+ href = example.fileName ? example.fileName : "";
+ let thumbnail;
+ if ( example.thumbnail .indexOf('http') > -1) {
+ thumbnail = example.thumbnail
+ }else{
+ thumbnail = example.thumbnail ? thumbLocation + "/img/" + example.thumbnail : "";
+ }
+ // thumbnail = example.thumbnail ? thumbLocation + "/img/" + example.thumbnail : "";
version = example.version;
var chartDiv = $("");
@@ -124,7 +130,7 @@ function createGalleryChart(example) {
}
var chartTitle = $("" + title + "
");
- var newTip = $('');
+ var newTip = $('');
var thumb = $("
");
chartTitle.appendTo(link);
diff --git a/examples/js/sidebar.js b/examples/js/sidebar.js
index 28e20d9e..50f6ba3f 100644
--- a/examples/js/sidebar.js
+++ b/examples/js/sidebar.js
@@ -161,7 +161,6 @@ function createSideBarMenuTitle(id, title, collapse, hasNewExamples) {
var titleBar = $("");
var newIcon = "";
if (hasNewExamples) {
- newIcon = "