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

EvHaus picture EvHaus  路  3Comments

shrimpy picture shrimpy  路  3Comments

bossbossk20 picture bossbossk20  路  3Comments

madbean picture madbean  路  3Comments

craigcartmell picture craigcartmell  路  4Comments