Skip to content

Commit a3803f9

Browse files
committed
Merge branch 'master' of https://github.com/SuperMap/iClient-JavaScript into master
2 parents 6f2c304 + da6d6be commit a3803f9

File tree

341 files changed

+2036
-1425
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

341 files changed

+2036
-1425
lines changed

build/jsdocs/template/static/styles/jaguar.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ a:hover, a:active, a:focus{
223223
.main h4.name span.type-signature {
224224
display: inline-block;
225225
border-radius: 3px;
226-
background-color: gray;
227-
color: #fff;
226+
background-color: #c4bdbd;
227+
color: #605e5e;
228228
font-size: 0.7em;
229229
padding: 2px 4px;
230230
}
@@ -369,9 +369,9 @@ a:hover, a:active, a:focus{
369369
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
370370
}
371371

372-
.main .nameContainer h4 .type-signature.type a {
372+
/* .main .nameContainer h4 .type-signature.type a {
373373
color: #fff;
374-
}
374+
} */
375375

376376
.main pre {
377377
font-size: 11px;

dist/leaflet/include-leaflet.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
inputScript(libsurl + '/leaflet/1.9.4/leaflet.js');
6161
}
6262
if (inArray(includes, 'mapbox-gl-enhance')) {
63-
inputCSS(libsurl + '/mapbox-gl-js-enhance/1.12.0-1/mapbox-gl-enhance.css');
64-
inputScript(libsurl + '/mapbox-gl-js-enhance/1.12.0-1/mapbox-gl-enhance.js');
63+
inputCSS(libsurl + '/mapbox-gl-js-enhance/1.12.1-3/mapbox-gl-enhance.css');
64+
inputScript(libsurl + '/mapbox-gl-js-enhance/1.12.1-3/mapbox-gl-enhance.js');
6565
}
6666
if (inArray(includes, 'leaflet.heat')) {
6767
inputScript(libsurl + '/leaflet/plugins/leaflet.heat/leaflet-heat.js');
@@ -149,9 +149,9 @@
149149
if (inArray(includes, 'iclient-plot-leaflet')) {
150150
inputCSS(libsurl + '/plotting/leaflet/11.1.0/iclient-plot-leaflet.css');
151151
if (supportES6()) {
152-
inputScript(libsurl + '/plotting/leaflet/11.1.0/iclient-plot-leaflet-es6.min.js');
152+
inputScript(libsurl + '/plotting/leaflet/11.1.1/iclient-plot-leaflet-es6.min.js');
153153
} else {
154-
inputScript(libsurl + '/plotting/leaflet/11.1.0/iclient-plot-leaflet.min.js');
154+
inputScript(libsurl + '/plotting/leaflet/11.1.1/iclient-plot-leaflet.min.js');
155155
}
156156
}
157157
if (inArray(includes, 'ant-design-vue')) {

dist/mapboxgl/include-mapboxgl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
inputScript(libsurl + '/mapbox-gl-js/1.13.2/mapbox-gl.js');
6060
}
6161
if (inArray(includes, 'mapbox-gl-enhance')) {
62-
inputCSS(libsurl + '/mapbox-gl-js-enhance/1.12.1/mapbox-gl-enhance.css');
63-
inputScript(libsurl + '/mapbox-gl-js-enhance/1.12.1/mapbox-gl-enhance.js');
62+
inputCSS(libsurl + '/mapbox-gl-js-enhance/1.12.1-3/mapbox-gl-enhance.css');
63+
inputScript(libsurl + '/mapbox-gl-js-enhance/1.12.1-3/mapbox-gl-enhance.js');
6464
}
6565
if (inArray(includes, 'g6')) {
6666
inputScript(libsurl + '/antv/g6/4.3.2/g6.min.js');

examples/js/editor.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/* Copyright© 2000 - 2023 SuperMap Software Co.Ltd. All rights reserved.*/
2-
var exampleNameList = [];
3-
42
$(document).ready(function () {
53
window.initI18N(function(){
6-
generateExampleNameList();
74
initPage();
85
bindEvents();
96
sidebarScrollFix();
@@ -18,16 +15,6 @@ function initPage() {
1815
screenResize();
1916
}
2017

21-
function generateExampleNameList() {
22-
var config = window.exampleConfig;
23-
Object.keys(config).forEach((menuItem) => {
24-
config[menuItem].content && Object.keys(config[menuItem].content).forEach((secondMenuItem) => {
25-
config[menuItem].content[secondMenuItem].content && config[menuItem].content[secondMenuItem].content.forEach((exampleInfo) => {
26-
exampleNameList.push(exampleInfo.fileName);
27-
});
28-
});
29-
});
30-
}
3118

3219

3320
//获取示例页面的配置信息
@@ -102,10 +89,6 @@ function loadExampleHtml() {
10289
if (!locationParam) {
10390
return;
10491
}
105-
if (exampleNameList.indexOf(locationParam) === -1) {
106-
window.location.href = window.location.origin + '/web/404.html';
107-
return;
108-
}
10992
var href = window.location.toString();
11093
var mapUrl = href.substr(0, href.lastIndexOf('/') + 1);
11194
mapUrl = mapUrl + locationParam + ".html";

examples/leaflet/01_layerService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
result.subLayers.layers.map(function (layer) {
3434
innerHTML += layer.name + "<br>";
3535
});
36-
infowin = L.popup({maxWidth: 400})
36+
infowin = L.popup({maxWidth: 400, closeOnClick:false})
3737
.setLatLng(map.getCenter())
3838
.setContent(innerHTML)
3939
.openOn(map);

examples/leaflet/01_mapQueryByDistance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
});
2525
new L.supermap.TiledMapLayer(url).addTo(map);
2626
circleMarker = L.circleMarker([30, 104], {color: 'red'}).addTo(map);
27-
circleMarker.bindPopup('distance = 10').openPopup();
27+
circleMarker.bindPopup('distance = 10',{closeOnClick:false}).openPopup();
2828
query();
2929

3030
function query() {

examples/leaflet/01_mapQueryBySQL_FGB.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
});
3535
new L.supermap
3636
.QueryService(url)
37-
.queryBySQL(param, null, 'FGB').then(function (serviceResult) {
37+
.queryBySQL(param, 'FGB').then(function (serviceResult) {
3838
new L.supermap.FGBLayer(serviceResult.result.newResourceLocation, {
3939
strategy: 'all'
4040
}).addTo(map);

examples/leaflet/01_mapService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
innerHTML += resources.text_mapName+":" + JSON.stringify(result.name, null, 2) + "<br>";
3232
innerHTML += resources.text_center+":" + JSON.stringify(result.center, null, 2) + "<br>";
3333
innerHTML += "Bounds:" + JSON.stringify(result.bounds, null, 2) + "<br>";
34-
infoWin = L.popup({maxWidth: 400})
34+
infoWin = L.popup({maxWidth: 400, closeOnClick:false})
3535
.setLatLng(map.getCenter())
3636
.setContent(innerHTML)
3737
.openOn(map);

examples/leaflet/01_measure_area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
.MeasureService(url)
3535
.measureArea(areaMeasureParam).then(function (serviceResult) {
3636
var content = resources.text_area + serviceResult.result.area + resources.msg_sqm;
37-
polygon.bindPopup(content).openPopup(polygon.getCenter());
37+
polygon.bindPopup(content, {closeOnClick:false}).openPopup(polygon.getCenter());
3838
});
3939
}
4040
</script>

examples/leaflet/02_datasetService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_DatasourceInfo"><
103103
innerHTML += "isFileCache:" + JSON.stringify(serviceResult.result.datasetInfo.isFileCache, null, 2) + "<br>";
104104
innerHTML += "name:" + JSON.stringify(serviceResult.result.datasetInfo.name, null, 2) + "<br>";
105105
innerHTML += "prjCoordSys:" + "(...)" + "<br>";
106-
infoWin = L.popup({maxWidth: 420})
106+
infoWin = L.popup({maxWidth: 420, closeOnClick:false})
107107
.setLatLng(map.getCenter())
108108
.setContent(innerHTML)
109109
.openOn(map);

0 commit comments

Comments
 (0)