Angular controller

MapController source

Parameters

NameTypeDescription
$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

NameTypeDescription
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

NameTypeDescription
string String

an address to find the location

Returns

TypeDescription
Promise

latlng the location of the address