diff --git a/components/EventMapDialog.vue b/components/EventMapDialog.vue new file mode 100644 index 00000000..378f2719 --- /dev/null +++ b/components/EventMapDialog.vue @@ -0,0 +1,65 @@ + + diff --git a/components/Map.vue b/components/Map.vue index a62b2beb..be67663a 100644 --- a/components/Map.vue +++ b/components/Map.vue @@ -1,43 +1,26 @@ diff --git a/components/WhereInputAdvanced.vue b/components/WhereInputAdvanced.vue index bcaf5bdd..d81faa11 100644 --- a/components/WhereInputAdvanced.vue +++ b/components/WhereInputAdvanced.vue @@ -38,7 +38,7 @@ v-card :rules="$validators.longitude") p.mt-4(v-if='place.isNew' v-html="$t('event.address_geocoded_disclaimer')") - MapEdit.mt-4(:place='place' v-if="(settings.allow_geolocation && place.name !== 'online' && place.latitude && place.longitude)" ) + Map.mt-4(:place='place' v-if="(settings.allow_geolocation && place.name !== 'online' && place.latitude && place.longitude)" ) v-divider(v-if='settings.allow_online_event && showGeocoded') @@ -76,7 +76,7 @@ export default { onlineLocations: { type: Array, default: [] } }, components: { - [process.client && 'MapEdit']: () => import('@/components/MapEdit.vue') + [process.client && 'Map']: () => import('@/components/Map.vue') }, data ({$store}) { return { diff --git a/components/admin/Geolocation.vue b/components/admin/Geolocation.vue index f1b23061..0c64a559 100644 --- a/components/admin/Geolocation.vue +++ b/components/admin/Geolocation.vue @@ -49,8 +49,13 @@ v-card :label="$t('admin.tilelayer_provider_attribution')" :placeholder="tilelayer_provider_attribution_default") - div(id="leaflet-map-preview" max-height='10px') - //- Map + Map(:key='mapKey' v-if='mapPreview' + @tileerror='tilelayerTestError' + @tileload='tilelayerTestSuccess' + height="20rem" + showMarker=false + :mapCenter='mapCenter' + :zoom='12') v-card-actions v-spacer @@ -61,19 +66,19 @@ v-card - diff --git a/components/admin/Places.vue b/components/admin/Places.vue index e1d7c11c..ee80662f 100644 --- a/components/admin/Places.vue +++ b/components/admin/Places.vue @@ -62,7 +62,7 @@ v-container :label="$t('common.longitude')" :rules="$validators.longitude") - MapEdit.mt-4(:place.sync='place' :key="dialog" v-if="settings.allow_geolocation && place.name !== 'online' && place.latitude && place.longitude") + Map.mt-4(:place.sync='place' :key="dialog" v-if="settings.allow_geolocation && place.name !== 'online' && place.latitude && place.longitude") v-card-actions v-spacer @@ -96,7 +96,7 @@ import geolocation from '../../server/helpers/geolocation/index' export default { components: { - [process.client && 'MapEdit']: () => import('@/components/MapEdit.vue') + [process.client && 'Map']: () => import('@/components/Map.vue') }, data( {$store} ) { return { diff --git a/pages/event/_slug.vue b/pages/event/_slug.vue index b719419b..3991c8ec 100644 --- a/pages/event/_slug.vue +++ b/pages/event/_slug.vue @@ -177,7 +177,7 @@ v-container#event.pa-2.pa-sm-2(itemscope itemtype="https://schema.org/Event" v-t EmbedEvent(:event='event' @close='showEmbed=false') v-dialog(v-show='settings.allow_geolocation && event.place.latitude && event.place.longitude' v-model='mapModal' :fullscreen='$vuetify.breakpoint.xsOnly' destroy-on-close) - Map(:event='event' @close='mapModal=false') + EventMapDialog(:event='event' @close='mapModal=false')