Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TMS VCL WebGMaps
Working with Polylines
Working with Polylines
Adding a polyline:
var PolylineItem: TPolylineItem; begin PolylineItem := WebGMaps1.Polygons.Add; PolylineItem.Polyline.Width := 2; PolylineItem.Polyline.Path.Add(50, 2); PolylineItem.Polyline.Path.Add(52, 4); PolylineItem.Polyline.Path.Add(50, 4); WebGMaps1.CreateMapPolyline(PolylineItem.Polyline); end;
PolylineItem.Polyline.Visible := not PolylineItem.Polyline.Visible; WebGMaps1.UpdateMapPolyline(PolylineItem.Polyline);
//Removes the Polyline from the map WebGMaps1.DeleteMapPolyline(PolylineItem.Index); //Removes the Polyline from the collection WebGMaps1.Polylines.Delete(PolylineItem.Index);