Dependencies:
Name | Type | Description |
---|---|---|
$scope | controller scope |
|
$q | promise service |
|
NavigatorGeolocation | Google NavigatorGeolocation wrapper |
|
GeoCoder | Google GeoCoder wrapper |
|
Attr2Options | 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 the collection of objects. i.e., map.markers
obj the object to be removed. i.e., marker
-
getGeoLocation (string)
-
returns the location of an address or 'current-location'
Parameters:
Name Type Description string an address to find the location
Returns:
latlng the location of the address