Skip to content

Commit

Permalink
Fix VenueMap File
Browse files Browse the repository at this point in the history
  • Loading branch information
rockleona committed Dec 12, 2023
1 parent 4f22190 commit 22c8af6
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 43 deletions.
84 changes: 42 additions & 42 deletions pages/venue/venueMap.vue → components/venue/VenueMap.vue
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
<template>
<l-map
ref="leafletMap"
style="height: 500px"
:zoom="zoom"
:center="center"
:options="options"
<l-map
ref="leafletMap"
style="height: 500px"
:zoom="zoom"
:center="center"
:options="options"
>
<l-tile-layer
v-for="tileProvider in tileProviders"
:key="tileProvider.name"
:name="tileProvider.name"
:visible="tileProvider.visible"
:url="tileProvider.url"
:attribution="tileProvider.attribution"
layer-type="base"
/>

<l-control-layers position="bottomright"></l-control-layers>
<l-control-zoom position="topright"></l-control-zoom>
<l-control
position="topright"
class="leaflet-bar custom-control rounded-sm"
>
<l-tile-layer
v-for="tileProvider in tileProviders"
:key="tileProvider.name"
:name="tileProvider.name"
:visible="tileProvider.visible"
:url="tileProvider.url"
:attribution="tileProvider.attribution"
layer-type="base"
/>

<l-control-layers position="bottomright"></l-control-layers>
<l-control-zoom position="topright"></l-control-zoom>
<l-control
position="topright"
class="leaflet-bar custom-control rounded-sm"
>
<button
class="h-[30px] w-[30px] bg-white leading-[30px]"
@click="centerMap"
>
<img
class="m-auto"
:src="venueButtonUrl"
alt="venue-center-btn"
/>
</button>
</l-control>
<l-marker :lat-lng="markerLatLng" :icon="icon">
<l-tooltip
:options="{
offset: [-4, 20],
direction: 'bottom',
}"
>中央研究院 人文社會科學館</l-tooltip
></l-marker
<button
class="h-[30px] w-[30px] bg-white leading-[30px]"
@click="centerMap"
>
</l-map>
<img
class="m-auto"
:src="venueButtonUrl"
alt="venue-center-btn"
/>
</button>
</l-control>
<l-marker :lat-lng="markerLatLng" :icon="icon">
<l-tooltip
:options="{
offset: [-4, 20],
direction: 'bottom',
}"
>中央研究院 人文社會科學館</l-tooltip
></l-marker
>
</l-map>
</template>

<script>
Expand Down
3 changes: 2 additions & 1 deletion pages/venue/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import VenueTab from '@/components/venue/VenueTab.vue'
import VenuePublicTransporterTab from '@/components/venue/VenuePublicTransporterTab.vue'
import VenueDriveTab from '@/components/venue/VenueDriveTab.vue'
import VenueShuttleServiceTab from '@/components/venue/VenueShuttleServiceTab.vue'
import VenueMap from '@/components/venue/VenueMap.vue'
export default {
i18n,
name: 'PageVenue',
Expand All @@ -62,7 +63,7 @@ export default {
VenuePublicTransporterTab,
VenueDriveTab,
VenueShuttleServiceTab,
VenueMap: () => import('./venueMap.vue'),
VenueMap,
},
data() {
return {
Expand Down

0 comments on commit 22c8af6

Please sign in to comment.