Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

problem with LocationAPIKey

 Post Reply Post Reply
Terebizh Alexander View Drop Down
New Member
New Member

Joined: 01 Jan 2015
Posts: 7
Post Options Post Options   Quote Terebizh Alexander Quote  Post ReplyReply Direct Link To This Post Topic: problem with LocationAPIKey
    Posted: 25 Feb 2019 at 11:27am
LocationAPIKey not published and I can't set value to ti in design time and ALWAYS got exception when object created with DefaultToCurrentLocation=true

unit FMX.TMSWebGMaps, line 3704:

    if LocationAPIKey = '' then
      raise Exception.Create('Missing LocationAPIKey');

Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support

Joined: 18 May 2010
Posts: 2184
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 25 Feb 2019 at 11:41am

Please note that the LocationAPIKey is required when DefaultToCurrentLocation is True.
Here's an example of you how you can set the LocationAPIKey programmatically:

  TMSFMXWebGMaps1.APIKey := 'abc123';
  TMSFMXWebGMaps1.LocationAPIKey := 'xyz987';
  TMSFMXWebGMaps1.MapOptions.DefaultToCurrentLocation := True;
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down