Fork me on GitHub
Show:

InfoBox

Summary

Representation of an Info Box.

Constructor

aeris.maps.InfoBox

Syntax

aeris.maps.InfoBox

()

Summary

Methods

createStrategy_

Syntax

createStrategy_

(
  • Strategy
)
AbstractStrategy protected

Summary

Create a {aeris.maps.AbstractStrategy} instance.

Override to adjust how strategy objects are instantiated.

Parameters:

  • Strategy Function

    AbstractStrategy object ctor.

Returns:

getView

Syntax

getView

() *

Summary

Returns the object view, as rendered by the object's strategy.

Returns:

*:

hasMap

Syntax

hasMap

() Boolean

Summary

Returns:

Boolean:

Returns true if the layer has a map set.

removeStrategy

Syntax

removeStrategy

()

Summary

Remove and clean up the StrategyObject's strategy.

resetStrategy

Syntax

resetStrategy

()

Summary

Reset the rendering strategy used by the object. Useful for re-enabled a strategy which has previously been removed with StrategyObject#removeStrategy

setContent

Syntax

setContent

(
  • content
)

Summary

Set the HTML content of the InfoBox

Parameters:

setPosition

Syntax

setPosition

(
  • position
)

Summary

Set the lat/lon location of the InfoBox on the map.

Parameters:

setStrategy

Syntax

setStrategy

(
  • Strategy
)

Summary

Set the strategy to use for rendering the StrategyObject.

Parameters:

  • Strategy Function

    Constructor for an {aeris.maps.AbstractStrategy} object.

validate

Syntax

validate

()

Summary

Properties

strategy_

Syntax

strategy_

aeris.maps.Strategy Strategy constructor.

Summary

Default {aeris.Strategy} implementation

StrategyType_

Syntax

StrategyType_

function():aeris.maps.AbstractStrategy private

Summary

Attributes

content

string

The HTML content to display in the info box.

map

Map protected

An AerisMap that the object is bound to. This is set with setMap.

position

LatLon

The lat/lon position to place the info box.

Events

strategy:set

Syntax

strategy:set

Summary

When a strategy is set on the object.

Event Payload: