-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting map center point after drag #100
Comments
Theoretically, you Edit: <template>
{{ center }}
<GMapMap :center="center" />
</template>
<script setup>
import { reactive } from "vue";
const center = reactive({ lat: 0, lng: 0 });
</script> |
Nope, that didn't work. Thanks though. |
I had a look through the code and found these events on the GMapMap component:
Which also provides the relevant information as a callback. Hope this helps someone else in the future! |
Oops - of course binding it wouldn't propagate the update back. I would still consider this an issue, because this should be available through |
I've got a whole load of markers so I'd like to dynamically load them in based upon the map center. However I don't see an elegant way to get this data.
Ideally the dragend event (and other drag events) on should return the new center location data. Or is there a better way of doing this?
The text was updated successfully, but these errors were encountered: