kafe.ext.googlemaps

Class

Version 1.1.0

Extra methods for the GoogleMaps API. Requires //maps.google.com/maps/api/js to be included

Source: dist/ext/googlemaps.js

Methods

getCoordsBounds

Get bound box of array of coords.

getCoordsBounds
  • coords

Parameters:

  • coords Array(Array)

    List of lat/lon coords

Example:

myMap.fitBounds( kafe.ext.googlemaps.getCoordsBounds([ [45.64137, -73.86612], [45.51933, -73.58503] ]) );