vue-google-maps icon indicating copy to clipboard operation
vue-google-maps copied to clipboard

@center_changed smooth dragging experience

Open fabiofernandespt opened this issue 6 years ago • 4 comments

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?

fabiofernandespt avatar Jun 27 '19 10:06 fabiofernandespt

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?

diegoazh avatar Jul 09 '19 20:07 diegoazh

drag is also not working , other solution ?

spectra10008 avatar Mar 31 '20 08:03 spectra10008

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.

fightborn avatar Jul 23 '20 12:07 fightborn

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

vesper8 avatar Jul 24 '20 14:07 vesper8