Angular factory

NgMapPool source

Description

Provide map instance to avoid memory leak

Members

NameTypeDescription
mapInstances

map instance pool



Methods

deleteMapInstance

delete a mapInstance

getMapInstance (el)

Parameters

NameTypeDescription
el HtmlElement

map container element

resetMapInstances

resets mapInstance array

returnMapInstance (an)

sets the flag inUse of the given map instance to false, so that it can be reused later

Parameters

NameTypeDescription
an Map

instance of google.maps.Map