Skip to content

Commit

Permalink
chore: add zoom snap to simple example
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolò Maria Mezzopera committed Nov 8, 2018
1 parent 74490e8 commit b16d6b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/src/components/Simple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<l-map
:zoom="zoom"
:center="center"
:options="mapOptions"
style="height: 80%"
@update:center="centerUpdate"
@update:zoom="zoomUpdate">
Expand Down Expand Up @@ -47,9 +48,12 @@ export default {
url: 'http://{s}.tile.osm.org/{z}/{x}/{y}.png',
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
marker: L.latLng(47.413220, -1.219482),
currentZoom: 13,
currentZoom: 11.5,
currentCenter: L.latLng(47.413220, -1.219482),
showParagraph: false
showParagraph: false,
mapOptions: {
zoomSnap: 0.5
}
};
},
methods: {
Expand Down

0 comments on commit b16d6b8

Please sign in to comment.