mars2d-esri 3.1.23 → 3.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mars2d-esri.js +7 -4
- package/package.json +2 -2
package/dist/mars2d-esri.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mars2D平台插件,ArcGIS Server功能支持插件 mars2d-esri
|
|
3
3
|
*
|
|
4
|
-
* 版本信息:v3.1.
|
|
5
|
-
* 编译日期:2023-
|
|
4
|
+
* 版本信息:v3.1.25
|
|
5
|
+
* 编译日期:2023-12-31 22:39:45
|
|
6
6
|
* 版权所有:Copyright by 火星科技 http://mars2d.cn
|
|
7
7
|
* 使用单位:免费公开版 ,2021-10-01
|
|
8
8
|
*/
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
var name = "esri-leaflet";
|
|
39
39
|
var description = "Leaflet plugins for consuming ArcGIS Online and ArcGIS Server services.";
|
|
40
|
-
var version$1 = "3.0.
|
|
40
|
+
var version$1 = "3.0.10";
|
|
41
41
|
var author = "Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)";
|
|
42
42
|
var bugs = {
|
|
43
43
|
url: "https://github.com/esri/esri-leaflet/issues"
|
|
@@ -858,6 +858,7 @@
|
|
|
858
858
|
return result;
|
|
859
859
|
};
|
|
860
860
|
|
|
861
|
+
var BASE_LEAFLET_ATTRIBUTION_STRING = '<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>';
|
|
861
862
|
var POWERED_BY_ESRI_ATTRIBUTION_STRING = 'Powered by <a href="https://www.esri.com">Esri</a>';
|
|
862
863
|
|
|
863
864
|
function geojsonToArcGIS (geojson, idAttr) {
|
|
@@ -1066,6 +1067,7 @@
|
|
|
1066
1067
|
map.attributionControl._esriAttributionAddedOnce = true;
|
|
1067
1068
|
}
|
|
1068
1069
|
|
|
1070
|
+
map.attributionControl.setPrefix(BASE_LEAFLET_ATTRIBUTION_STRING + ' | ' + POWERED_BY_ESRI_ATTRIBUTION_STRING);
|
|
1069
1071
|
L.DomUtil.addClass(map.attributionControl._container, 'esri-truncated-attribution:hover');
|
|
1070
1072
|
L.DomUtil.addClass(map.attributionControl._container, 'esri-truncated-attribution');
|
|
1071
1073
|
}
|
|
@@ -1081,6 +1083,7 @@
|
|
|
1081
1083
|
|
|
1082
1084
|
// Only remove the attribution if we're about to remove the LAST esri-leaflet layer (_esriAttributionLayerCount)
|
|
1083
1085
|
if (map.attributionControl._esriAttributionLayerCount && map.attributionControl._esriAttributionLayerCount === 1) {
|
|
1086
|
+
map.attributionControl.setPrefix(BASE_LEAFLET_ATTRIBUTION_STRING);
|
|
1084
1087
|
L.DomUtil.removeClass(map.attributionControl._container, 'esri-truncated-attribution:hover');
|
|
1085
1088
|
L.DomUtil.removeClass(map.attributionControl._container, 'esri-truncated-attribution');
|
|
1086
1089
|
}
|
|
@@ -1203,7 +1206,7 @@
|
|
|
1203
1206
|
}
|
|
1204
1207
|
}
|
|
1205
1208
|
|
|
1206
|
-
newAttributions =
|
|
1209
|
+
newAttributions = newAttributions.substr(2);
|
|
1207
1210
|
attributionElement.innerHTML = newAttributions;
|
|
1208
1211
|
attributionElement.style.maxWidth = calcAttributionWidth(map);
|
|
1209
1212
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mars2d-esri",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.25",
|
|
4
4
|
"description": "Mars2D平台插件,ArcGIS Server功能支持插件",
|
|
5
5
|
"main": "dist/mars2d-esri.js",
|
|
6
6
|
"files": [
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"mars2d": "~3.1.
|
|
11
|
+
"mars2d": "~3.1.25"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"lint": "eslint ./src/**/*.{js,ts} --fix"
|