Skip to content
Discussion options

You must be logged in to vote

Not sure this is supported out of the box. You will have to use the native api to fit bounds. You could check the advanced usage section of the docs.

var bounds = new window.google.maps.LatLngBounds()
bounds.extend(pathA)
bounds.extend(pathB)
...
bounds.extend(pathN)
            
this.$mapRef.value.map.fitBounds(bounds)

in the above, mapRef is the reference to your google map(see advanced usage)

If you have a list of LatLng values, you could loop over and extend the bounds for each of the value in thelist.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HusamElbashir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #107 on March 28, 2024 23:34.