Fork me on GitHub
Show:

AerisPolygonsStrategy

Summary

Constructor

aeris.maps.gmaps.layers.AerisPolygonsStrategy

Syntax

aeris.maps.gmaps.layers.AerisPolygonsStrategy

()

Summary

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.<number,Polygon>

Summary

Returns:

Object.<number,Polygon>:

As { [groupNumber]: [gPolygon view], ...}.

destroy

Syntax

destroy

()

Summary

getUrl_

Syntax

getUrl_

() String

Summary

Returns:

String:

The url endpoint for grabbing Aeris polygon data.

getView

Syntax

getView

() ?Object

Summary

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

Returns:

?Object:

parseGroupPaths_

Syntax

parseGroupPaths_

(
  • group
)
Array.<LatLng> private

Summary

Converts a 'group' object from the Aeris Polygons API into an array of polylines.

Parameters:

Returns:

refreshMap_

Syntax

refreshMap_

() private

Summary

Ensures that all polygons are set to the maps.

remove

Syntax

remove

()

Summary

Remove the object view from the map view.

setMap

Syntax

setMap

()

Summary

updateStyles_

Syntax

updateStyles_

() private

Summary

Update view styles to match layer view-data.

Properties

googleEvents_

Syntax

googleEvents_

aeris.maps.gmaps.GoogleEvents protected

Summary

Helper for binding google.maps.event events.

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.