Page 1 of 1

Google Maps on Desktop Application

Posted: Tue Mar 26, 2013 12:29 am
by Nakia
Hi,

Can someone possibly explain what the best way to complete the following is within a Desktop Application (Building first Desktop App, only done Mobile in the past)

1: Open up Google Maps with the Application and let the user navigate to a point (abilit to search would be great but not needed)
2: Let the user drop a "Pin" at that point then get the browser to export the coordinates of that Pin to a Variable
(this variable will then be placed into a file and sent to my Mobile App)

Any advice offered would be fantastic and greately appreciated!!

Re: Google Maps on Desktop Application

Posted: Tue Mar 26, 2013 12:43 am
by Simon
Hi Nakia,
Have you looked at revBrowser? There is an example stack under Help.
It's a web browser so it will act just like using any other browser (you can search the website).

Simon

Re: Google Maps on Desktop Application

Posted: Tue Mar 26, 2013 3:01 am
by Nakia
Thanks Simon, yet to do too much with Desktop Applications so very "green"..

Seeing it is a WebBrowser as sych how would I retreieve the lat and long of the pin I drop?

Re: Google Maps on Desktop Application

Posted: Tue Mar 26, 2013 3:04 am
by sturgis
You can pull stuff out of the revbrowser instance using javascript. Look at revBrowserExecuteScript in the dictionary.

Re: Google Maps on Desktop Application

Posted: Tue Mar 26, 2013 4:01 am
by Simon
Don't forget to look up Google Maps APIs.
Just in-case you don't want to use a browser object.

Simon

Re: Google Maps on Desktop Application

Posted: Tue Mar 26, 2013 7:23 am
by Nakia
Found a great test stack made by Dixie quite some time ago which has helped a lot :D
Just trying to find out now the options to enable the ability to drop pins and subsequently fetch the Lat & Long