Unfortunately the map control does not have API for navigation commands.
You can use available API for custom navigation buttons to change center of map or you can fire appropriate KeyDown events which will be processed by map control.
The sample code is below.
Point adjustmentFactor = newPoint(this.ActualWidth / 3, this.ActualHeight / 3);
Point pixelCenter = Location.LogicalToPixel(this.radMap, this.radMap.SpatialReference.GeographicToLogical(this.radMap.Center));
switch(key)
{
caseKey.Left:
pixelCenter.X -= adjustmentFactor.X;
break;
caseKey.Right:
pixelCenter.X += adjustmentFactor.X;
break;
caseKey.Up:
pixelCenter.Y -= adjustmentFactor.Y;
break;
caseKey.Down:
pixelCenter.Y += adjustmentFactor.Y;
break;
}
returnpixelCenter;
}
All the best,
Andrey Murzov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!