Class: Path

MobileAge.Layer.Path(The, options)

Map-Path-Component

Constructor

new Path(The, options)

Class representing a single Map component.
Parameters:
Name Type Description
The Object map to add this layer to
options Object
Properties
Name Type Attributes Default Description
color String <optional>
'red' Stroke color
weight Number <optional>
3 Stroke width in pixels
opacity Number <optional>
1.0 Stroke opacity
lineCap String <optional>
'round' Defines shape to be used at the end of the stroke.
lineJoin String <optional>
'round' Defines shape to be used at the corners of the stroke.
dashArray String <optional>
null Defines the stroke dash pattern. Doesn't work on Canvas-powered layers in some old browsers.
dashOffset String <optional>
null Defines the distance into the dash pattern to start the dash. Doesn't work on Canvas-powered layers in some old browsers.
startIconUrl String <optional>
'' URI of the image used as marker for the starting point.
startIconWidth Number <optional>
57 Width of the image.
startIconHeight Number <optional>
57 Height of the image.
startIconAlt String <optional>
'Route start marker' Alternative text for marker.
endIconUrl String <optional>
"" URI of the image used as marker for the ending point.
endIconWidth Number <optional>
57 Width of the image.
endIconHeight Number <optional>
57 Height of the image.
endIconAlt String <optional>
'Route end marker' Alternative text for marker.
Source:

Extends

Methods

(static) _addMarkers(latlngs)

Adds markers for start- and endpoints
Parameters:
Name Type Description
latlngs array array of path coordinates
Source:

(static) draw(data)

Draws a layer of paths of given data to the map
Parameters:
Name Type Description
data object requested data
Source:

(static) remove()

Removes this layer of paths
Source: