@mapgis/webclient-leaflet-plugin 17.0.7 → 17.2.1
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/README.md +11 -39
- package/dist/es5/webclient-common.min.js +15 -4
- package/dist/es5/webclient-leaflet-plugin.min.js +6 -6
- package/dist/webclient-leaflet-plugin-es6.min.js +8 -8
- package/documention/ArcGISMapImageLayer.html +820 -0
- package/documention/ArcGISTileLayer.html +498 -0
- package/documention/EchartsLayer.html +261 -0
- package/documention/FeatureLayer.html +212 -0
- package/documention/FeatureLayerUtil.html +288 -0
- package/documention/IGSMapImageLayer.html +948 -0
- package/documention/IGSTileLayer.html +562 -0
- package/documention/MapLayer.html +330 -0
- package/documention/MapVLayer.html +320 -0
- package/documention/MapViewLeaflet.html +7 -7
- package/documention/Popup.html +4 -2
- package/documention/Screenshot.html +5 -143
- package/documention/SketchEditorLeaflet.html +106 -47
- package/documention/TileLayer.html +279 -0
- package/documention/TileLayerWMS.html +222 -0
- package/documention/VectorTileLayer.html +529 -0
- package/documention/WMSLayerView.html +689 -0
- package/documention/WebMapServiceLayer.html +723 -0
- package/documention/WebMapTileServiceLayer.html +754 -0
- package/documention/WebTileLayer.html +663 -0
- package/documention/Zondy.ThemeLayer.GeoFeatureThemeLayer.html +22 -22
- package/documention/Zondy.ThemeLayer.GraphThemeLayer.html +30 -30
- package/documention/Zondy.ThemeLayer.RandomThemeLayer.html +34 -34
- package/documention/Zondy.ThemeLayer.ThemeLayer.html +3 -3
- package/documention/Zondy.ThemeLayer.rangeThemeLayer.html +34 -34
- package/documention/Zondy.ThemeLayer.rankSymbolThemeLayer.html +47 -47
- package/documention/Zondy.ThemeLayer.simpleThemeLayer.html +33 -33
- package/documention/Zondy.ThemeLayer.uniqueThemeLayer.html +30 -30
- package/documention/Zondy.Widget.html +5 -5
- package/documention/global.html +454 -0
- package/documention/index.html +6 -6
- package/documention/scripts/sideBar.js +16 -2
- package/package.json +6 -6
|
@@ -61,7 +61,7 @@ function getTypeHTML(e) {
|
|
|
61
61
|
break
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
const _baseUrl = window.location.href.split('
|
|
64
|
+
const _baseUrl = window.location.href.split('#')[0]
|
|
65
65
|
fetch(_baseUrl + '/' + link, {
|
|
66
66
|
method: 'GET',
|
|
67
67
|
})
|
|
@@ -111,7 +111,21 @@ function getLinkName(url) {
|
|
|
111
111
|
targets.forEach(function (_target) {
|
|
112
112
|
_target.addEventListener('click', function (e) {
|
|
113
113
|
const _baseUrl = getBaseUrl(window.location.href)
|
|
114
|
-
|
|
114
|
+
let isGlobe = false, globePath
|
|
115
|
+
for (let i = 0; i < e.target.attributes.length; i++) {
|
|
116
|
+
if(e.target.attributes[i].name.indexOf('global.html') > -1) {
|
|
117
|
+
isGlobe = true
|
|
118
|
+
globePath = e.target.attributes[i].name
|
|
119
|
+
break
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
let path
|
|
123
|
+
if (isGlobe) {
|
|
124
|
+
path = '/' + globePath
|
|
125
|
+
} else {
|
|
126
|
+
path = e.target.attributes[1].value
|
|
127
|
+
}
|
|
128
|
+
fetch(_baseUrl + path, {
|
|
115
129
|
method: 'GET',
|
|
116
130
|
})
|
|
117
131
|
.then(response => response.text())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapgis/webclient-leaflet-plugin",
|
|
3
|
-
"version" : "17.
|
|
3
|
+
"version" : "17.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/webclient-leaflet-plugin-es6.min.js",
|
|
6
6
|
"scripts": {},
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"author": "Wuhan Zondy Cyber Science&Technology Co.Ltd.",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@mapgis/leaflet": "^17.
|
|
17
|
-
"@mapgis/webclient-graphic-render": "^17.
|
|
18
|
-
"@mapgis/leaflet-easyprint": "^17.
|
|
19
|
-
"@mapgis/mapbox-gl": "^17.
|
|
20
|
-
"@mapgis/webclient-common": "^17.
|
|
16
|
+
"@mapgis/leaflet": "^17.1.0",
|
|
17
|
+
"@mapgis/webclient-graphic-render": "^17.2.0",
|
|
18
|
+
"@mapgis/leaflet-easyprint": "^17.2.0",
|
|
19
|
+
"@mapgis/mapbox-gl": "^17.2.0",
|
|
20
|
+
"@mapgis/webclient-common": "^17.2.0",
|
|
21
21
|
"dom-to-image": "^2.5.2",
|
|
22
22
|
"file-saver": "^1.3.3",
|
|
23
23
|
"svg-pathdata": "^6.0.0"
|