LineString
Definition
LineString
is a component for drawing an open, continuous sequence of lines on a Map
. To add new points to a LineString
in the designer, drag the midpoint of any segment away from the line to introduce a new vertex. Move a vertex by clicking and dragging the vertex to a new location. Clicking on a vertex will delete the vertex, unless only two remain.
Properties
- Description
- Sets or gets the description displayed in the info window. The info window appears when the user taps on the
LineString
. - Draggable
- Sets or gets whether or not the user can drag a map feature. This feature is accessed by long-pressing and then dragging the
LineString
to a new location. - EnableInfobox
- Enables or disables the infobox window display when the user taps the
LineString
. - Points
- The list of points, as pairs of latitudes and longitudes, in the
LineString
. - PointsFromString
- Set the points of the LineString from a specially-coded character string of the form: [[latitude1, longitude1], [latitude2, longitude2], …]
- StrokeColor
- Sets or gets the color used to outline the
LineString
. - StrokeOpacity
- Sets or gets the opacity of the outline of the
LineString
. A value of 0.0 will be invisible and a value of 1.0 will be opaque. - StrokeWidth
- Sets or gets the width of the stroke used to outline the
LineString
. - Title
- Sets or gets the title displayed in the info window that appears when the user clicks on the map feature.
- Type
- Returns the type of the map feature. For LineString, this returns MapFeature.LineString (“LineString”).
- Visible
- Specifies whether the
LineString
should be visible on the screen. Value istrue
if theLineString
is showing andfalse
if hidden.