This is a migrated thread and some comments may be shown as answers.

issue adding pushpins

1 Answer 81 Views
Map
This is a migrated thread and some comments may be shown as answers.
jason wilson
Top achievements
Rank 1
jason wilson asked on 21 Jan 2016, 06:06 PM

Can someone please explain why i cant see the pishpin?

 

<telerik:RadMap x:Name="radMap"
                 NavigationVisibility="Collapsed"
                ZoomLevel="2"
    IsMouseWheelZoomEnabled="False"
    IsKeyboardNavigationEnabled="False"
    MouseClickMode="None"
    MouseDoubleClickMode="None"
    MouseDragMode="None"
    ZoomBarVisibility="Collapsed" MiniMapExpanderVisibility="Collapsed" MouseLocationIndicatorVisibility="Collapsed" MouseWheelMode="None" Background="White" CommandBarVisibility="Collapsed" ScaleVisibility="Collapsed">
    <telerik:RadMap.Provider>
        <telerik:EmptyProvider />
    </telerik:RadMap.Provider>
    <telerik:InformationLayer x:Name="informationLayer">
        <telerik:InformationLayer.Reader>
            <telerik:MapShapeReader DataSource="/PCSecurityCheck;component/Resources/world.dbf"
                        Source="/PCSecurityCheck;component/Resources/world.shp"
                        ToolTipFormat="{}{CNTRY_NAME} - {SQKM|F2} sq.km." />
             
        </telerik:InformationLayer.Reader>
        <telerik:MapPinPoint telerik:MapLayer.Location="42.6957539183824, 23.3327663758679"
            Text="Sofia"
            ImageSource="Images/beacon.png" />
 
    </telerik:InformationLayer>
     
</telerik:RadMap>

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 26 Jan 2016, 10:26 AM
Hi Jason,

The pin point is not displayed because it is not presented in the visual tree of the map. This is caused by the fact that when the reader populates the layer all previously added items are cleared. In order to alter this behavior you can set the reader's ClearLayer property to False.
<telerik:MapShapeReader  ClearLayer="False" />
In this case the pin point will be positioned behind the shapes from the shape file so you will need to set its Panel.ZIndex property.
<telerik:MapPinPoint Panel.ZIndex="100" />

Regards,
Martin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Map
Asked by
jason wilson
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or