diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/image-map.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/image-map.ts index a9680665a5..ab9dc60ef4 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/image-map.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/image-map.ts @@ -14,7 +14,7 @@ /// limitations under the License. /// -import L, { LatLngLiteral } from 'leaflet'; +import L, { LatLngLiteral, LatLngBounds, LatLngTuple } from 'leaflet'; import LeafletMap from '../leaflet-map'; import { UnitedMapSettings } from '../map-models'; import { aspectCache, parseFunction } from '@app/core/utils'; @@ -108,11 +108,12 @@ export class ImageMap extends LeafletMap { this.updateBounds(updateImage, lastCenterPos); this.map.invalidateSize(true); } - } } } + fitBounds(bounds: LatLngBounds, useDefaultZoom = false, padding?: LatLngTuple) { } + initMap(updateImage?) { if (!this.map && this.aspect > 0) { const center = this.pointToLatLng(this.width / 2, this.height / 2);