ThinkGeo.com    |     Documentation    |     Premium Support

MapView Events missing inV12

Hi,

now it’s Day 6 on upgrading from V10 to V12 and still getting ugly things.
Where are the events for MouseMove, KeyDown, KeyUp?

There control doesn’t fire … so no Coordinates will be displayed when moving the mouse, no multiple selection will be done when pressing CTRL-Key

Every event we handled in V10 is not there…

What to do?

Regards
Hardy

Thanks Hartwig,
We will add these 3 back. Also miss some others event. We will add them back.

Thanks

Frank

ok
hope it could be soon…

Regards
Hardy

Thanks Hartwig,
We have added these 3 event. To get the current coordinate
private void map_MapMouseMove(object sender, System.Windows.Input.MouseEventArgs e)
{
var currentPoint = e.GetPosition(e.Source as System.Windows.IInputElement);
PointShape worldPoint = map.ToWorldCoordinate(currentPoint);
System.Diagnostics.Trace.WriteLine(worldPoint.ToString());
}

You need get the latest V12 beta nuget package.

Thanks

Frank

Hi Frank,
I changed your code like
MapUtil.ToWorldCoordinate(theMap.CurrentExtent, New ScreenPointF(currentPoint.X, currentPoint.Y), theMap.Width, theMap.Height)

Now it’s working.
Thanks
Hardy

Thanks Hartwig,
Good to know it works. Go ahead let us know if you have any more questions.

Thanks

Frank