Browse Source

remove image map zoom

pull/2720/head
Artem Halushko 6 years ago
parent
commit
7245f88014
  1. 5
      ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/image-map.ts

5
ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/image-map.ts

@ -14,7 +14,7 @@
/// limitations under the License. /// limitations under the License.
/// ///
import L, { LatLngLiteral } from 'leaflet'; import L, { LatLngLiteral, LatLngBounds, LatLngTuple } from 'leaflet';
import LeafletMap from '../leaflet-map'; import LeafletMap from '../leaflet-map';
import { UnitedMapSettings } from '../map-models'; import { UnitedMapSettings } from '../map-models';
import { aspectCache, parseFunction } from '@app/core/utils'; import { aspectCache, parseFunction } from '@app/core/utils';
@ -108,11 +108,12 @@ export class ImageMap extends LeafletMap {
this.updateBounds(updateImage, lastCenterPos); this.updateBounds(updateImage, lastCenterPos);
this.map.invalidateSize(true); this.map.invalidateSize(true);
} }
} }
} }
} }
fitBounds(bounds: LatLngBounds, useDefaultZoom = false, padding?: LatLngTuple) { }
initMap(updateImage?) { initMap(updateImage?) {
if (!this.map && this.aspect > 0) { if (!this.map && this.aspect > 0) {
const center = this.pointToLatLng(this.width / 2, this.height / 2); const center = this.pointToLatLng(this.width / 2, this.height / 2);

Loading…
Cancel
Save