leaflet-rails 1.9.0 → 1.9.2
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac76749c8be70ff74252db4223b8263e0f64d5ca9111fb0db57e5b449362cd28
|
4
|
+
data.tar.gz: 0463cf0179d226f8dee59a59e43caaa8d2dd851657c151d841e3f1403799db23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98d3510d3a093e46688cce6969edc704b0f09e5665805c6d93aadf2340cb70ef39f2b26180fed4003680282c186bd6c82735f064c30c6c482dac2419b8667d73
|
7
|
+
data.tar.gz: edb8f891b3b565ed45cef1d717d571dac9ee306b7a9ad58bdc605041e1a094270d5451281538caa5155538e705f611e570ba5a703276bb448ce19e4acb46e838
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* @preserve
|
2
|
-
* Leaflet 1.9.
|
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.
|
12
|
+
var version = "1.9.2";
|
13
13
|
|
14
14
|
/*
|
15
15
|
* @namespace Util
|
@@ -626,15 +626,17 @@
|
|
626
626
|
console.warn('"string" type argument expected');
|
627
627
|
}
|
628
628
|
|
629
|
+
// we don't overwrite the input `fn` value, because we need to use it for propagation
|
630
|
+
var _fn = fn;
|
629
631
|
if (typeof fn !== 'function') {
|
630
632
|
propagate = !!fn;
|
631
|
-
|
633
|
+
_fn = undefined;
|
632
634
|
context = undefined;
|
633
635
|
}
|
634
636
|
|
635
637
|
var listeners = this._events && this._events[type];
|
636
638
|
if (listeners && listeners.length) {
|
637
|
-
if (this._listens(type,
|
639
|
+
if (this._listens(type, _fn, context) !== false) {
|
638
640
|
return true;
|
639
641
|
}
|
640
642
|
}
|
@@ -1165,8 +1167,8 @@
|
|
1165
1167
|
},
|
1166
1168
|
|
1167
1169
|
|
1168
|
-
// @method equals(otherBounds: Bounds
|
1169
|
-
// Returns `true` if the rectangle is equivalent
|
1170
|
+
// @method equals(otherBounds: Bounds): Boolean
|
1171
|
+
// Returns `true` if the rectangle is equivalent to the given bounds.
|
1170
1172
|
equals: function (bounds) {
|
1171
1173
|
if (!bounds) { return false; }
|
1172
1174
|
|
@@ -10435,7 +10437,8 @@
|
|
10435
10437
|
// @method openPopup(latlng?: LatLng): this
|
10436
10438
|
// Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
|
10437
10439
|
openPopup: function (latlng) {
|
10438
|
-
if (this._popup && this._popup._prepareOpen(latlng)) {
|
10440
|
+
if (this._popup && this._popup._prepareOpen(latlng || this._latlng)) {
|
10441
|
+
|
10439
10442
|
// open the popup on the map
|
10440
10443
|
this._popup.openOn(this._map);
|
10441
10444
|
}
|
@@ -10895,15 +10898,21 @@
|
|
10895
10898
|
},
|
10896
10899
|
|
10897
10900
|
_addFocusListenersOnLayer: function (layer) {
|
10898
|
-
|
10899
|
-
|
10900
|
-
|
10901
|
-
|
10902
|
-
|
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
|
+
}
|
10903
10909
|
},
|
10904
10910
|
|
10905
10911
|
_setAriaDescribedByOnLayer: function (layer) {
|
10906
|
-
layer.getElement()
|
10912
|
+
var el = layer.getElement();
|
10913
|
+
if (el) {
|
10914
|
+
el.setAttribute('aria-describedby', this._tooltip._container.id);
|
10915
|
+
}
|
10907
10916
|
},
|
10908
10917
|
|
10909
10918
|
|
@@ -14309,109 +14318,6 @@
|
|
14309
14318
|
Map.TapHold = TapHold;
|
14310
14319
|
Map.TouchZoom = TouchZoom;
|
14311
14320
|
|
14312
|
-
var L$1 = {
|
14313
|
-
__proto__: null,
|
14314
|
-
version: version,
|
14315
|
-
Control: Control,
|
14316
|
-
control: control,
|
14317
|
-
Class: Class,
|
14318
|
-
Handler: Handler,
|
14319
|
-
extend: extend,
|
14320
|
-
bind: bind,
|
14321
|
-
stamp: stamp,
|
14322
|
-
setOptions: setOptions,
|
14323
|
-
Browser: Browser,
|
14324
|
-
Evented: Evented,
|
14325
|
-
Mixin: Mixin,
|
14326
|
-
Util: Util,
|
14327
|
-
PosAnimation: PosAnimation,
|
14328
|
-
Draggable: Draggable,
|
14329
|
-
DomEvent: DomEvent,
|
14330
|
-
DomUtil: DomUtil,
|
14331
|
-
Point: Point,
|
14332
|
-
point: toPoint,
|
14333
|
-
Bounds: Bounds,
|
14334
|
-
bounds: toBounds,
|
14335
|
-
Transformation: Transformation,
|
14336
|
-
transformation: toTransformation,
|
14337
|
-
LineUtil: LineUtil,
|
14338
|
-
PolyUtil: PolyUtil,
|
14339
|
-
LatLng: LatLng,
|
14340
|
-
latLng: toLatLng,
|
14341
|
-
LatLngBounds: LatLngBounds,
|
14342
|
-
latLngBounds: toLatLngBounds,
|
14343
|
-
CRS: CRS,
|
14344
|
-
Projection: index,
|
14345
|
-
Layer: Layer,
|
14346
|
-
LayerGroup: LayerGroup,
|
14347
|
-
layerGroup: layerGroup,
|
14348
|
-
FeatureGroup: FeatureGroup,
|
14349
|
-
featureGroup: featureGroup,
|
14350
|
-
ImageOverlay: ImageOverlay,
|
14351
|
-
imageOverlay: imageOverlay,
|
14352
|
-
VideoOverlay: VideoOverlay,
|
14353
|
-
videoOverlay: videoOverlay,
|
14354
|
-
SVGOverlay: SVGOverlay,
|
14355
|
-
svgOverlay: svgOverlay,
|
14356
|
-
DivOverlay: DivOverlay,
|
14357
|
-
Popup: Popup,
|
14358
|
-
popup: popup,
|
14359
|
-
Tooltip: Tooltip,
|
14360
|
-
tooltip: tooltip,
|
14361
|
-
icon: icon,
|
14362
|
-
DivIcon: DivIcon,
|
14363
|
-
divIcon: divIcon,
|
14364
|
-
Marker: Marker,
|
14365
|
-
marker: marker,
|
14366
|
-
Icon: Icon,
|
14367
|
-
GridLayer: GridLayer,
|
14368
|
-
gridLayer: gridLayer,
|
14369
|
-
TileLayer: TileLayer,
|
14370
|
-
tileLayer: tileLayer,
|
14371
|
-
Renderer: Renderer,
|
14372
|
-
Canvas: Canvas,
|
14373
|
-
canvas: canvas,
|
14374
|
-
Path: Path,
|
14375
|
-
CircleMarker: CircleMarker,
|
14376
|
-
circleMarker: circleMarker,
|
14377
|
-
Circle: Circle,
|
14378
|
-
circle: circle,
|
14379
|
-
Polyline: Polyline,
|
14380
|
-
polyline: polyline,
|
14381
|
-
Polygon: Polygon,
|
14382
|
-
polygon: polygon,
|
14383
|
-
Rectangle: Rectangle,
|
14384
|
-
rectangle: rectangle,
|
14385
|
-
SVG: SVG,
|
14386
|
-
svg: svg,
|
14387
|
-
GeoJSON: GeoJSON,
|
14388
|
-
geoJSON: geoJSON,
|
14389
|
-
geoJson: geoJson,
|
14390
|
-
Map: Map,
|
14391
|
-
map: createMap
|
14392
|
-
};
|
14393
|
-
|
14394
|
-
var globalL = extend(L$1, {noConflict: noConflict});
|
14395
|
-
|
14396
|
-
var globalObject = getGlobalObject();
|
14397
|
-
var oldL = globalObject.L;
|
14398
|
-
|
14399
|
-
globalObject.L = globalL;
|
14400
|
-
|
14401
|
-
function noConflict() {
|
14402
|
-
globalObject.L = oldL;
|
14403
|
-
return globalL;
|
14404
|
-
}
|
14405
|
-
|
14406
|
-
function getGlobalObject() {
|
14407
|
-
if (typeof globalThis !== 'undefined') { return globalThis; }
|
14408
|
-
if (typeof self !== 'undefined') { return self; }
|
14409
|
-
if (typeof window !== 'undefined') { return window; }
|
14410
|
-
if (typeof global !== 'undefined') { return global; }
|
14411
|
-
|
14412
|
-
throw new Error('Unable to locate global object.');
|
14413
|
-
}
|
14414
|
-
|
14415
14321
|
exports.Bounds = Bounds;
|
14416
14322
|
exports.Browser = Browser;
|
14417
14323
|
exports.CRS = CRS;
|
@@ -14463,7 +14369,6 @@
|
|
14463
14369
|
exports.circle = circle;
|
14464
14370
|
exports.circleMarker = circleMarker;
|
14465
14371
|
exports.control = control;
|
14466
|
-
exports["default"] = globalL;
|
14467
14372
|
exports.divIcon = divIcon;
|
14468
14373
|
exports.extend = extend;
|
14469
14374
|
exports.featureGroup = featureGroup;
|
@@ -14477,7 +14382,6 @@
|
|
14477
14382
|
exports.layerGroup = layerGroup;
|
14478
14383
|
exports.map = createMap;
|
14479
14384
|
exports.marker = marker;
|
14480
|
-
exports.noConflict = noConflict;
|
14481
14385
|
exports.point = toPoint;
|
14482
14386
|
exports.polygon = polygon;
|
14483
14387
|
exports.polyline = polyline;
|
@@ -14493,5 +14397,13 @@
|
|
14493
14397
|
exports.version = version;
|
14494
14398
|
exports.videoOverlay = videoOverlay;
|
14495
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
|
+
|
14496
14408
|
}));
|
14497
14409
|
//# sourceMappingURL=<%= asset_path 'leaflet-src.js.map' %>
|