Basically, I want to get three sets of directionsand display one of them depending on user selection.
I think that GetDirections() will overwrite any previous result, so I have an array of TDirections. I make 3 times
myMap.GetDirections();
myDirections := myMap.Directions;
and the 3 entries of myMap are identical, porbably because I cam just assigning a pointer. How can I make a "deep copy" every time?
Since TDirections = class(TCollection) does TCollection offer a mechanism?
Did you try something like:
uses
UWebGMapsDirections;
var
dir: TDirections;
begin
dir := TDirections.Create(nil);
try
dir.Assign(webgmaps1.Directions);
finally
dir.Free;
end;
end;
Bruno confirmd to me privately, that a bug has been fixed, so this should work now (I can't say if it does, as I coded my own workaround whil waiting)