How to return to the map after viewing the Google's Terms Of Use

If the user hits the Terms Of Use link on a TTMSFNCGoogleMaps map, the Terms Of Use is displayed. How do I (or the user of the app) restore the map?


You can reload the map using TMSFNCGoogleMaps1.ReInitialize;
But you can also block navigation to the Terms Of Use, via the OnBeforeNavigate. You could even intercept the URL and open it in a separate browser window.

procedure TForm4.DoBeforeNavigate(Sender: TObject;
  var Params: TTMSFNCCustomWebBrowserBeforeNavigateParams);
  Params.Cancel := True;

Thanks Pieter. :slight_smile:

1 Like