I'm working with the MapEllipseGeometry to get the centering right per this thread: http://www.telerik.com/community/forums/silverlight/map/mapellipse-center.aspx
But I'm having problems with the MapEllipseGeometry center property not updating when properties change.
The Parent RadMap's center property (which is bound to the same ViewModel property that the MapEllipseGeometry's center binds to) updates fine & the MapEllipseGeometry's RadiusY and RadiusX update fine as well (which are all databound to the same object in my ViewModel).
Here is the code for the MapEllipseGeometry & RadMap XAML and my ViewModel code for the properties associated with them
I took out the ApplicationId.
Any suggestions of why this is happening?
But I'm having problems with the MapEllipseGeometry center property not updating when properties change.
The Parent RadMap's center property (which is bound to the same ViewModel property that the MapEllipseGeometry's center binds to) updates fine & the MapEllipseGeometry's RadiusY and RadiusX update fine as well (which are all databound to the same object in my ViewModel).
Here is the code for the MapEllipseGeometry & RadMap XAML and my ViewModel code for the properties associated with them
<
telerik:RadMap
x:Name
=
"RadMap"
Center
=
"{Binding SelectedGeofenceCenter}"
ZoomLevel
=
"10"
DistanceUnit
=
"Mile"
Height
=
"389"
VerticalAlignment
=
"Top"
Margin
=
"-10,4,-6,0"
>
<
telerik:RadMap.Provider
>
<
telerik:BingMapProvider
ApplicationId
=
""
/>
</
telerik:RadMap.Provider
>
<
telerik:InformationLayer
>
<
telerik:MapPath
Fill
=
"Red"
Opacity
=
".6"
Stroke
=
"Orange"
StrokeThickness
=
"2"
>
<
telerik:MapPath.Data
>
<
telerik:MapEllipseGeometry
x:Name
=
"GeoEllipse"
Center
=
"{Binding SelectedGeofenceCenter}"
RadiusX
=
"{Binding SelectedGeofence.Radius}"
RadiusY
=
"{Binding SelectedGeofence.Radius}"
/>
</
telerik:MapPath.Data
>
</
telerik:MapPath
>
</
telerik:InformationLayer
>
</
telerik:RadMap
>
//Last Location Center
public
string
LastLocationCenter
{
get
{
return
String.Format(
"{0},{1}"
, LastLocation.Lat, LastLocation.Lon);
}
}
public
LocationPoint LastLocation
{
get
{
return
lastLocation;
}
set
{
lastLocation = value;
RaisePropertyChanged(
"LastLocation"
);
RaisePropertyChanged(
"LastLocationCenter"
);
}
}
I took out the ApplicationId.
Any suggestions of why this is happening?