AbstractStrategy
Summary
A Strategy is created by a MapExtensionObject. It's job is to:
- Render the MapExtObj
- Listen for changes to a MapExtObj, and render those changes.
Strategies may use mapping libraries (eg. gmaps/openlayers) to render a MapExtObj. In fact, strategies should be the only place in the library where we find direct interactions with specific mapping libraries.
Constructor
aeris.maps.AbstractStrategy
Syntax
aeris.maps.AbstractStrategy
-
obj
Summary
Parameters:
-
obj
MapObjectInterfaceThe aeris object to associate with the map view.
Item Index
Properties
Methods
afterRemove_
Syntax
afterRemove_
()
protected
Summary
This method is called after this.mapView_ is set to null;
beforeRemove_
Syntax
beforeRemove_
()
protected
Summary
This method is called before our reference to this.mapView_ is set to null.
This method must be overridden to do the actual work of un-rendering the map object.
destroy
Syntax
destroy
()
Summary
Destroy the rendered map object view, and cease rendering changes to the map object.
remove
Syntax
remove
()
Summary
Remove the object view from the map view.
Properties
mapView_
Syntax
mapView_
?google.maps.Map
Summary
The map associated with this object
objectEvents_
Syntax
objectEvents_
Unknown
private
Summary
Evens to bind the map view to the object.
Binds object attribute 'change' events to strategy methods.