Skip to content

Commit 74490e8

Browse files
author
Nicolò Maria Mezzopera
committed
chore: linting and enable sync on marker position
1 parent 7e5c557 commit 74490e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/src/components/Example.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@
113113
<l-control-layers
114114
:position="layersPosition"
115115
:collapsed="false"
116-
:sortLayers="true"
117-
/>
116+
:sort-layers="true"
117+
/>
118118
<l-tile-layer
119119
v-for="tileProvider in tileProviders"
120120
:key="tileProvider.name"
@@ -134,7 +134,7 @@
134134
:key="marker.id"
135135
:visible="marker.visible"
136136
:draggable="marker.draggable"
137-
:lat-lng="marker.position"
137+
:lat-lng.sync="marker.position"
138138
:icon="marker.icon"
139139
@click="alert(marker)">
140140
<l-popup :content="marker.tooltip" />
@@ -266,7 +266,7 @@ export default {
266266
center: [51.505, -0.09],
267267
opacity: 0.6,
268268
token: 'your token if using mapbox',
269-
mapOptions: { zoomControl: false, attributionControl: false },
269+
mapOptions: { zoomControl: false, attributionControl: false, zoomSnap: true },
270270
zoom: 13,
271271
minZoom: 1,
272272
maxZoom: 20,

0 commit comments

Comments
 (0)