Fork me on GitHub
Show:

MapBox

Summary

Constructor

aeris.maps.leaflet.layers.MapBox

Syntax

aeris.maps.leaflet.layers.MapBox

()

Summary

Methods

afterRemove_

Syntax

afterRemove_

() protected

Summary

This method is called after this.mapView_ is set to null;

beforeRemove_

Syntax

beforeRemove_

() private

Summary

createView_

Syntax

createView_

() private

Summary

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:

remove

Syntax

remove

()

Summary

Remove the object view from the map view.

setMap

Syntax

setMap

()

Summary

validateMapBoxDependencyExists_

Syntax

validateMapBoxDependencyExists_

()

Summary

Usually, we would let RequireJS make sure that all of our dependencies are defined. In this case, though, we want to make MapBox.js an optional dependency. So rather than check that it exists when the Aeris.js script loads, we're going to check that it exists only when a MapBox layer is created.

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.