[英]Bing Maps - MapShapeLayer on top of map children
我在Windows 8.1 Store App (WinRT,XAML,C#)上使用Bing Maps SDK
添加到地圖組件的子代始終位於地圖的ShapeLayers集合中添加的項的頂部。
有沒有辦法修改Bing地圖中MapShapeLayer的“ Z索引 ”,使其顯示在某些子項的頂部?
這是一個例子:
XAML:
<bing:Map x:Name="bingMap">
<bing:Map.Children>
<bing:MapItemsControl ItemsSource="{Binding SomeItems}">
<bing:MapItemsControl.ItemTemplate>
<DataTemplate>
...
</DataTemplate>
</bing:MapItemsControl.ItemTemplate>
</bing:MapItemsControl>
</bing:Map.Children>
</bing:Map>
C#
this.bingMap.ShapeLayers.Add(mapShapeLayer);
MapItemsControl將位於mapShapeLayer的頂部,但我要相反。 有任何想法嗎 ?
謝謝
這是設計使然。 如果形狀出現在兒童上方,則您將無法與兒童互動。 children屬性通常用於向地圖添加自定義圖釘或控件,其中大多數旨在與用戶交互。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.