Angular provider

NgMap source

Description

common utility service for ng-map

Methods

addMap (mapController)

Parameters

NameTypeDescription
mapController __MapContoller

a map controller

deleteMap (mapController)

Parameters

NameTypeDescription
mapController __MapContoller

a map controller

getGeoLocation (address, options)

Parameters

NameTypeDescription
address String
options Hash

geo options

getMap (optional,)

Parameters

NameTypeDescription
optional, String

id e.g., 'foo'

initMap

observeAndSet (attrName, object)

Parameters

NameTypeDescription
attrName String

attribute name

object Object

A Google maps object to be changed

setDefaultOptions (options)

Example

app.config(function(NgMapProvider) {
   NgMapProvider.setDefaultOptions({
     marker: {
       optimized: false
     }
   });
 });

Parameters

NameTypeDescription
options Hash

setStyle (map)

set display, width, height of map container element

Parameters

NameTypeDescription
map HtmlElement

contriner element