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"
        ZoomBarVisibility="Collapsed" MiniMapExpanderVisibility="Collapsed" MouseLocationIndicatorVisibility="Collapsed" MouseWheelMode="None" Background="White" CommandBarVisibility="Collapsed" ScaleVisibility="Collapsed">
            <telerik:EmptyProvider />
        <telerik:InformationLayer x:Name="informationLayer">
                <telerik:MapShapeReader DataSource="/PCSecurityCheck;component/Resources/world.dbf"
                            ToolTipFormat="{}{CNTRY_NAME} - {SQKM|F2}" />
            <telerik:MapPinPoint telerik:MapLayer.Location="42.6957539183824, 23.3327663758679"
                ImageSource="Images/beacon.png" />

  2. Martin
    Martin avatar
    1044 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" />

    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. DevCraft R3 2016 release webinar banner
Back to Top