LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Google Static Maps display with LabVIEW

Hi,
I have made a VI that displays the map based on Google Static Maps. For testing, I give random LAT and LON to display the location on front panel. 
Issue is, whenever I try to change the coordiantes via a numeric control, the display either takes too much time to load and most of the times it shows half of the display. I tried putting a delay inside while loop but it does the same; shows me half image.

The Google Static maps work a URL script that has a specific format provided my Google. The format can be viewed here: https://developers.google.com/maps/documentation/staticmaps/

 

I have also attached a VI. A little asistance is needed in how I could either change my code in a such a way that i uses less memory and takes very less time to load.

Thank you.


0 Kudos
Message 1 of 8
(6,499 Views)

You are reloading the page every 2 seconds, even if nothing should change.

 

I suggest you use an event structure to update the map only when needed.

Map.png

 

- I see that the snippet tool does not show the events that trigger the case. They should be value changes of either Latitude, Longitude, Zoom or MapType.

Attaching my VI does not seem to work either, I get an error saying that "The contents of the attachment doesn't match its file type."

Spoiler
Smiley Frustrated

 

Message 2 of 8
(6,483 Views)

Dear Pianne,
Could you forward me this VI please?

Regards.


0 Kudos
Message 3 of 8
(6,471 Views)

Here it is as a zip file.

It is made in LV 2012.

0 Kudos
Message 4 of 8
(6,464 Views)

Pianne wrote:

- I see that the snippet tool does not show the events that trigger the case. They should be value changes of either Latitude, Longitude, Zoom or MapType.

Attaching my VI does not seem to work either, I get an error saying that "The contents of the attachment doesn't match its file type."

Spoiler
Smiley Frustrated

 


 

Hi Pianne,

have you tried to uploade a .zip file containing your .vi?!

 

 

-----

 

 

- sorry, my reply came to late

 

 

Regards,
Alex

 

Message 5 of 8
(6,455 Views)

Hi Pianne,

Your suggestion actualy worked. Thanks a miles !

Regards.


0 Kudos
Message 6 of 8
(6,383 Views)

Hi Team

 

I am looking for offline maps solution ? 

would you please do let me known how can i use offline map!

 

Best Regard

 

Luong.Tran

0 Kudos
Message 7 of 8
(6,259 Views)

This Fourm post is quite old. I recommend posting a new topic on the forums so that more users have the opportunity to help you with your question. There is no maps solution provided by NI but using the .NET tools and libraries available online you could create your own map tools. 

Alex D
Systems Engineer
Academic Research
National Instruments
0 Kudos
Message 8 of 8
(6,227 Views)