@nextgis/ngw-leaflet 2.5.3 → 2.5.4
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: 2.5.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 2.5.4; author: NextGIS */
|
|
2
2
|
import 'leaflet/dist/leaflet.css';
|
|
3
3
|
import LeafletMapAdapter from '@nextgis/leaflet-map-adapter';
|
|
4
4
|
import { NgwMap } from '@nextgis/ngw-map';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 2.5.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 2.5.4; author: NextGIS */
|
|
2
2
|
var NgwLeaflet = (function () {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -17060,13 +17060,7 @@ var NgwLeaflet = (function () {
|
|
|
17060
17060
|
constructor(url, options) {
|
|
17061
17061
|
super(options);
|
|
17062
17062
|
__publicField$C(this, "defaultWmsParams", {
|
|
17063
|
-
|
|
17064
|
-
request: "GetMap",
|
|
17065
|
-
version: "1.1.1",
|
|
17066
|
-
layers: "",
|
|
17067
|
-
styles: "",
|
|
17068
|
-
format: "image/jpeg",
|
|
17069
|
-
transparent: false
|
|
17063
|
+
request: "GetMap"
|
|
17070
17064
|
});
|
|
17071
17065
|
__publicField$C(this, "options", {
|
|
17072
17066
|
crs: null,
|
|
@@ -17223,9 +17217,7 @@ var NgwLeaflet = (function () {
|
|
|
17223
17217
|
size.x = Math.ceil(size.x * factor);
|
|
17224
17218
|
size.y = Math.ceil(size.y * factor);
|
|
17225
17219
|
}
|
|
17226
|
-
const wmsVersion = parseFloat(this.wmsParams.version);
|
|
17227
17220
|
const crs = this.options.crs || map.options.crs;
|
|
17228
|
-
const projectionKey = wmsVersion >= 1.3 ? "crs" : "srs";
|
|
17229
17221
|
if (crs) {
|
|
17230
17222
|
const nw = crs.project(bounds.getNorthWest());
|
|
17231
17223
|
const se = crs.project(bounds.getSouthEast());
|
|
@@ -17233,8 +17225,7 @@ var NgwLeaflet = (function () {
|
|
|
17233
17225
|
width: size.x,
|
|
17234
17226
|
height: size.y
|
|
17235
17227
|
};
|
|
17236
|
-
params
|
|
17237
|
-
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(",");
|
|
17228
|
+
params.bbox = [nw.x, se.y, se.x, nw.y];
|
|
17238
17229
|
leafletSrcExports.Util.extend(this.wmsParams, params);
|
|
17239
17230
|
}
|
|
17240
17231
|
}
|