Showing
1 changed file
with
3 additions
and
2 deletions
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | /// limitations under the License. |
15 | 15 | /// |
16 | 16 | |
17 | -import L, { LatLngLiteral } from 'leaflet'; | |
17 | +import L, { LatLngLiteral, LatLngBounds, LatLngTuple } from 'leaflet'; | |
18 | 18 | import LeafletMap from '../leaflet-map'; |
19 | 19 | import { UnitedMapSettings } from '../map-models'; |
20 | 20 | import { aspectCache, parseFunction } from '@app/core/utils'; |
... | ... | @@ -108,11 +108,12 @@ export class ImageMap extends LeafletMap { |
108 | 108 | this.updateBounds(updateImage, lastCenterPos); |
109 | 109 | this.map.invalidateSize(true); |
110 | 110 | } |
111 | - | |
112 | 111 | } |
113 | 112 | } |
114 | 113 | } |
115 | 114 | |
115 | + fitBounds(bounds: LatLngBounds, useDefaultZoom = false, padding?: LatLngTuple) { } | |
116 | + | |
116 | 117 | initMap(updateImage?) { |
117 | 118 | if (!this.map && this.aspect > 0) { |
118 | 119 | const center = this.pointToLatLng(this.width / 2, this.height / 2); | ... | ... |