WebOSMaps.GetMapBounds() always returns FALSE although the bounds are retrieved correctly.
This does not work:
if WebOSMaps.GetMapBounds then
begin
OSMapCenter.Longitude := (OSMapBounds.SouthWest.Longitude + OSMapBounds.NorthEast.Longitude) / 2;
OSMapCenter.Latitude := (OSMapBounds.SouthWest.Latitude + OSMapBounds.NorthEast.Latitude) / 2;
end;
begin
OSMapCenter.Longitude := (OSMapBounds.SouthWest.Longitude + OSMapBounds.NorthEast.Longitude) / 2;
OSMapCenter.Latitude := (OSMapBounds.SouthWest.Latitude + OSMapBounds.NorthEast.Latitude) / 2;
end;