Markers show up on wrong position

Aug 4, 2010 at 8:11 AM


First of all, thank you for this fantastic work!!!

I got a Windows Forms application, where I show various markers on the map.
My idea was to enable some markers only above a certain zoom level, and enable those markers toolips on a higher zoom level.

I tried to do this:

        private void gMapControl_OnMapZoomChanged()
        {
            // We need to hide/show the overlay based upon the zoom level
            stationOverlay.IsVisibile = gMapControl.Zoom >= 12 ? true : false;

foreach (GMapMarker marker in stationOverlay.Markers) { if (gMapControl.Zoom >= 14) marker.ToolTipMode = MarkerTooltipMode.Always; else marker.ToolTipMode = MarkerTooltipMode.OnMouseOver; } }

It works, BUT when I changing zoom level from 11 to 12 (so it will coming up visible first time), the markers show up in the wrong place, a few km-s east from the correct position.
When switching to higher zoom levels, the markers show on the right place, and when switching back to level 12, its right, switch to 11, they are disappear as intended, BUT, when 
switching to 12 again, its wrong (again, few kms east from the right place)....

Any idea?

Thanks in advance,

Rico
 

Coordinator
Aug 4, 2010 at 5:50 PM
hey, whats the type of map?
Aug 5, 2010 at 6:53 AM

Hey radioman, it's google maps, but I downloaded the source code and it seems, the last version does fixes this bug.
Other question, it's possible to show some blinking markers? Any ideas how to achieve that?

Thank you for your excellent job!

 

Regards,

Rico

Coordinator
Aug 5, 2010 at 2:31 PM

hm.. it seems that bug is only in Windows Forms version, i'll track it down next week