LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Rendering the map with coordinates

Hi,
can you map google maps in labWindows and watch for example the movement of a vehicle using GPS coordinates in real time?

Can I find an example or source code somewhere? Or is there a library for that?

I did not find this option in ActiveX and I do not know whether it goes somehow through bitmap.

Thank you for your help.
0 Kudos
Message 1 of 5
(2,361 Views)

May not be the best solution but, you can use the Internet Explorer activeX control and set the URL such that Google maps gives you a map centered around the coordinate you provide. See the Maps URL API for details. 

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 5
(2,353 Views)
Yes, thank you for the answer, this is exactly what I did, but there was a problem when new information came up, the page is still updating and I need smooth running of the vehicle, without updating. (Or at least not to affect clarity.)
 
Fmt(mapa, "%s%f%s%f%s", "https://www.google.com/maps/@",latitude,",",longitude,",861m/data=!3m1!1e3"); 
INET_IWebBrowser2Navigate (webHandle, NULL, mapa, CA_DEFAULT_VAL, CA_DEFAULT_VAL, CA_DEFAULT_VAL, CA_DEFAULT_VAL);
//Install event handler for navigate complete event from web browser
INET_DWebBrwsrEvnts2RegOnNavigateComplete2 (webHandle,NavigateComplete, NULL, 1,NULL);
The geographic location is rendered here, but as the "longitude" and "latitude" changes, the whole page will be updated and this will be unclear.
There is also a fixed internet explorer there and there is also a compatibility issue.
 
0 Kudos
Message 3 of 5
(2,340 Views)

How about creating a new page with JavaScript in it. 

https://developers.google.com/maps/documentation/javascript/adding-a-google-map

 

I am no JS expert, but possibly you can read the lat and long from a file and thus change the map view without reloading the whole page.

You just need to write the latest lat long values to a common file.

 

I recommended using a file because I don't know any other way to modify the JS variable with external data.

S. Eren BALCI
IMESTEK
0 Kudos
Message 4 of 5
(2,332 Views)
Thank you, that might work, but I don't know how to implement this line of code into labWindows.
I don't understand JavaScript.
 
Unfortunately, I didn't find anything like that to work with it to have an example of what to do.
 
Here, someone was dealing with it through the Google Earth library, but I didn't see any result and CVI doesn't contain it.
 
I haven't found any other source code.
0 Kudos
Message 5 of 5
(2,322 Views)