Overlay
A JSON object for a Snapshot URL that describes overlay shape characteristics, including points for the overlay and styles such as width, color, and dash pattern.
Declaration
object OverlayProperties
| Name | Type | Description |
|---|---|---|
type | string | An optional property that specifies the type of overlay shape to render. Default: Options: |
points | ([string] | string) | An array of coordinates, specified as latitude and longitude coordinate pairs, or as a string encoded with the Encoded Polyline Algorithm Format. The array format specifies points for a polyline overlay. The following example specifies two points for a polyline overlay as an array of latitude and longitude coordinate pairs: You can provide those same parameters in encoded polyline algorithm format: |
center | string | The coordinate of the circle’s center. |
radius | number | The circle’s radius in meters. |
strokeColor | string | The color of the line between each coordinate point. Supported values are HTML color names or hexadecimal color codes. |
lineWidth | integer | The width of the line, in CSS pixels. |
lineDash | [integer] | An array that defines a line’s dash pattern, where numbers represent line and gap lengths in CSS pixels. For example, |
fillColor | string | The object’s fill color. |
fillOpacity | number | The opacity value used for filling the object. |
fillRule | string | The rule used to determine the inside of the polygon. |
lineCap | string | The style used for line end points. Default: Options: |
lineDashOffset | integer | The line dash offset. |
lineGradient | Overlay.LineGradient | An object that determines color stops for the gradient, positioned by offsets between 0 and 1. |
lineGradientIndexes | Overlay.LineGradientIndexes | An object that determines where the color stops for the gradient. This property uses indexes of points on the polyline. |
lineJoin | string | The style used for joins between line segments. Default: Options: |
strokeOpacity | number | The opacity value for stroking. |
styleIdx | integer | The index number used to reference an |