Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TMS FMX WebGMaps
Detecting an action that will navigate away from the map on Android or iOS

By using the OnBeforeNavigate event it''s possible to detect an action that will navigate away from the map on Android or iOS. If required the action can also be cancelled. Example:
procedure TForm1.TMSFMXWebGMaps1BeforeNavigate(Sender: TObject;
  var Params: TTMSFMXWebGMapsCustomWebBrowserBeforeNavigateParams);
begin
  if Params.URL = ''https://www.google.com'' then
    Params.Cancel := true;
end;