Fork me on GitHub
Show:

MapObjectInterface

Summary

A MapObjectInterface describes an object which has some relationship with a Map object.

Constructor

aeris.maps.MapObjectInterface

Syntax

aeris.maps.MapObjectInterface

()

Summary

Item Index

Methods

Methods

getMap

Syntax

getMap

() Map

Summary

Gets the map associtaed with the map object.

Returns:

Map:

hasMap

Syntax

hasMap

() Boolean

Summary

Returns:

Boolean:

Returns true if the layer has a map set.

setMap

Syntax

setMap

(
  • aerisMap
  • opt_options
)

Summary

Associates a map with the map object.

Setting the map to null is equivalent to removing the object from the map.

Parameters:

  • aerisMap ?Map

    The map to bind to.

  • opt_options Object=

    See Backbone.Model#set for options.

Events

map:remove

Syntax

map:remove

Summary

Triggered when a map is removed from a MapObjectInterface (ie, map was set to null).

Event Payload:

map:set

Syntax

map:set

Summary

Triggered when a map is set to a MapObjectInterface.

Event Payload: