
void
RadMap1PanningFinished(object sender, RoutedEventArgs e)
{
// TODO: Check if center is within panning range?
}
void RadMap1ZoomChanged(object sender, EventArgs e)
{
if (this.RadMap1.ZoomLevel > 6)
this.RadMap1.ZoomLevel = 6;
if (this.RadMap1.ZoomLevel < 3)
this.RadMap1.ZoomLevel = 3;
}
Please let me know. Thanks
6 Answers, 1 is accepted
Unfortunately, there is no other way to limit zooming and panning in the current version of the RadMap control. This feature is planned for the future releases.
Best wishes,
Andrey Murzov
the Telerik team

thanks,
Unfortunately these features aren't highly demanded and will not be included to the 2010.Q3 release. You can check its availability using our PITS:
http://www.telerik.com/support/pits.aspx#/public/silverlight/3713
Kind regards,
Andrey Murzov
the Telerik team

but now my problem is only with the zoom slider that it is longer than my range.
will it be fixed in the next releases ?
Yes, it will be fixed, but I am afraid, not in the 2010.Q3 release. You can check its availability using our PITS:
http://www.telerik.com/support/pits.aspx#/public/silverlight/3713
Best wishes,
Andrey Murzov
the Telerik team

public
class CustomMapZoomBar : MapZoomBar
{
public bool isTemplateUpdated;
public override void OnApplyTemplate()
{
if (!this.isTemplateUpdated)
{
this.isTemplateUpdated = true;
var slider = this.GetTemplateChild("PART_ZoomSlider") as RadSlider;
if (slider != null)
{
//slider.TickFrequency = 0.5;
slider.Minimum = 2;
slider.Maximum = 4;
}
var btnZoom = this.GetTemplateChild("PART_MapNavigationDropDown") as RadDropDownButton;
if(btnZoom != null)
{
btnZoom.ClickMode =
ClickMode.Press;
}
}
base.OnApplyTemplate();
}
}