LineString
LineString is a component for drawing an open, continuous sequence of lines on a Map. To add new points to a LineString, 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.
The description displayed in the info window that appears when the user clicks on the map feature.
Sets or gets whether or not the user can drag a line string by long-pressing and then dragging it to a new location.
Enable or disable the infobox window display when the user taps the feature.
The list of points, as pairs of latitudes and longitudes, in the LineString.
A GeoJSON-encoded string of points to populate the LineString. Editing the LineString in the designer will update this property.
The paint color used to outline the map feature.
The width of the stroke used to outline the map feature.
The title displayed in the info window that appears when the user clicks on the map feature.
Gets the type of the feature. For LineString, this will always be "LineString".
Specifies whether the component should be visible on the screen. Value is true if the component is showing and false if hidden.
Runs when the user taps on or very close to the line string.
Runs during a drag operation.
Runs after the user long clicks on the line string but does not trigger a drag (within a given threshold).
Runs immediately after the user begins a drag operation but before any Drag events.
Runs after the user releases the LineString from a Drag operation.
Computes the distance between the LineString and the given mapFeature. If centroids is true, the computation is done between the centroids of the two features. If false, the distance will be computed between the two features based on the closests points. If the linestring intersects the mapFeature, this method will return 0. If an error occurs, -1 will be returned.
Computes the distance between the LineString and the given latitude and longitude. If centroids is true, the computation is done between the weighted midpoint of the LineString to the point. If false, the distance is computed from the closest point on the LineString to the point. If the point is on the LineString, this method will return 0. If an error occurs -1 will be returned.
Hides the line string's info box if it is visible. Otherwise, this method has no effect.
Shows the info box for the line string if it is not visible. Otherwise, this method has no effect. This method can be used to show the info box even if EnableInfobox is false.
Last modified 4yr ago