This is a migrated thread and some comments may be shown as answers.

ZIndex in VisualizationLayer

2 Answers 14 Views
Map
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 01 Apr 2014, 06:05 PM
I am trying to get specific PolygonData instances to pop to the top of a VisualizationLayer and can't seem to make it happen. I have tried settin the ZIndex on the objects as well as removing and re-adding them to the .Items collection, neither of which are successful.

How can I do this?

Thanks,
Mike

2 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 02 Apr 2014, 01:10 PM
Hi Michael,

You should use ZIndex property of the PolygonData object. But you should also call VisualizationLayer.ArrangeItem method when you change this property. For example:

PolygonData data = this.visualizationLayer.Items[0] as PolygonData;
if (data != null)
{
    data.ZIndex = data.ZIndex == 1 ? 4 : 1;
    this.visualizationLayer.ArrangeItem(data);
}

I hope this will help you.

Regards,
Andrey Murzov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Michael
Top achievements
Rank 1
answered on 02 Jun 2014, 08:46 PM
That fixed my problem. Thanks, Andrey.
Tags
Map
Asked by
Michael
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Michael
Top achievements
Rank 1
Share this question
or