update changed zoom value #277
-
Is it possible get the updated zoom value ? does the component emit it? I have a use case where i want to display certain markers based on how far it's zoomed in. I wanted to use v-if based on zoom value but changing the zoom does not update the zoom parameter. Is there a way to do this? Edit:
but it does not work |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The correct name for the event is |
Beta Was this translation helpful? Give feedback.
The correct name for the event is
zoom_changed
. See here for all the events you can listen to on the map:https://github.com/inocan-group/vue3-google-map/blob/develop/src/components/GoogleMap.vue#L10-L33
https://developers.google.com/maps/documentation/javascript/reference/map#Map-Events