issue adding pushpins

2 posts, 0 answers
  1. jason wilson
    jason wilson avatar
    2 posts
    Member since:
    Feb 2010

    Posted 21 Jan Link to this post

    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>

  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 26 Jan Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top