TppGMap

Any documentation on how to use the TppGMap component.

It's currently just displaying Map Unavailable. Can't find anything in demos.

I have put in and API key

Regards

Dave Craggs

Comments

  • Hi Dave,

    The RBuilder Help documents the components and their properties, methods, events. It is continuously updated for each release.

    Select the GMap component and press F1 to display the topic. (Or launch the help and use the index to search for TppGMap).

    From the object inspector, select a property and press F1 to display the property topic.

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • I have seen the help, but it's not very helpful!

    I have put in an api key and address and am just getting "Map Unavailable"

    There is nothing about the component in the help PDF file and no demo.

    Is there a working example anywhere I can look at?

    Regards

    Dave Craggs
  • Hi Dave,

    Which version of ReportBuilder are you using? Are you using a current Google Static Maps API Key?

    Generally if you are getting a "Map Unavailable" message, your application either does not have access to the internet or there is an issue with the API call. An incorrect API call could be caused by an outdated version of ReportBuilder or an incorrect API key.

    In my quick testing with my own API key, the GMap component is functioning correctly once the key is entered.


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Enabling the Static Maps Api worked.

    A working example would still be good!
  • Managed to get it working.

    I got exceptions using the AddMarker method.

    Plus the Markers property documentation is wrong

    You have:

    lMarker := ppGMap.Markers.Add;
    lMarker.Name := 'Grand Canyon';
    lMarker.Address := 'Grand Canyon,USA'
    lMarker.Color := clRed;
    lMarker.MarkerLabel := 'X';

    Name - is actually the component name so the above causes an exception.

    Dave
  • edited November 2019
    Hi Dave,

    You are correct, the TppMarker.Name needs to be a valid component name in order to avoid an error. I will update the help and alter the AddMarker code to avoid this for the next release. Thanks for pointing this out.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.