Freecing the map

Topics: WPF
May 29, 2013 at 10: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?
Coordinator
May 29, 2013 at 10:50 AM
add property CanZoomMap, and set it to false ;}
May 31, 2013 at 1:06 PM
How do you add a property? Do i have to build my own version og GMap.NET?

Jon Anders


Coordinator
May 31, 2013 at 1:07 PM
yes, isn't it scary ;D
May 31, 2013 at 1: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;


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


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

Jon Anders


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