leaflet-rails 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0178b7d4357cc97c5af07f4ae43f899e3da14f4d8dc747b8d4a702a1ee43314
4
- data.tar.gz: 17ea21b9588e6cd79d951441c8b8b2b996d64d7ee6d76e68ff0634953b6926f5
3
+ metadata.gz: ac76749c8be70ff74252db4223b8263e0f64d5ca9111fb0db57e5b449362cd28
4
+ data.tar.gz: 0463cf0179d226f8dee59a59e43caaa8d2dd851657c151d841e3f1403799db23
5
5
  SHA512:
6
- metadata.gz: 04d32af1780875c9aeae337d0f79cb17cda8cf5dd67119b8177336bc61d0ac31bf073018ab7c098ca43f5237fa2e996fe2c041c628e54ccad729707618aa0fd4
7
- data.tar.gz: 9466102081b88430a8ac5dfee0f5d52ffc18e14e248f575dbc346966951056d88762978a84a01c119fd1eebb6b54d39e03fe05d991f40d26d0afa5ec46e0a0ed
6
+ metadata.gz: 98d3510d3a093e46688cce6969edc704b0f09e5665805c6d93aadf2340cb70ef39f2b26180fed4003680282c186bd6c82735f064c30c6c482dac2419b8667d73
7
+ data.tar.gz: edb8f891b3b565ed45cef1d717d571dac9ee306b7a9ad58bdc605041e1a094270d5451281538caa5155538e705f611e570ba5a703276bb448ce19e4acb46e838
@@ -1,5 +1,5 @@
1
1
  module Leaflet
2
2
  module Rails
3
- VERSION = "1.9.1"
3
+ VERSION = "1.9.2"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /* @preserve
2
- * Leaflet 1.9.1, a JS library for interactive maps. https://leafletjs.com
2
+ * Leaflet 1.9.2, a JS library for interactive maps. https://leafletjs.com
3
3
  * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4
4
  */
5
5
 
@@ -9,7 +9,7 @@
9
9
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.leaflet = {}));
10
10
  })(this, (function (exports) { 'use strict';
11
11
 
12
- var version = "1.9.1";
12
+ var version = "1.9.2";
13
13
 
14
14
  /*
15
15
  * @namespace Util
@@ -1167,8 +1167,8 @@
1167
1167
  },
1168
1168
 
1169
1169
 
1170
- // @method equals(otherBounds: Bounds, maxMargin?: Number): Boolean
1171
- // Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.
1170
+ // @method equals(otherBounds: Bounds): Boolean
1171
+ // Returns `true` if the rectangle is equivalent to the given bounds.
1172
1172
  equals: function (bounds) {
1173
1173
  if (!bounds) { return false; }
1174
1174
 
@@ -10437,7 +10437,8 @@
10437
10437
  // @method openPopup(latlng?: LatLng): this
10438
10438
  // Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
10439
10439
  openPopup: function (latlng) {
10440
- if (this._popup && this._popup._prepareOpen(latlng)) {
10440
+ if (this._popup && this._popup._prepareOpen(latlng || this._latlng)) {
10441
+
10441
10442
  // open the popup on the map
10442
10443
  this._popup.openOn(this._map);
10443
10444
  }
@@ -10897,15 +10898,21 @@
10897
10898
  },
10898
10899
 
10899
10900
  _addFocusListenersOnLayer: function (layer) {
10900
- on(layer.getElement(), 'focus', function () {
10901
- this._tooltip._source = layer;
10902
- this.openTooltip();
10903
- }, this);
10904
- on(layer.getElement(), 'blur', this.closeTooltip, this);
10901
+ var el = layer.getElement();
10902
+ if (el) {
10903
+ on(el, 'focus', function () {
10904
+ this._tooltip._source = layer;
10905
+ this.openTooltip();
10906
+ }, this);
10907
+ on(el, 'blur', this.closeTooltip, this);
10908
+ }
10905
10909
  },
10906
10910
 
10907
10911
  _setAriaDescribedByOnLayer: function (layer) {
10908
- layer.getElement().setAttribute('aria-describedby', this._tooltip._container.id);
10912
+ var el = layer.getElement();
10913
+ if (el) {
10914
+ el.setAttribute('aria-describedby', this._tooltip._container.id);
10915
+ }
10909
10916
  },
10910
10917
 
10911
10918
 
@@ -14311,109 +14318,6 @@
14311
14318
  Map.TapHold = TapHold;
14312
14319
  Map.TouchZoom = TouchZoom;
14313
14320
 
14314
- var L$1 = {
14315
- __proto__: null,
14316
- version: version,
14317
- Control: Control,
14318
- control: control,
14319
- Class: Class,
14320
- Handler: Handler,
14321
- extend: extend,
14322
- bind: bind,
14323
- stamp: stamp,
14324
- setOptions: setOptions,
14325
- Browser: Browser,
14326
- Evented: Evented,
14327
- Mixin: Mixin,
14328
- Util: Util,
14329
- PosAnimation: PosAnimation,
14330
- Draggable: Draggable,
14331
- DomEvent: DomEvent,
14332
- DomUtil: DomUtil,
14333
- Point: Point,
14334
- point: toPoint,
14335
- Bounds: Bounds,
14336
- bounds: toBounds,
14337
- Transformation: Transformation,
14338
- transformation: toTransformation,
14339
- LineUtil: LineUtil,
14340
- PolyUtil: PolyUtil,
14341
- LatLng: LatLng,
14342
- latLng: toLatLng,
14343
- LatLngBounds: LatLngBounds,
14344
- latLngBounds: toLatLngBounds,
14345
- CRS: CRS,
14346
- Projection: index,
14347
- Layer: Layer,
14348
- LayerGroup: LayerGroup,
14349
- layerGroup: layerGroup,
14350
- FeatureGroup: FeatureGroup,
14351
- featureGroup: featureGroup,
14352
- ImageOverlay: ImageOverlay,
14353
- imageOverlay: imageOverlay,
14354
- VideoOverlay: VideoOverlay,
14355
- videoOverlay: videoOverlay,
14356
- SVGOverlay: SVGOverlay,
14357
- svgOverlay: svgOverlay,
14358
- DivOverlay: DivOverlay,
14359
- Popup: Popup,
14360
- popup: popup,
14361
- Tooltip: Tooltip,
14362
- tooltip: tooltip,
14363
- icon: icon,
14364
- DivIcon: DivIcon,
14365
- divIcon: divIcon,
14366
- Marker: Marker,
14367
- marker: marker,
14368
- Icon: Icon,
14369
- GridLayer: GridLayer,
14370
- gridLayer: gridLayer,
14371
- TileLayer: TileLayer,
14372
- tileLayer: tileLayer,
14373
- Renderer: Renderer,
14374
- Canvas: Canvas,
14375
- canvas: canvas,
14376
- Path: Path,
14377
- CircleMarker: CircleMarker,
14378
- circleMarker: circleMarker,
14379
- Circle: Circle,
14380
- circle: circle,
14381
- Polyline: Polyline,
14382
- polyline: polyline,
14383
- Polygon: Polygon,
14384
- polygon: polygon,
14385
- Rectangle: Rectangle,
14386
- rectangle: rectangle,
14387
- SVG: SVG,
14388
- svg: svg,
14389
- GeoJSON: GeoJSON,
14390
- geoJSON: geoJSON,
14391
- geoJson: geoJson,
14392
- Map: Map,
14393
- map: createMap
14394
- };
14395
-
14396
- var globalL = extend(L$1, {noConflict: noConflict});
14397
-
14398
- var globalObject = getGlobalObject();
14399
- var oldL = globalObject.L;
14400
-
14401
- globalObject.L = globalL;
14402
-
14403
- function noConflict() {
14404
- globalObject.L = oldL;
14405
- return globalL;
14406
- }
14407
-
14408
- function getGlobalObject() {
14409
- if (typeof globalThis !== 'undefined') { return globalThis; }
14410
- if (typeof self !== 'undefined') { return self; }
14411
- if (typeof window !== 'undefined') { return window; }
14412
- if (typeof global !== 'undefined') { return global; }
14413
-
14414
- throw new Error('Unable to locate global object.');
14415
- }
14416
-
14417
14321
  exports.Bounds = Bounds;
14418
14322
  exports.Browser = Browser;
14419
14323
  exports.CRS = CRS;
@@ -14465,7 +14369,6 @@
14465
14369
  exports.circle = circle;
14466
14370
  exports.circleMarker = circleMarker;
14467
14371
  exports.control = control;
14468
- exports["default"] = globalL;
14469
14372
  exports.divIcon = divIcon;
14470
14373
  exports.extend = extend;
14471
14374
  exports.featureGroup = featureGroup;
@@ -14479,7 +14382,6 @@
14479
14382
  exports.layerGroup = layerGroup;
14480
14383
  exports.map = createMap;
14481
14384
  exports.marker = marker;
14482
- exports.noConflict = noConflict;
14483
14385
  exports.point = toPoint;
14484
14386
  exports.polygon = polygon;
14485
14387
  exports.polyline = polyline;
@@ -14495,5 +14397,13 @@
14495
14397
  exports.version = version;
14496
14398
  exports.videoOverlay = videoOverlay;
14497
14399
 
14400
+ var oldL = window.L;
14401
+ exports.noConflict = function() {
14402
+ window.L = oldL;
14403
+ return this;
14404
+ }
14405
+ // Always export us to window global (see #2364)
14406
+ window.L = exports;
14407
+
14498
14408
  }));
14499
14409
  //# sourceMappingURL=<%= asset_path 'leaflet-src.js.map' %>