Class: Polygon

MobileAge.Layer.Polygon(The, options)

Map-Polygon-Component

Constructor

new Polygon(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.
Source:

Extends

Methods

(static) draw(data)

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