Fork me on GitHub
Show:

Polyline

Extends aeris.maps.MapExtensionObject

Summary

A polyline is an array of latLon coordinates renders as a line on the map.

Constructor

aeris.maps.polylines.Polyline

Syntax

aeris.maps.polylines.Polyline

()

Summary

Methods

getLatLonFromEvent

Syntax

getLatLonFromEvent

(
  • evt
  • map
)
LatLon

Summary

Parameters:

  • evt Object

    OpenLayers event object.

  • map Map

Returns:

LatLon:

Simple lat/lon array.

hasPath

Syntax

hasPath

() Bolean

Summary

Returns:

setPath

Syntax

setPath

(
  • path
)

Summary

Parameters:

setStrokeColor

Syntax

setStrokeColor

(
  • color
)

Summary

Parameters:

setStrokeOpacity

Syntax

setStrokeOpacity

(
  • opacity
)

Summary

Parameters:

setStrokeWeight

Syntax

setStrokeWeight

(
  • weight
)

Summary

Parameters:

setStyles

Syntax

setStyles

(
  • styles
)

Summary

Set style attributes on the polyline.

Parameters:

validate

Syntax

validate

()

Summary

validateIsStylesAttrs_

Syntax

validateIsStylesAttrs_

(
  • styles
)
private

Summary

Validate that styles object contains only style attributes.

Parameters:

Attributes

path

Path

An array of latLon coordinates

strokeColor

string

The color of the rendered path.

strokeOpacity

number Between 0 and 1.0.

The opacity of the rendered path.

strokeWeight

number

The width of the rendered path, in pixels.

Events

click

Syntax

click

Summary

Event Payload: