05-20-2015 10:13 AM
Hi
I have managed to successfully integrate the GMAP.net control with my Labview application, however, when I use the FromLocalToLatLng function to get the coordinates back, the resultant coordinates are slightly offset. Has anybody else encountered this issue?
Kind regards.
05-20-2015 08:38 PM
05-21-2015 02:03 AM
Hi Mike
Thank you for your quick responce!
I compared the coordinates I received with coordinates I got back from Google Maps for the same spot. I did a similar excercise, but used C# instead, and got the correct values (compared to Google Maps) back.
So I don't think the problem lies in the GMAP.net dll set. I'm kinda wondering about the coordinates that the mouse event is returning.
Kind regards
Werner
05-21-2015 10:48 AM
Hi werner vs1,
I would like you to give more information about how LabVIEW is getting data. Maybe you can specify more detailed information in order to understand why are you getting this offset
05-22-2015 07:05 AM
Hi Supertramp
I think I might have found a fix for this problem. I printed out the mouse coordinate in the C# app I did and found that at the top left corner of the control box, it was 0,0. I then had a look at the top left corner coordinates of the control box on the LABVIEW app, and found that it was much higher numbers for both horizontal and vertical. I created a reference of the activeX control and then subracted it's size from the mouse coordinates. The resultant coordinates now translates to the correct physical lat long coordinates.
I took some screenshots of the test point on my map and the same point on Google Maps before and after the fix.
05-22-2015 07:54 AM
That should probably be that the application is obtaining a constant value from somewhere, as yous said before, it would be like an offset in the obtained signal. Your solution was ingenious.
Thanks for sharing wernervs1.