@nextgis/leaflet-map-adapter 3.0.0-alpha.13 → 3.0.0-alpha.18

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.
@@ -1,7 +1,7 @@
1
- /** Bundle of @nextgis/leaflet-map-adapter; version: 3.0.0-alpha.13; author: NextGIS */
1
+ /** Bundle of @nextgis/leaflet-map-adapter; version: 3.0.0-alpha.17; author: NextGIS */
2
2
  import { EventEmitter } from 'events';
3
3
  import { Control, DomEvent, GeoJSON, DivIcon, Marker, CircleMarker, FeatureGroup, ImageOverlay as ImageOverlay$1, Layer, Util, CRS, GridLayer, DomUtil, TileLayer as TileLayer$1, Map, latLngBounds, latLng } from 'leaflet';
4
- import { defined, debounce as debounce$1, updateUrlParams } from '@nextgis/utils';
4
+ import { defined, debounce as debounce$1, isObject, updateUrlParams } from '@nextgis/utils';
5
5
  import { isPaintCallback, isPaint } from '@nextgis/paint';
6
6
  import Queue from '@nextgis/queue';
7
7
 
@@ -1201,7 +1201,7 @@ class ImageLayer extends Layer {
1201
1201
  for (opt in options) {
1202
1202
  if (opt in this.options) {
1203
1203
  opts[opt] = options[opt];
1204
- } else {
1204
+ } else if (!isObject(options[opt])) {
1205
1205
  params[opt] = options[opt];
1206
1206
  }
1207
1207
  }
@@ -1387,7 +1387,7 @@ class ImageAdapter extends BaseAdapter {
1387
1387
  const url = options && options.url;
1388
1388
  if (url) {
1389
1389
  const updateWmsParamsFromOpt = options.updateWmsParams;
1390
- this.layer = new ImageLayer(url, __spreadProps$3(__spreadValues$4(__spreadValues$4(__spreadValues$4({
1390
+ this.layer = new ImageLayer(url, __spreadValues$4(__spreadValues$4(__spreadValues$4({
1391
1391
  pane: this.pane,
1392
1392
  headers: options.headers,
1393
1393
  setViewDelay: options.setViewDelay
@@ -1395,9 +1395,7 @@ class ImageAdapter extends BaseAdapter {
1395
1395
  transparent: true
1396
1396
  }, options), {
1397
1397
  opacity: (_a = options.opacity) != null ? _a : void 0
1398
- })), options.params), options.nativeOptions), {
1399
- maxZoom: 12
1400
- }));
1398
+ })), options.params), options.nativeOptions));
1401
1399
  if (updateWmsParamsFromOpt) {
1402
1400
  const updateWmsParams = this.layer.updateWmsParams;
1403
1401
  this.layer.updateWmsParams = function(map) {