React-google-maps: How to do rezoom and recenter to the polygon?

Created on 7 Nov 2017  路  2Comments  路  Source: tomchentw/react-google-maps

Hi sir, I'm drawing a polygon in the googlemap and I've save it in my db. Is there way to do zoom in and recenter everytime after I load the polygon coordinates from my db? Is there a way to autozoom or autocenter? Or I have to get the zoom value and center coordinates to save into my db too and load it everytime?

Most helpful comment

Use zoom and center props instead of defaultZoom or defaultCenter

All 2 comments

Use zoom and center props instead of defaultZoom or defaultCenter

hi @tomchentw
How can I use getZoom() with defaultZoom. and set dynamic value place of a static number.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

madbean picture madbean  路  3Comments

farhan687 picture farhan687  路  3Comments

ShintaroNippon picture ShintaroNippon  路  3Comments

LukasZvikas picture LukasZvikas  路  3Comments

Mahmood004 picture Mahmood004  路  3Comments