Skip to content

Commit

Permalink
Test some playground for StackOverflow questions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugustinette committed Oct 13, 2023
1 parent f424760 commit 923f6c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions playground/pages/map/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<LMap
ref="map"
:zoom="zoom"
:max-zoom="18"
:center="[47.21322, -1.559482]"
@ready="mapInitialized"
>
<LTileLayer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
Expand All @@ -26,4 +28,12 @@
<script setup>
import { ref } from 'vue'
const zoom = ref(6)
const map = ref(null)
// When the map is ready
const mapInitialized = () => {
console.log('Map is ready')
console.log(map.value.maxZoom)
}
</script>

0 comments on commit 923f6c0

Please sign in to comment.