This question is locked. New answers and comments are not allowed.
Hello,
I am currently using RadMap with the OpenStreetMapProvider and the SqlGeospatialDataReader. The SqlGeospatialDataReader Source is bound to an observable collection called MapData, and each element within the MapData collection contains the GeoSpatial property called BorderWKT of type string and
some additional properties that I have defined within the ExtendedPropertySet.
When the RadMap first loads it displays all of the GeoSpatial data correctly on the map and looks great. However, when I then modify the MapData collection with new values, the map does not re-draw the new data (the set method on the MapData collection calls NotifyPropertyChanged).
Here is an extract of my RadMap in xaml: <telerik:RadMap x:Name="RegionMap" ScaleVisibility="Collapsed" Margin="0" HorizontalContentAlignment="Stretch" UseSpringAnimations="False" UseDefaultLayout="False" MouseClickMode="None" MouseDoubleClickMode="ZoomToPoint" MouseDragMode="Drag" Background="{StaticResource MapBackgroundBrush}"> <telerik:RadMap.Provider> <telerik:OpenStreetMapProvider/> </telerik:RadMap.Provider> <telerik:InformationLayer x:Name="informationLayer" > <telerik:InformationLayer.Reader> <telerik:SqlGeospatialDataReader x:Name="sqlGeospatialDataReader" ReadCompleted="sqlGeospatialDataReader_ReadCompleted" ExtendedPropertySet="RegionID,int RegionCode,string RegionName,string ProjR1K,double" Source="{Binding MapData}" GeospatialPropertyName="BorderWKT" ToolTipTemplate="{StaticResource RegionR1KMapTooltip}" /> </telerik:InformationLayer.Reader> <telerik:InformationLayer.Colorizer> <telerik:ColorMeasureScale ExtendedPropertyName="ProjR1K" Mode="Count" TickMarkCount="10"> <telerik:ColorMeasureScale.ShapeFillCollection> <telerik:MapShapeFill Fill="{StaticResource MapBrush1}"/> <telerik:MapShapeFill Fill="{StaticResource MapBrush2}"/> <telerik:MapShapeFill Fill="{StaticResource MapBrush3}"/> <telerik:MapShapeFill Fill="{StaticResource MapBrush4}"/> <telerik:MapShapeFill Fill="{StaticResource MapBrush5}"/> <telerik:MapShapeFill Fill="{StaticResource MapBrush6}"/> <telerik:MapShapeFill Fill="{StaticResource MapBrush7}"/> <telerik:MapShapeFill Fill="{StaticResource MapBrush8}"/> <telerik:MapShapeFill Fill="{StaticResource MapBrush9}"/> <telerik:MapShapeFill Fill="{StaticResource MapBrush10}"/> </telerik:ColorMeasureScale.ShapeFillCollection> </telerik:ColorMeasureScale> </telerik:InformationLayer.Colorizer> </telerik:InformationLayer> </telerik:RadMap> I also put a ReadCompleted event handler on the SqlGeospatialDataReader in the code behind. When I put a break point on this method it is hit every time the MapData collection is modified. By investigating the Sender argument of the method I noticed that it always contains the updated MapData values. So it would appear the collection is being read properly by the SqlGeospatialDataReader, but the map shapes are not being re-drawn?
Thanks, Christopher