Dependencies:
Name | Type | Description |
---|---|---|
$scope | service | controller scope |
$q | service | promise service |
NavigatorGeolocation | service | Google NavigatorGeolocation wrapper |
GeoCoder | service | Google GeoCoder wrapper |
Attr2Options | service | Converts element attributes to Google Maps API options |
Methods
-
addObject
-
Add an object to the collection of group
-
deleteObject (objs, obj)
-
Delete an object from the collection and remove from map
Parameters:
Name Type Description objs Array the collection of objects. i.e., map.markers
obj Object the object to be removed. i.e., marker
-
getGeoLocation (string)
-
returns the location of an address or 'current-location'
Parameters:
Name Type Description string String an address to find the location
Returns:
latlng the location of the address