@nextgis/leaflet-map-adapter 2.5.0 → 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/leaflet-map-adapter.esm-browser.js +3 -12
- package/lib/leaflet-map-adapter.esm-browser.js.map +1 -1
- package/lib/leaflet-map-adapter.esm-browser.prod.js +1 -1
- package/lib/leaflet-map-adapter.esm-browser.prod.js.map +1 -1
- package/lib/leaflet-map-adapter.esm-bundler.js +4 -13
- package/lib/leaflet-map-adapter.esm-bundler.js.map +1 -1
- package/lib/leaflet-map-adapter.esm-bundler.prod.js +1 -1
- package/lib/leaflet-map-adapter.esm-bundler.prod.js.map +1 -1
- package/lib/leaflet-map-adapter.global.js +3 -12
- package/lib/leaflet-map-adapter.global.js.map +1 -1
- package/lib/leaflet-map-adapter.global.prod.js +1 -1
- package/lib/leaflet-map-adapter.global.prod.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** Bundle of @nextgis/leaflet-map-adapter; version: 2.5.
|
|
1
|
+
/** Bundle of @nextgis/leaflet-map-adapter; version: 2.5.4; author: NextGIS */
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
import { Control, DomEvent, GeoJSON, DivIcon, Marker, CircleMarker, FeatureGroup, ImageOverlay as ImageOverlay$1, Layer, Util,
|
|
3
|
+
import { Control, DomEvent, GeoJSON, DivIcon, Marker, CircleMarker, FeatureGroup, ImageOverlay as ImageOverlay$1, Layer, Util, GridLayer, DomUtil, TileLayer as TileLayer$1, Map, latLngBounds, latLng } from 'leaflet';
|
|
4
4
|
import { defined, debounce as debounce$1 } from '@nextgis/utils';
|
|
5
5
|
import { isPaintCallback, isPaint } from '@nextgis/paint';
|
|
6
6
|
import Queue from '@nextgis/queue';
|
|
@@ -1164,13 +1164,7 @@ class ImageLayer extends Layer {
|
|
|
1164
1164
|
constructor(url, options) {
|
|
1165
1165
|
super(options);
|
|
1166
1166
|
__publicField$2(this, "defaultWmsParams", {
|
|
1167
|
-
|
|
1168
|
-
request: "GetMap",
|
|
1169
|
-
version: "1.1.1",
|
|
1170
|
-
layers: "",
|
|
1171
|
-
styles: "",
|
|
1172
|
-
format: "image/jpeg",
|
|
1173
|
-
transparent: false
|
|
1167
|
+
request: "GetMap"
|
|
1174
1168
|
});
|
|
1175
1169
|
__publicField$2(this, "options", {
|
|
1176
1170
|
crs: null,
|
|
@@ -1327,9 +1321,7 @@ class ImageLayer extends Layer {
|
|
|
1327
1321
|
size.x = Math.ceil(size.x * factor);
|
|
1328
1322
|
size.y = Math.ceil(size.y * factor);
|
|
1329
1323
|
}
|
|
1330
|
-
const wmsVersion = parseFloat(this.wmsParams.version);
|
|
1331
1324
|
const crs = this.options.crs || map.options.crs;
|
|
1332
|
-
const projectionKey = wmsVersion >= 1.3 ? "crs" : "srs";
|
|
1333
1325
|
if (crs) {
|
|
1334
1326
|
const nw = crs.project(bounds.getNorthWest());
|
|
1335
1327
|
const se = crs.project(bounds.getSouthEast());
|
|
@@ -1337,8 +1329,7 @@ class ImageLayer extends Layer {
|
|
|
1337
1329
|
width: size.x,
|
|
1338
1330
|
height: size.y
|
|
1339
1331
|
};
|
|
1340
|
-
params
|
|
1341
|
-
params.bbox = (wmsVersion >= 1.3 && crs === CRS.EPSG4326 ? [se.y, nw.x, nw.y, se.x] : [nw.x, se.y, se.x, nw.y]).join(",");
|
|
1332
|
+
params.bbox = [nw.x, se.y, se.x, nw.y];
|
|
1342
1333
|
Util.extend(this.wmsParams, params);
|
|
1343
1334
|
}
|
|
1344
1335
|
}
|