Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing gps coordinates from google maps into vfp table
Message
De
19/12/2015 12:18:21
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
19/12/2015 11:32:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01629101
Message ID:
01629139
Vues:
270
>>>>I build google map from vfp, added markers from vfp table, address searching etc. Also, I managed to read gps coordinates on right click. Is it possible to that coordinates insert into vfp table?
>>>>
>>>>Thanks in advance.
>>>
>>>As Tore suggested store the Lat and Lon in two table fields. In the Google Map API you would normally add a listener to the 'rightclick' event and read event.latLng.lat() and event.latLng.lng(). Don't know how you'd pass that to VFP tho......
>>
>>You can always override the browser object's .rightclick() event and then see what's available. The oBrowser.Document would have its DOM exposed, and I guess all variables should be exposed in some way - as properties perhaps. Debugger and intellisense would help to see what can be stolen from there.
>
>Actually, re-reading the OP it seems that Zoran has already managed to obtain the cords. But I don't know if he his using the Google Maps page directly or has his own HTML page with Google Maps javascript API

In either case, there's an interesting property of these maps, that the URL contains the coordinates of the center after every motion. So perhaps just stealing the oBrowser.Document.location may suffice.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform