[英]MapControl using XAML Island in WPF: default map layer is shown over custom tile layer
[英]devexpress mapcontrol - disable layer animation
我正在后面的代碼中創建一個VectorLayer
,以顯示車輛行駛的路徑。 但是,在MapControl
添加圖層會使用某種動畫。 路徑不會立即顯示,需要一兩秒鍾。 有沒有辦法禁用此動畫?
MapPolyline path = CreatePath(); // setting points, color, thichness, etc...
VectorLayer layer = new VectorLayer() { };
layer.Data = new ObservableCollection<MapItem>() { path };
mapControl.Layers.Insert( 0, layer );
我終於自己弄清楚了。 將MapControl
UseSprings
屬性設置為False
解決了我的問題。 它禁用了MapControl
上的所有動畫
<dxm:MapControl UseSprings="False">
...
</dxm:MapControl>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.