Freecing the map

Topics: WPF
May 29, 2013 at 11:41 AM
Hi, I am trying to freece the map. I tried to set gMap.IsEnabled = false, but this leads to that my marker's tooltips cannot be shown, probably because the markers also are disabled.

Therefore I used gMap.CanDragMap = false. How can i disable all Zooming done by the user, like MouseWheelZoom?
May 29, 2013 at 11:50 AM
add property CanZoomMap, and set it to false ;}
May 31, 2013 at 2:06 PM
How do you add a property? Do i have to build my own version og GMap.NET?

Jon Anders

May 31, 2013 at 2:07 PM
yes, isn't it scary ;D
May 31, 2013 at 2:15 PM
Nice. I am a noob so...

Where can I put the attribute. Is it enough to put it here?

/// <summary>
/// can user drag map
/// </summary>
public bool CanDragMap = true;

/// <summary>
/// can user zoom map
/// </summary>
public bool CanZoomMap = true;

May 31, 2013 at 2:17 PM
thats a start, add checking in zoom function
May 31, 2013 at 2:21 PM
Nice. I put it in GoToCurrentPositionOnZoom(). Hopes thats enough

May 31, 2013 at 3:24 PM
I put it in OnMouseWheel. That did the job. Many thanks :)

Jon Anders

May 31, 2013 at 3:27 PM
you did it yourself, cheers for that! ;}