gmaps - Overlays

Polylines

The path of the polyline is defined by an array of array of two (latitude and longitude).

Overlays

You must define latitude, longitudeand the contentof the map overlay.

Also, you must define a heightto the content.

Also, you can define a verticalAlign, which can be top, middleor bottom, and horizontalAlign, which can be left, centeror right.

Polygons

The path of a polygon can be defined as an array of:

  • google.maps.LatLngobjects, or
  • arrays of coordinates, with index 0 and 1 as, respectively, latitudeand longitude(as in the example)

Also, you can add a GeoJSON Polygon or MultiPolygon path using useGeoJSON: true.

GeoJSON Polygons

The GeoJSON Polygon should be surrounded by brackets, according the specification.