This question is locked. New answers and comments are not allowed.
I am going to add some MapPinPoint to the RadMap, these MapPinPoint contains image and text,I would like to display the MapPinPoint text in a specific zoom, other times only display the image.I tried to control this in ZoomChanged event, but no attribute can control the Text display or not, only can set the text assignment empty
private void RadMapZoomChanged(object sender, EventArgs e)
{
if (radMap.ZoomLevel >= 13 && radMap.ZoomLevel < 22)
{
SPBack.Visibility = Visibility.Visible;
foreach (MapPinPoint point in Layer.Items)
{
point.Text = point.Tag;
}
}
else
{
SPBack.Visibility = Visibility.Collapsed;
foreach (MapPinPoint point in Layer.Items)
{
point.Text = "";
}
}
}
How should I do if to achieve this function? Is there has any better way?
private void RadMapZoomChanged(object sender, EventArgs e)
{
if (radMap.ZoomLevel >= 13 && radMap.ZoomLevel < 22)
{
SPBack.Visibility = Visibility.Visible;
foreach (MapPinPoint point in Layer.Items)
{
point.Text = point.Tag;
}
}
else
{
SPBack.Visibility = Visibility.Collapsed;
foreach (MapPinPoint point in Layer.Items)
{
point.Text = "";
}
}
}
How should I do if to achieve this function? Is there has any better way?