Google Maps Polygon Example. State shapes onto a map. For example Google Earth polygons into an area.

Additionally polygons form a closed loop and define a filled. In appmodulets dont forget to load drawing package via AgmCoreModule module. For example assuming rectangle is a.
This works fine and the console logs the lat lngs I need.
Drawing Here is a demo for your reference. In this tutorial we are pleased to introduce a Google Map API V3 polygon shape creator class. GooglemapsPolygonprototypegetApproximateCenter function var boundsHeight 0 boundsWidth 0 centerPoint heightIncr 0 maxSearchLoops maxSearchSteps 10 n 1 northWest polygonBounds thisgetBoundingBox testPos widthIncr 0. Polygon class A polygon like a polyline defines a series of connected coordinates in an ordered sequence.