@nextgis/ngw-leaflet 3.0.0-alpha.20 → 3.0.0-alpha.21
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/lib/ngw-leaflet.esm-browser.js +3 -12
- package/lib/ngw-leaflet.esm-browser.js.map +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js.map +1 -1
- package/lib/ngw-leaflet.esm-bundler.js +1 -1
- package/lib/ngw-leaflet.global.js +3 -12
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +1 -1
- package/lib/ngw-leaflet.global.prod.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 3.0.0-alpha.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 3.0.0-alpha.21; author: NextGIS */
|
|
2
2
|
import LeafletMapAdapter from '@nextgis/leaflet-map-adapter';
|
|
3
3
|
import { NgwMap } from '@nextgis/ngw-map';
|
|
4
4
|
import { Icon } from 'leaflet';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 3.0.0-alpha.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 3.0.0-alpha.21; author: NextGIS */
|
|
2
2
|
var NgwLeaflet = (function () {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -17043,13 +17043,7 @@ var NgwLeaflet = (function () {
|
|
|
17043
17043
|
constructor(url, options) {
|
|
17044
17044
|
super(options);
|
|
17045
17045
|
__publicField$D(this, "defaultWmsParams", {
|
|
17046
|
-
|
|
17047
|
-
request: "GetMap",
|
|
17048
|
-
version: "1.1.1",
|
|
17049
|
-
layers: "",
|
|
17050
|
-
styles: "",
|
|
17051
|
-
format: "image/jpeg",
|
|
17052
|
-
transparent: false
|
|
17046
|
+
request: "GetMap"
|
|
17053
17047
|
});
|
|
17054
17048
|
__publicField$D(this, "options", {
|
|
17055
17049
|
crs: null,
|
|
@@ -17214,9 +17208,7 @@ var NgwLeaflet = (function () {
|
|
|
17214
17208
|
size.x = Math.ceil(size.x * factor);
|
|
17215
17209
|
size.y = Math.ceil(size.y * factor);
|
|
17216
17210
|
}
|
|
17217
|
-
const wmsVersion = parseFloat(this.wmsParams.version);
|
|
17218
17211
|
const crs = this.options.crs || map.options.crs;
|
|
17219
|
-
const projectionKey = wmsVersion >= 1.3 ? "crs" : "srs";
|
|
17220
17212
|
if (crs) {
|
|
17221
17213
|
const nw = crs.project(bounds.getNorthWest());
|
|
17222
17214
|
const se = crs.project(bounds.getSouthEast());
|
|
@@ -17224,8 +17216,7 @@ var NgwLeaflet = (function () {
|
|
|
17224
17216
|
width: size.x,
|
|
17225
17217
|
height: size.y
|
|
17226
17218
|
};
|
|
17227
|
-
params
|
|
17228
|
-
params.bbox = (wmsVersion >= 1.3 && crs === leafletSrcExports.CRS.EPSG4326 ? [se.y, nw.x, nw.y, se.x] : [nw.x, se.y, se.x, nw.y]).join(",");
|
|
17219
|
+
params.bbox = [nw.x, se.y, se.x, nw.y];
|
|
17229
17220
|
leafletSrcExports.Util.extend(this.wmsParams, params);
|
|
17230
17221
|
}
|
|
17231
17222
|
}
|