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

ZIndex for items in InformationLayer

3 Answers 247 Views
Map
This is a migrated thread and some comments may be shown as answers.
Warnestam
Top achievements
Rank 1
Warnestam asked on 24 May 2011, 11:52 AM
Hi,

I have a map with several overlapped items on it. I want to programmatically highlight one or several items by changing the ZIndex. Unfortunatly my ZIndex binding is not working (but the other ones works fine). Here is my XAML;

<telerik:RadMap Margin="12" Name="radMap1">
            <telerik:InformationLayer x:Name="informationLayer"  >
                <telerik:InformationLayer.ItemTemplate>
                    <DataTemplate>
                        <Ellipse  Name="myEllipse"
                            telerik:MapLayer.Location="{Binding Location}"
                            telerik:MapLayer.BaseZoomLevel="9"
                            Width="200"
                            Height="200"
                            Stroke="{Binding Stroke}"                           
                            StrokeThickness="3"
                            Fill="{Binding Fill}"     
                            Canvas.ZIndex="{Binding ZIndex}">
                            <telerik:MapLayer.HotSpot>
                                <telerik:HotSpot X="0.5" Y="0.5"   />
                            </telerik:MapLayer.HotSpot>
                        </Ellipse>
                    </DataTemplate>
                </telerik:InformationLayer.ItemTemplate>
            </telerik:InformationLayer>

Best regards

Robert Warnestam

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 27 May 2011, 07:29 AM
Hello Warnestam,

The ZIndex is attachable property of the Canvas element. The InformationLayer does not use Canvas, so ZIndex is not supported. The only way to bring some element to front of others is put it to the end of the collection which is items source for the information layer.

Kind regards,
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
0
Warnestam
Top achievements
Rank 1
answered on 27 May 2011, 09:24 AM
Thanks for your reply Andrey,

The Silverlight version of the RadMap supports ZIidex (http://www.telerik.com/community/forums/silverlight/map/z-order-pinpoints.aspx) so I just though that the WPF version was similar.

I will try to reorder my items as you suggested instead.

Regards

Robert
0
Andrey
Telerik team
answered on 31 May 2011, 01:53 PM
Hello Warnestam,

This post is more then 1 year old. Since this post we've changed the architecture of the information layer completely. So Silverlight version does not support ZIndex as well. 

Regards,
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
Warnestam
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Warnestam
Top achievements
Rank 1
Share this question
or