Skip to content

Commit e2ae3e1

Browse files
committed
新增openlayers线样式编辑范例
1 parent 93c4525 commit e2ae3e1

File tree

7 files changed

+469
-0
lines changed

7 files changed

+469
-0
lines changed

examples/img/colorpicker.png

2.8 KB
Loading

examples/js/include-web.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@
146146
inputScript("https://cdn.bootcss.com/i18next/10.0.7/i18next.min.js");
147147
inputScript("https://cdn.bootcss.com/jquery-i18next/1.2.1/jquery-i18next.min.js");
148148
}
149+
if (inArray(includes, 'ionRangeSlider')) {
150+
inputCSS("https://cdn.bootcss.com/ion-rangeslider/2.2.0/css/ion.rangeSlider.css");
151+
inputCSS("https://cdn.bootcss.com/normalize/8.0.0/normalize.css");
152+
inputCSS("https://cdn.bootcss.com/ion-rangeslider/2.2.0/css/ion.rangeSlider.skinHTML5.css");
153+
inputScript("https://cdn.bootcss.com/ion-rangeslider/2.2.0/js/ion.rangeSlider.min.js");
154+
}
149155
}
150156

151157
function datGuiI18N() {

examples/locales/en-US/resources.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ window.examplesResources = {
419419
"title_mvtVectorLayer4326": "iServer MVT VectorTile (WGS84)",
420420
"title_mvtVectorLayer_mapboxStyle": "Style Switch",
421421
"title_mvtVectorLayer_mapboxStyle_4326": "OSM Style(MVT WGS84)",
422+
"title_mvtVectorLayer_mapboxStyle_lineStyle": "lineStyle edit",
422423
"title_onlineSecurity": "Examples of Online SecurityManager",
423424
"title_onlineWebMap": "Be a backpacker in 2014",
424425
"title_osmBuildings": "Buildings Stereoscopic Effect of OpenLayers",
@@ -1103,6 +1104,12 @@ window.examplesResources = {
11031104
"text_esmode_streaming": "real time display",
11041105
"text_esmode_history": "historical display",
11051106
"text_esmode": "display mode",
1107+
"text_LineStyleEditor": "LineStyleEditor: California",
1108+
"text_lineBorderLayer": "layer(lineBorder):",
1109+
"text_lineFillLayer": "layer(lineFill):",
1110+
"text_lineColor_1": "line color:",
1111+
"text_lineOpacity": "line opacity:",
1112+
"text_lineWidth_1": "line width:",
11061113

11071114
"btn_overlayAnalyst": "Start analysis",
11081115
"btn_terrainCurvatureCalculation": "Start calculation",

examples/locales/zh-CN/resources.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ window.examplesResources = {
363363
"title_mvtVectorLayer4326": "iServer MVT矢量瓦片(WGS84)",
364364
"title_mvtVectorLayer_mapboxStyle": "OSM风格(MVT WGS84)",
365365
"title_mvtVectorLayer_mapboxStyle_4326": "风格动态切换",
366+
"title_mvtVectorLayer_mapboxStyle_lineStyle": "线样式编辑",
366367
"title_onlineSecurity": "Online SecurityManager使用示例",
367368
"title_onlineWebMap": "2014当了一回背包客",
368369
"title_osmBuildings": "openlayers 建筑立体效果",
@@ -1048,6 +1049,13 @@ window.examplesResources = {
10481049
"text_esmode_streaming": "实时展示",
10491050
"text_esmode_history": "历史展示",
10501051
"text_esmode": "展示模式",
1052+
"text_LineStyleEditor": "线样式编辑器:california",
1053+
"text_lineBorderLayer": "图层(线边框): ",
1054+
"text_lineFillLayer": "图层(线填充): ",
1055+
"text_lineColor_1": "线的颜色:",
1056+
"text_lineOpacity": "线的透明度:",
1057+
"text_lineWidth_1": "线的宽度:",
1058+
10511059

10521060
"btn_overlayAnalyst": "叠加分析",
10531061
"btn_terrainCurvatureCalculation": "地形曲率计算",

examples/openlayers/config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,13 @@ var exampleConfig = {
810810
localIgnore:true,
811811
thumbnail: "mvtvectorlayer_mbstyle_beijing.png",
812812
fileName: "mvtvectorlayer_mbstyle_beijing"
813+
},
814+
{
815+
name: "线样式编辑",
816+
name_en: "Line Style Edit",
817+
localIgnore:true,
818+
thumbnail: "mvtvectorlayer_mbstyle_linestyle.png",
819+
fileName: "mvtvectorlayer_mbstyle_linestyle"
813820
}
814821

815822
]
9.8 KB
Loading

0 commit comments

Comments
 (0)