|
|
|
@ -17,7 +17,7 @@ |
|
|
|
|
|
|
|
import L from 'leaflet'; |
|
|
|
import LeafletMap from '../leaflet-map'; |
|
|
|
import { UnitedMapSettings } from '../map-models'; |
|
|
|
import { DEFAULT_ZOOM_LEVEL, UnitedMapSettings } from '../map-models'; |
|
|
|
import 'leaflet.gridlayer.googlemutant'; |
|
|
|
import { ResourcesService } from '@core/services/resources.service'; |
|
|
|
import { WidgetContext } from '@home/models/widget-component.models'; |
|
|
|
@ -39,7 +39,7 @@ export class GoogleMap extends LeafletMap { |
|
|
|
const map = L.map($container, { |
|
|
|
attributionControl: false, |
|
|
|
editable: !!options.editablePolygon |
|
|
|
}).setView(options?.defaultCenterPosition, options?.defaultZoomLevel); |
|
|
|
}).setView(options?.defaultCenterPosition, options?.defaultZoomLevel || DEFAULT_ZOOM_LEVEL); |
|
|
|
(L.gridLayer as any).googleMutant({ |
|
|
|
type: options?.gmDefaultMapType || 'roadmap' |
|
|
|
}).addTo(map); |
|
|
|
|