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.
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.
Comments
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 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
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
A working example would still be good!
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
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com