You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
google-map.vue:61 Uncaught (in promise) TypeError: mapObjectRes.MaxZoomService is not a constructor
at getMaxZoomForSpecificPlace (google-map.vue:61:2)
I think the way above is ugly, because I define a new google.maps object insted of using the already defined one.
Can you help me what is the problem with the first solution?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey!
I know that I can access Google Object this way: https://vue-map.netlify.app/examples/how-to-access-google-maps-object.html
But I don't know how I can call MaxZoomService: https://developers.google.com/maps/documentation/javascript/reference/max-zoom#MaxZoomService
I need the getMaxZoomAtLatLng() method.
So here's what I tried:
This way, there is an error in the console:
Here is how I managed to get the data:
I think the way above is ugly, because I define a new google.maps object insted of using the already defined one.
Can you help me what is the problem with the first solution?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions