Skip to content

Commit ef458d4

Browse files
committed
【fix】示例文件 es6 `` 语法;升级 mapboxgl 版本至 0.48.0 review by songym.
1 parent d4b71c1 commit ef458d4

33 files changed

+249
-50265
lines changed

dist/leaflet/iclient9-leaflet.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient9-leaflet.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mapboxgl/include-mapboxgl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
var includes = (targetScript.getAttribute('include') || "").split(",");
5151
var excludes = (targetScript.getAttribute('exclude') || "").split(",");
5252
if (!inArray(excludes, 'mapbox-gl')) {
53-
inputCSS("https://api.tiles.mapbox.com/mapbox-gl-js/v0.49.0/mapbox-gl.css");
54-
inputScript("https://api.tiles.mapbox.com/mapbox-gl-js/v0.49.0/mapbox-gl.js");
53+
inputCSS("http://iclient.supermap.io/web/libs/mapbox-gl-js/0.48.0/mapbox-gl.css");
54+
inputScript("http://iclient.supermap.io/web/libs/mapbox-gl-js/0.48.0/mapbox-gl.js");
5555
}
5656
if (inArray(includes, 'draw')) {
5757
inputCSS("http://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.0.9/mapbox-gl-draw.css");

examples/js/sidebar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ function createSideBarMenuItem(id, config, containAll) {
9292
a: for (var key in config.content) {
9393
var examples = config.content[key].content;
9494
if (examples) {
95-
for (let index = 0; index < examples.length; index++) {
96-
const element = examples[index];
95+
for (var index = 0; index < examples.length; index++) {
96+
var element = examples[index];
9797
if (element.version === window.version) {
9898
config.content[key].hasNewExamples = true;
9999
hasNewExamples = true;

examples/leaflet/echarts_linesDrawMillionsBeijingRoadsNetwork.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
if (idx > CHUNK_COUNT) {
7474
return;
7575
}
76-
var dataURL = `http://iclient.supermap.io/web/data/bigdata_beijingroads/data_${idx}.bin`;
76+
var dataURL = "http://iclient.supermap.io/web/data/bigdata_beijingroads/data_" + idx + ".bin";
7777
var xhr = new XMLHttpRequest();
7878
xhr.open('GET', dataURL, true);
7979
xhr.responseType = 'arraybuffer';

examples/leaflet/echarts_linesDrawMillionsRailwaysNetwork.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
if (idx > CHUNK_COUNT) {
7474
return;
7575
}
76-
var dataURL = `http://iclient.supermap.io/web/data/bigdata_railway_10w/data_${idx}.bin`;
76+
var dataURL = "http://iclient.supermap.io/web/data/bigdata_railway_10w/data_" + idx + ".bin";
7777
var xhr = new XMLHttpRequest();
7878
xhr.open('GET', dataURL, true);
7979
xhr.responseType = 'arraybuffer';

examples/leaflet/echarts_linesDrawMillionsRoadsNetwork_50WFeatures.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
if (idx > CHUNK_COUNT) {
7474
return;
7575
}
76-
var dataURL = `http://iclient.supermap.io/web/data/bigdata_roads_50w/data_${idx}.bin`;
76+
var dataURL = "http://iclient.supermap.io/web/data/bigdata_roads_50w/data_" + idx + ".bin";
7777
var xhr = new XMLHttpRequest();
7878
xhr.open('GET', dataURL, true);
7979
xhr.responseType = 'arraybuffer';

examples/leaflet/echarts_linesDrawMillionsWaterSystem.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
if (idx > CHUNK_COUNT) {
7474
return;
7575
}
76-
var dataURL = `http://iclient.supermap.io/web/data/bigdata_water_10w/data_${idx}.bin`;
76+
var dataURL = "http://iclient.supermap.io/web/data/bigdata_water_10w/data_" + idx + ".bin";
7777
var xhr = new XMLHttpRequest();
7878
xhr.open('GET', dataURL, true);
7979
xhr.responseType = 'arraybuffer';

examples/leaflet/echarts_scatterDrawMillionsNewYorkTaxiPoints.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@
7474
if (idx >= CHUNK_COUNT) {
7575
return;
7676
}
77-
var dataURL = `http://iclient.supermap.io/web/data/bigdata_nytaxi/data_${idx}.bin`;
78-
// var dataURL = `../mapboxgl/resultData_NY/bigData_${idx}.bin`;
77+
var dataURL = "http://iclient.supermap.io/web/data/bigdata_nytaxi/data_" + idx + ".bin";
7978
var xhr = new XMLHttpRequest();
8079
xhr.open('GET', dataURL, true);
8180
xhr.responseType = 'arraybuffer';

examples/leaflet/turf_classificationAnalysis.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,20 @@
4848
var me = this;
4949
me._div = L.DomUtil.create('div');
5050
me._div.style.width = '420px';
51-
me._div.innerHTML = `<div class='panel panel-primary editPane' id='editPane'>
52-
<div class='panel-heading'>
53-
<h5 class='panel-title text-center'>` + resources.text_classificationAnalysis + `</h5></div>
54-
<div class='panel-body content' id='classificationBody' '>
55-
<div class='panel'>
56-
<div class='input-group'>
57-
<span class='input-group-addon'>` + resources.text_classificationAnalysisType + `<span data-i18n="[title]resources.text_requiredField" style='color: red;'> * </span></span>
58-
<select class='form-control' id='classificationAnalyzeType' name='interpolationAnalyzeType'>
59-
<option value='nearestOption' selected>nearestAnalyze</option>
60-
</select>
61-
</div>
62-
</div>
63-
<div class='input-group' id="nearestBody"></div>
64-
</div>`;
51+
me._div.innerHTML = "<div class='panel panel-primary editPane' id='editPane'>"+
52+
"<div class='panel-heading'>"+
53+
"<h5 class='panel-title text-center'>" + resources.text_classificationAnalysis + "</h5></div>"+
54+
"<div class='panel-body content' id='classificationBody' >"+
55+
"<div class='panel'>"+
56+
"<div class='input-group'>"+
57+
"<span class='input-group-addon'>" + resources.text_classificationAnalysisType + "<span data-i18n='[title]resources.text_requiredField' style='color: red;'> * </span></span>"+
58+
"<select class='form-control' id='classificationAnalyzeType' name='interpolationAnalyzeType'>"+
59+
"<option value='nearestOption' selected>nearestAnalyze</option>"+
60+
"</select>"+
61+
"</div>"+
62+
"</div>"+
63+
"<div class='input-group' id='nearestBody'></div>"+
64+
"</div>";
6565
handleMapEvent(me._div, me._map);
6666
return me._div;
6767
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy