Skip to content

Commit e528b22

Browse files
committed
天地图注记图层不现实的bug
1 parent 8127691 commit e528b22

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

dist/iclient9-leaflet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19394,7 +19394,7 @@ var TiandituTileLayer = exports.TiandituTileLayer = _TileLayer.WMTSLayer.extend(
1939419394
initialize: function initialize(options) {
1939519395
options = options || {};
1939619396
_leaflet2["default"].setOptions(this, options);
19397-
this.options.layer = this.options.isLabel ? this.layerLabelMap[options.layerType] : this.options.layerType;
19397+
this.options.layer = this.options.isLabel ? this.layerLabelMap[this.options.layerType] : this.options.layerType;
1939819398
this.options.maxZoom = this.layerZoomMap[this.options.layerType];
1939919399
_TileLayer.WMTSLayer.prototype.initialize.call(this, this.options.url, this.options);
1940019400
_leaflet2["default"].stamp(this);

dist/iclient9-leaflet.min.js

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/include-leaflet.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@
3636
var includes = (targetScript.getAttribute('include') || "").split(",");
3737
var excludes = (targetScript.getAttribute('exclude') || "").split(",");
3838
if (!inArray(excludes, 'leaflet')) {
39-
inputCSS("http://cdn.bootcss.com/leaflet/1.2.0/leaflet.css");
40-
inputScript("http://cdn.bootcss.com/leaflet/1.2.0/leaflet-src.js");
39+
inputCSS("../../web/libs/leaflet/leaflet.css");
40+
inputScript("../../web/libs/leaflet/leaflet.js");
4141
}
4242
if (inArray(includes, 'mapv')) {
43-
inputScript("http://mapv.baidu.com/build/mapv.min.js");
43+
inputScript("../../web/libs/mapv/mapv.min.js");
4444
}
4545
if (inArray(includes, 'turf')) {
46-
inputScript("https://cdn.bootcss.com/Turf.js/4.6.1/turf.min.js");
46+
inputScript("../../web/libs/turf/turf.min.js");
4747
}
4848
if (inArray(includes, 'echarts')) {
49-
inputScript("http://cdn.bootcss.com/echarts/3.6.2/echarts.min.js");
49+
inputScript("../../web/libs/echarts/echarts.min.js");
5050
}
5151
if (inArray(includes, 'd3')) {
52-
inputScript("https://cdn.bootcss.com/d3/4.10.2/d3.min.js");
52+
inputScript("../../web/libs/d3/d3.min.js");
5353
}
5454
if (inArray(includes, 'd3-hexbin')) {
55-
inputScript("https://d3js.org/d3-hexbin.v0.2.min.js");
55+
inputScript("../../web/libs/d3/d3-hexbin.v0.2.min.js");
5656
}
5757
if (inArray(includes, 'd3Layer')) {
58-
inputScript("http://iclient.supermap.io/libs/leaflet/plugins/leaflet.d3Layer/leaflet-d3Layer.min.js");
58+
inputScript("../../web/libs/leaflet/plugins/leaflet.d3Layer/leaflet-d3Layer.min.js");
5959
}
6060
if (inArray(includes, 'elasticsearch')) {
61-
inputScript("http://cdn.bootcss.com/elasticsearch/13.0.1/elasticsearch.min.js");
61+
inputScript("../../web/libs/elasticsearch/elasticsearch.min.js");
6262
}
6363
if (!inArray(excludes, 'iclient9-leaflet')) {
6464
inputScript("../../dist/iclient9-leaflet.js");
@@ -67,31 +67,31 @@
6767
inputCSS("../../dist/iclient9-leaflet.min.css");
6868
}
6969
if (inArray(includes, 'leaflet.heat')) {
70-
inputScript("http://cdn.bootcss.com/leaflet.heat/0.2.0/leaflet-heat.js");
70+
inputScript("../../web/libs/leaflet/plugins/leaflet.heat/leaflet-heat.js");
7171
}
7272
if (inArray(includes, 'osmbuildings')) {
73-
inputScript("http://iclient.supermap.io/libs/osmbuildings/OSMBuildings-Leaflet.js");
73+
inputScript("../../web/libs/osmbuildings/OSMBuildings-Leaflet.js");
7474
}
7575
if (inArray(includes, 'leaflet.markercluster')) {
76-
inputCSS("http://cdn.bootcss.com/leaflet.markercluster/1.0.3/MarkerCluster.Default.css");
77-
inputCSS("http://cdn.bootcss.com/leaflet.markercluster/1.0.3/MarkerCluster.css");
78-
inputScript("http://cdn.bootcss.com/leaflet.markercluster/1.0.3/leaflet.markercluster.js");
76+
inputCSS("../../web/libs/leaflet/plugins/leaflet.markercluster/MarkerCluster.Default.css");
77+
inputCSS("../../web/libs/leaflet/plugins/leaflet.markercluster/MarkerCluster.css");
78+
inputScript("../../web/libs/leaflet/plugins/leaflet.markercluster/leaflet.markercluster.js");
7979
}
8080
if (inArray(includes, 'leaflet-icon-pulse')) {
81-
inputCSS("http://iclient.supermap.io/libs/leaflet/plugins/leaflet-icon-pulse/L.Icon.Pulse.css");
82-
inputScript("http://iclient.supermap.io/libs/leaflet/plugins/leaflet-icon-pulse/L.Icon.Pulse.js");
81+
inputCSS("../../web/libs/leaflet/plugins/leaflet-icon-pulse/L.Icon.Pulse.css");
82+
inputScript("../../web/libs/leaflet/plugins/leaflet-icon-pulse/L.Icon.Pulse.js");
8383
}
8484
if (inArray(includes, 'leaflet.draw')) {
85-
inputCSS("http://cdn.bootcss.com/leaflet.draw/0.4.12/leaflet.draw.css");
86-
inputScript("http://cdn.bootcss.com/leaflet.draw/0.4.12/leaflet.draw.js");
85+
inputCSS("../../web/libs/leaflet/plugins/leaflet.draw/leaflet.draw.css");
86+
inputScript("../../web/libs/leaflet/plugins/leaflet.draw/leaflet.draw.js");
8787
}
8888
if (inArray(includes, 'leaflet.pm')) {
89-
inputCSS("http://cdn.bootcss.com/leaflet.pm/0.16.0/leaflet.pm.min.css");
90-
inputScript("http://cdn.bootcss.com/leaflet.pm/0.16.0/leaflet.pm.min.js");
89+
inputCSS("../../web/libs/leaflet/plugins/leaflet.pm/leaflet.pm.min.css");
90+
inputScript("../../web/libs/leaflet/plugins/leaflet.pm/leaflet.pm.min.js");
9191
}
9292
}
9393

9494
load();
95-
window.isLocal = false;
95+
window.isLocal = true;
9696
window.server = "http://localhost:8090";
9797
})();

src/leaflet/mapping/TiandituTileLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export var TiandituTileLayer = WMTSLayer.extend({
4242
initialize: function (options) {
4343
options = options || {};
4444
L.setOptions(this, options);
45-
this.options.layer = this.options.isLabel ? this.layerLabelMap[options.layerType] : this.options.layerType;
45+
this.options.layer = this.options.isLabel ? this.layerLabelMap[this.options.layerType] : this.options.layerType;
4646
this.options.maxZoom = this.layerZoomMap[this.options.layerType];
4747
WMTSLayer.prototype.initialize.call(this, this.options.url, this.options);
4848
L.stamp(this);

0 commit comments

Comments
 (0)