Focus on specific area in map


#1

Hi all,

how to view area (eg. province or custom area) fit on screen with angular-google-map api.
Thanks.


#2

You need to set the “center” attribute on your map tag.

<map center="59.32522, 18.07002" zoom="13">

http://ngmap.github.io/drawings.html#


#3

Thanks nicknaky,

so we have to manually adjust zoom level. Is there a way so the app zoom the area fit to the borders? Or we just have to set the polygon for that area?