Calling Polylines.Clear does not remove the Polylines from the Map like Markers.Clear removes the Markers. Is this a bug or is there another way to remove the Polylines?
Not sure if Google supports labeling Polylines (and Polygons) like the Markers but if so please add that to the wish list. I saw there is a field DisplayName but that doesn't seem to show anything on the map?
Hi,
- You can call DeleteMapPolyline or DeleteAllMapPolyline to remove one or all Polylines from the map.
Example:
WebGMaps1.DeleteMapPolyline(Index);
WebGMaps1.DeleteAllMapPolyline;
- Unfortunately it's currently not supported to label a Polyline or Polygon.
As an alternative you might try adding a Marker with an empty icon and a MapLabel.Text at the position of where you want to have a label appear with your Polyline.
That works, sorry I didn't try that, I was just expecting similar calls between Markers and Polylines.
That's a good idea for the Label, will definitely use that for now.
Thanks for such a quick response to all my questions!