XYToLonLat bug

Hello.

version: 2.9.6.0
XYToLonLat  returns wrong GPS coordinates.


Test:

procedure TForm1.WebGMaps1MapClick(Sender: TObject; Latitude, Longitude: Double; X, Y: Integer; Button: TMouseButton);
begin
    // correctly coordinates 
    Form1.Caption := FloatToStr(Longitude)+','+FloatToStr(Latitude);
end;

procedure TForm1.WebGMaps1MapMouseMove(Sender: TObject; Latitude, Longitude: Double; X, Y: Integer);
var
    lng, lat: double;
begin
    // wrong coordinates
    WebGMaps1.XYToLonLat(X, Y, lng, lat);
    Form1.Caption := FloatToStr(lng)+','+FloatToStr(lat);
end;

Hi,


Thank you for notifying.
This issue has been fixed and the update will be available with the next release of TMS VCL WebGMaps.