ReportBuilder Support Forums
ReportBuilder 20.04 now available including Delphi 10.4.1 support!
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
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.
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?
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.
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
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.
edited November 2019
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.