Commit 7245f88014dbce966bfe67347c08eb9a8182bbe6

Authored by Artem Halushko
1 parent 7593b1b4

remove image map zoom

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