08-28-2013 12:24 AM
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.
08-28-2013 02:29 AM
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.
- 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."
08-28-2013 04:00 AM
Dear Pianne,
Could you forward me this VI please?
Regards.
08-28-2013 04:20 AM
Here it is as a zip file.
It is made in LV 2012.
08-28-2013 04:36 AM - edited 08-28-2013 04:37 AM
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."
Hi Pianne,
have you tried to uploade a .zip file containing your .vi?!
-----
- sorry, my reply came to late
Regards,
Alex
08-28-2013 11:40 PM
Hi Pianne,
Your suggestion actualy worked. Thanks a miles !
Regards.
12-07-2013 03:06 AM
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
12-09-2013 10:35 AM
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.