Hi,
I am using the radmap and placing items onto the information layer using an example you provide. The items are an observable collection of the mapitem class:
Private items As New ObservableCollection(Of MapItem)()
This works well, but how would I get the best view for items created using this method where the items contain only the latitude and lonitude.
Regards,
Joe
<telerik:RadMap x:Name="radMap" DistanceUnit="Mile" ZoomLevel="6" DataContext="{Binding}" >
<telerik:InformationLayer Name="informationLayer">
<telerik:InformationLayer.ItemTemplate>
<DataTemplate>
<Border telerik:MapLayer.Location="{Binding Location}" x:Name="Border" ToolTip="{Binding DateofFix}" DataContext="{Binding}">
<telerik:MapLayer.HotSpot>
<telerik:HotSpot X="0.5" Y="40" XUnits="Fraction" YUnits="InsetPixels" ElementName="path" />
</telerik:MapLayer.HotSpot>
<Grid>
<Path x:Name="path" Stretch="None"
Stroke="{StaticResource MapPushpinStroke}"
StrokeThickness="4"
Data="M12,26.083 L16,26.083 13.916667,32.083 z M14,3 C20.075132,3 25,7.9248676 25,14 25,20.075132 20.075132,25 14,25 7.9248677,25 3,20.075132 3,14 3,7.9248676 7.9248677,3 14,3 z"
Fill="{Binding Background}">
<Path.Effect>
<telerik:IsFullTrust>
<![CDATA[
<DropShadowEffect xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
BlurRadius="7" ShadowDepth="1" />
]]>
</telerik:IsFullTrust>
</Path.Effect>
</Path>
<ContentPresenter Margin="0,40,0,0" Content="{Binding Content}" />
</Grid>
</Border>
</DataTemplate>
</telerik:InformationLayer.ItemTemplate>
</telerik:InformationLayer>
</telerik:RadMap>