Fork me on GitHub
Show:

MapStrategy

Summary

A strategy for rendering an OpenLayers map.

Constructor

aeris.maps.openlayers.MapStrategy

Syntax

aeris.maps.openlayers.MapStrategy

(
  • mapObject
)

Summary

Parameters:

  • mapObject Map

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.

createView_

Syntax

createView_

() Object protected

Summary

Create a view instance.

Returns:

Object:

View instance.

destroy

Syntax

destroy

()

Summary

Destroy the rendered map object view, and cease rendering changes to the map object.

getView

Syntax

getView

() ?Object

Summary

Return the view instance created by the map-rendering API.

Returns:

?Object:

proxyLoadEvent_

Syntax

proxyLoadEvent_

() private

Summary

Triggers the 'load' even on the map object when the OL Map view has finished loading.

remove

Syntax

remove

()

Summary

Remove the object view from the map view.

setCenter_

Syntax

setCenter_

() private

Summary

setMap

Syntax

setMap

(
  • aerisMap
)

Summary

Render an object on a map.

Parameters:

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.

view_

Syntax

view_

Object

Summary

The view instance created by the map rendering API.