gis-leaflet-helper 3.3.12 → 3.3.13
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.
|
@@ -31964,6 +31964,14 @@ function injectCss(cls) {
|
|
|
31964
31964
|
container.style.cursor = `url(${cursor}), auto`;
|
|
31965
31965
|
}
|
|
31966
31966
|
},
|
|
31967
|
+
setBackground: function(background) {
|
|
31968
|
+
const container = this.getContainer();
|
|
31969
|
+
if (Color.isColor(background)) {
|
|
31970
|
+
container.style.backgroundColor = background;
|
|
31971
|
+
} else {
|
|
31972
|
+
container.style.background = `url(${background}), no-repeat center center / cover`;
|
|
31973
|
+
}
|
|
31974
|
+
},
|
|
31967
31975
|
flyTo(target, zoom = 0, options = { animate: false }) {
|
|
31968
31976
|
if (target instanceof L.Marker) {
|
|
31969
31977
|
target = target._latlng;
|