Google Maps


Basic

You must define container ID, latitude and longitude of the map's center.

Markers

latitude and longitude are required. You can also attach additional information with details, which will be passed to Event object (e) in the events previously defined.

Geolocation

GMaps.geolocate supports 4 functions:
  • success (required): fires when geolocation has been successful
  • error (required): fires when geolocation has not been done
  • not_supported (required): fires when geolocation is not supported by the browser
  • always (optional): fires always after every scenario described above.

Polylines

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

Geocoding

You can define either address or lat and lng. Also, you must define callback, which will use results of geocoding and status.