Open mazyvan opened 6 years ago
Update:
Seams like using the @dragend
event I can actually get the maker data. It's this the proper way to get that?
updateMaker: function(event) {
console.log('updateMaker, ', event.latLng);
this.markerPosition = {
lat: event.latLng.lat(),
lng: event.latLng.lng(),
}
},
Also, this events are not in the readme. They must be there. This Saturday I can make a PR to the file if you wish
Maybe this component may help do the trick (but not reallu sure) https://github.com/eregnier/vue2-gmap-custom-marker
I'm stuck with this.
I just need to update my current local marker position after any drag.
I'm using Vue version 2.5.17 with webpack and laravel mix (2.1.11)
Using
@position_changed
theupdateMaker
method gets called forever and the functionslat()
andlng()
doesn't returns values.// Inside template
// Inside methods object
and using
:position.sync="markerPosition"
doesn't do anything. Why??In the documentation there's nothing about this synchronization