Angular factory
NgMapPool source
Description
Provide map instance to avoid memory leak
Members
Name | Type | Description |
---|---|---|
mapInstances | map instance pool |
Methods
-
deleteMapInstance
-
delete a mapInstance
-
getMapInstance (el)
-
Parameters
Name Type Description 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
Name Type Description an Map instance of google.maps.Map