vue-google-maps
vue-google-maps copied to clipboard
@center_changed smooth dragging experience
Good afternoon, I have a problem implementing the change of center. Here is an excerpt from the code: <GmapMap ref="mapRef" :center="center" :zoom="10" map-type-id="terrain" :options="{styles: mapStyles, disableDefaultUI : true}" :style="{width: '100%', height: height }" @center_changed="resetCenterChange" > resetCenterChange(evnt) { this.center = { lat: evnt.lat(), lng: evnt.lng() }
Problem: The drag is not smooth, it only moves pixel by pixel. Already try using idle and still not working.
What can i do?
I use the drag in my own project and it works fine. Can you provide an example code on stackblitz or jsfiddle to reproduce it?
drag is also not working , other solution ?
drag is also not working , other solution ?
People can't see your code, nor your monitor. Use words to describe what you see. "Not working" doesn't help anyone. What does "not working" mean? A javascript error in console? Frozen UI? Pin moves but no event gets emitted?
Please learn to talk to others before asking for help. I landed here googling, your question was everything but useful.
the @center_changed is what causes the drag to interrupt every pixel or so.. if you remove that event then the drag / panning works fine
the question is.. how to listen until the drag/pan is done and how to get the new center at that point