We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74490e8 commit b16d6b8Copy full SHA for b16d6b8
examples/src/components/Simple.vue
@@ -9,6 +9,7 @@
9
<l-map
10
:zoom="zoom"
11
:center="center"
12
+ :options="mapOptions"
13
style="height: 80%"
14
@update:center="centerUpdate"
15
@update:zoom="zoomUpdate">
@@ -47,9 +48,12 @@ export default {
47
48
url: 'http://{s}.tile.osm.org/{z}/{x}/{y}.png',
49
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
50
marker: L.latLng(47.413220, -1.219482),
- currentZoom: 13,
51
+ currentZoom: 11.5,
52
currentCenter: L.latLng(47.413220, -1.219482),
- showParagraph: false
53
+ showParagraph: false,
54
+ mapOptions: {
55
+ zoomSnap: 0.5
56
+ }
57
};
58
},
59
methods: {
0 commit comments