EtheaDev / DelphiGoogleMap

Delphi WebView2 Component to View Google Map with Routing and Markers Support
Apache License 2.0
80 stars 22 forks source link

read values ​​from queries #8

Closed tbegsr closed 1 year ago

tbegsr commented 2 years ago

I have a question. Is it possible to read values ​​from queries. I need the coordinates from an adress codeAddress(address) and and the json object for the direction

carloBarazzetta commented 2 years ago

I don't know.

carloBarazzetta commented 1 year ago

I've added more help into readme.md, I hope to help you: if you can do your job via javascript it's quite simple to add to the Delphi component, as explained.

spedroas commented 9 months ago

Good morning, here in Brazil. Please, could you help me with the following situation... I installed and compiled the component, but when executing the code, the attached message appears. Both for the main form and the second form. I am not able to view the HTML file and where you can see it being executed by Delphi 11.

Não carrega a página Não carrega a página_FormMain
carloBarazzetta commented 9 months ago

it seems that you never acquire the Google API key to activate the navigation, as explained in readme file.

spedroas commented 9 months ago

Thanks for the answer. But I activated the API Key and the message appears when trying to display the map in EdgeGoogleMapViewer.

carloBarazzetta commented 9 months ago

Try to test your API KEY calling this URL: https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=XXXXXXXXXXXXXXXXXXXXXXXXXX

To see the HTML file produced, you can place a breakpoint into TEdgeGoogleMapViewer.ShowMap here; try NavigateToURL('file:///'+LFileName); finally MapIsBusy := False; end; so you can see the name of temporary file and look inside, if there are some problems: open it in your browser activating the debug tools...