I am displaying marker info windows using the openMarkerInfoWindowHtml function. Trying to automatically open all the markers InfoWindows (at once) upon launching the map.
The issue I am having is that it doesn't "always" work. I first launch the map and call it. The InfoWindows are displayed. I can then close the infoWindows, so far so good.
Later, I may close the form with my WebGMap and reopen/relaunch it, it may or may not show the infoWindows.
Can't make any sense of this. Sometimes it does work, sometimes it doesn't.
All other functionalities work as expected, just not the openMarkerInfoWindowHtml which seems to have a mind of its own.
<DELPHI>
procedure TMapTMS.ExpandAllCallouts;
var
i: Integer;
Marker: TMarker;
begin
with WebGMaps1 do
begin
for i := 0 to Markers.Count - 1 do
begin
Marker := Markers;
openMarkerInfoWindowHtml(Marker.ID, '<B>Test' + IntToStr(i)+ '</B>);
end;
end;
end;
</DELPHI>
At the end of my rope here, do you have any suggestion?