|
|
|
@ -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); |
|
|
|
|