Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add a Google map to an application
Message
 
To
15/09/2008 23:19:05
Victor Chigne
Inteliventas
Peru
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01345639
Message ID:
01347809
Views:
33
It sounds like you will need to implement ajax to make this work. It is doable, but welcome to javascript debugging....

>I know how to deal with polilynes, it's the interaction part with VFP what made me took the other approach.
>If I'm understanting your post, your claim is that I can communicate to and from a explorer window containing a google map like II'd do with an Activex?
>
>Let me describe a typical scenario from my application:
>
>The program reads points from a table and fills the map wih customer's sites.
>The user draws a polilyne around some part of the map.
>Once the polyline is closed the activex returns whose points are inside the polyline so the program can list them in a grid.
>Also, while the mouse pointer is moving around the map, a textbox on my form shows the actual lat and long of the mouse position, and if we are within 100 ft of a customer, shows the customer's details.
>
>This requires a double way interaction in real time.
>
>Can web connection handle this? AFAICS gmaps uses javascript to interact with the map. Does it expose objects? Can web connection manipulate those objects in real time and both ways from VFP as javascript can do in the browser?
>
>TIA
>
>>
>>If you use web connection, this shouldn't be too difficult. There are samples on dealing with polylines on the google site. I've downloaded some, but haven't had a chance to do anything with them. It is certainly doable.
>
>>>Hello John.
>>>
>>>Great code. Six months ago I was involved in a project which dealt with maps. I used Mapwindow, a free mapping activex similar to Mapx to do the project. For that I had to encapsulate the OCX into a VB6 activex in order to VFP to read it.
>>>
>>>Now, looking at Google maps my project could have been a lot more easier because the user shouldn't have to look for maps in SHP format. But when I tried the gmaps approach I couldn't interact with the map, I mean your code is great to show some points in the map, but how could you let the user pick a location in the map and return it to your VFP program to store in the clients table? How could I draw a polyline on the map and store it in my application? Have you faced this need and solve it? Please let me know.
>>>
>>
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform