Angular controller
MapController source
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) -> Promise
-
returns the location of an address or 'current-location'
Parameters
Name Type Description string String an address to find the location
Returns
Type Description Promise latlng the location of the address