2

我有 Jeff Wilcox 静态地图控件:

<jwMaps:StaticMap
            VerticalAlignment="Top"                                   
            Margin="-12,0,-12,0"
            Provider="Bing"                                    
            Foreground="{StaticResource PhoneAccentBrush}"
            Height="200"
            ZoomLevel="1"
            Visibility="Visible"
            MapCenter="{Binding Coordinates}" />

但我有错误System.ArgumentException: Center is null。在这种情况下如何设置默认坐标?坐标有GeoCoordinate类型。

4

1 回答 1

0

put it by code add name attribute to the StaticMap example Name="staticMap" then staticMap.MapCenter=Coordinates;

于 2013-09-01T20:57:12.760 回答