dézoom map mobile
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { useLayoutStore } from '../stores/layout';
|
||||
|
||||
export function setupMapStore(mapStore, map, settings) {
|
||||
mapStore.map = map;
|
||||
mapStore.defaultMapCenter = map.getCenter();
|
||||
mapStore.maxZoom = settings.settings.maxZoom;
|
||||
mapStore.defaultZoom = settings.settings.minZoom;
|
||||
mapStore.defaultZoomDesktop = settings.settings.minZoom;
|
||||
mapStore.defaultZoomMobile = settings.settings.minZoom - 1;
|
||||
mapStore.map.flyTo([mapStore.defaultMapCenter.lat, mapStore.defaultMapCenter.lng], useLayoutStore().isDesktop ? mapStore.defaultZoomDesktop : mapStore.defaultZoomMobile);
|
||||
}
|
@@ -6,7 +6,7 @@ import VueImageZoomer from 'vue-image-zoomer';
|
||||
import 'vue-image-zoomer/dist/style.css';
|
||||
|
||||
import { useContentStore } from '../stores/content';
|
||||
import { useMapStore } from '../stores/mapState';
|
||||
import { useMapStore } from '../stores/map';
|
||||
|
||||
export function initVueContentModale() {
|
||||
const app = createApp(Modale)
|
||||
|
Reference in New Issue
Block a user