@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.
Files changed (37) hide show
  1. package/README.md +11 -39
  2. package/dist/es5/webclient-common.min.js +15 -4
  3. package/dist/es5/webclient-leaflet-plugin.min.js +6 -6
  4. package/dist/webclient-leaflet-plugin-es6.min.js +8 -8
  5. package/documention/ArcGISMapImageLayer.html +820 -0
  6. package/documention/ArcGISTileLayer.html +498 -0
  7. package/documention/EchartsLayer.html +261 -0
  8. package/documention/FeatureLayer.html +212 -0
  9. package/documention/FeatureLayerUtil.html +288 -0
  10. package/documention/IGSMapImageLayer.html +948 -0
  11. package/documention/IGSTileLayer.html +562 -0
  12. package/documention/MapLayer.html +330 -0
  13. package/documention/MapVLayer.html +320 -0
  14. package/documention/MapViewLeaflet.html +7 -7
  15. package/documention/Popup.html +4 -2
  16. package/documention/Screenshot.html +5 -143
  17. package/documention/SketchEditorLeaflet.html +106 -47
  18. package/documention/TileLayer.html +279 -0
  19. package/documention/TileLayerWMS.html +222 -0
  20. package/documention/VectorTileLayer.html +529 -0
  21. package/documention/WMSLayerView.html +689 -0
  22. package/documention/WebMapServiceLayer.html +723 -0
  23. package/documention/WebMapTileServiceLayer.html +754 -0
  24. package/documention/WebTileLayer.html +663 -0
  25. package/documention/Zondy.ThemeLayer.GeoFeatureThemeLayer.html +22 -22
  26. package/documention/Zondy.ThemeLayer.GraphThemeLayer.html +30 -30
  27. package/documention/Zondy.ThemeLayer.RandomThemeLayer.html +34 -34
  28. package/documention/Zondy.ThemeLayer.ThemeLayer.html +3 -3
  29. package/documention/Zondy.ThemeLayer.rangeThemeLayer.html +34 -34
  30. package/documention/Zondy.ThemeLayer.rankSymbolThemeLayer.html +47 -47
  31. package/documention/Zondy.ThemeLayer.simpleThemeLayer.html +33 -33
  32. package/documention/Zondy.ThemeLayer.uniqueThemeLayer.html +30 -30
  33. package/documention/Zondy.Widget.html +5 -5
  34. package/documention/global.html +454 -0
  35. package/documention/index.html +6 -6
  36. package/documention/scripts/sideBar.js +16 -2
  37. 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('/index.html')[0]
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
- fetch(_baseUrl + e.target.attributes[1].value, {
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.0.7",
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.0.0",
17
- "@mapgis/webclient-graphic-render": "^17.0.0",
18
- "@mapgis/leaflet-easyprint": "^17.0.0",
19
- "@mapgis/mapbox-gl": "^17.0.0",
20
- "@mapgis/webclient-common": "^17.0.0",
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"