mars2d-esri 3.3.7 → 3.4.0
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/mars2d-esri.js +12 -8
- package/package.json +2 -2
package/mars2d-esri.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mars2D平台插件,ArcGIS Server功能支持插件 mars2d-esri
|
|
3
3
|
*
|
|
4
|
-
* 版本信息:v3.
|
|
5
|
-
* 编译日期:
|
|
4
|
+
* 版本信息:v3.4.0
|
|
5
|
+
* 编译日期:2026-02-14 20:14
|
|
6
6
|
* 版权所有:Copyright by 火星科技 http://mars2d.cn
|
|
7
7
|
* 使用单位:免费公开版 ,2025-01-23
|
|
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$2 = "3.0.
|
|
40
|
+
var version$2 = "3.0.19";
|
|
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"
|
|
@@ -2601,10 +2601,10 @@
|
|
|
2601
2601
|
*/
|
|
2602
2602
|
tile.alt = "";
|
|
2603
2603
|
|
|
2604
|
-
// if
|
|
2604
|
+
// if this is a map with a custom CRS or an lod map with a proper zoom load the tile
|
|
2605
2605
|
// otherwise wait for the lod map to become available
|
|
2606
2606
|
if (
|
|
2607
|
-
|
|
2607
|
+
this._lodMap === "crs" ||
|
|
2608
2608
|
(this._lodMap && this._lodMap[this._getZoomForUrl()] !== undefined)
|
|
2609
2609
|
) {
|
|
2610
2610
|
tile.src = this.getTileUrl(coords);
|
|
@@ -2674,7 +2674,11 @@
|
|
|
2674
2674
|
map.options.crs &&
|
|
2675
2675
|
map.options.crs.code &&
|
|
2676
2676
|
map.options.crs.code.indexOf(sr) > -1
|
|
2677
|
-
)
|
|
2677
|
+
) {
|
|
2678
|
+
// if the projection is WGS84, or the developer is using Proj4 to define a custom CRS, no action is required
|
|
2679
|
+
this._lodMap = "crs";
|
|
2680
|
+
this.fire("lodmap");
|
|
2681
|
+
} else {
|
|
2678
2682
|
// if the service was cached in a custom projection and an appropriate LOD hasn't been defined in the map, guide the developer to our Proj4 sample
|
|
2679
2683
|
warn(
|
|
2680
2684
|
"L.esri.TiledMapLayer is using a non-mercator spatial reference. Support may be available through Proj4Leaflet https://developers.arcgis.com/esri-leaflet/samples/non-mercator-projection/",
|
|
@@ -5328,8 +5332,8 @@
|
|
|
5328
5332
|
featureLayer: featureLayer
|
|
5329
5333
|
};
|
|
5330
5334
|
|
|
5331
|
-
const version = "3.
|
|
5332
|
-
const buildTime = "
|
|
5335
|
+
const version = "3.4.0";
|
|
5336
|
+
const buildTime = "2026-02-14 20:14";
|
|
5333
5337
|
|
|
5334
5338
|
/**
|
|
5335
5339
|
* @typedef {Object} ArcGisImageLayer.EventType
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mars2d-esri",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Mars2D平台插件,ArcGIS Server功能支持插件",
|
|
5
5
|
"main": "./mars2d-esri.js",
|
|
6
6
|
"dependencies": {},
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"mars2d": "~3.
|
|
8
|
+
"mars2d": "~3.4.0"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint ./src/**/*.{js,ts} --fix"
|