This is a migrated thread and some comments may be shown as answers.
InformationLayer items visible is not correct
1 Answer 38 Views
Map
This is a migrated thread and some comments may be shown as answers.
Pavel Ruslanovich Kovyev
Top achievements
Rank 1
Pavel Ruslanovich Kovyev asked on 25 Jun 2010, 07:40 AM
Добрый день.
У меня находится kml-файл в InformationLayer. Я программно меняю толщину StrokeThickness у MapPolygon и MapPolyline. Но на карте ничего не меняется пока я не увеличу или не уменьшу зум карты. В чем может быть проблема?

Good afternoon.
My kml-file is in InformationLayer. I programmatically varying thickness StrokeThickness at MapPolygon and MapPolyline. But it in map did not change while I'm not increase or decrease zoom the map. In what may be the problem?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 25 Jun 2010, 04:36 PM
Hi Pavel Ruslanovich Kovyev,

It is a known Silverlight bug when changing StrokeThickness on some Shapes do not refresh them.
http://forums.silverlight.net/forums/p/99221/294703.aspx
We will fix this bug for map shapes in the future releases. You can check it will be available using our PITS system:
http://www.telerik.com/support/pits.aspx#/public/silverlight/2548
Currently as workaround you can call the InvalidateArrange method of the information layer. The example SetThickness method is the following:
private void SetThickness(double thickness)
{
    foreach (object item in this.informationLayer.Items)
    {
        MapPolyline polyline = item as MapPolyline;
        if (polyline != null)
        {
            polyline.StrokeThickness = thickness;
        }
    }

    
this.informationLayer.InvalidateArrange();
}

Это известная ошибка Silverlight когда изменение StrokeThicknessна некоторых фигурах не обновляет их внешний вид.
http://forums.silverlight.net/forums/p/99221/294703.aspx
Мы исправим эту проблему для фигур карт как MapPolygon и MapPolyline в будущих выпусках. Вы можете отследить это, используя нашу PITS систему:
http://www.telerik.com/support/pits.aspx#/public/silverlight/2548
Сейчас в качестве временного решения  Вы можете вызвать метод InvalidateArrange для информационного слоя. Пример метода SetThickness смотрите выше.

Greetings,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Map
Asked by
Pavel Ruslanovich Kovyev
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or