InformationLayer disappears when panning to the left or top.

2 posts, 0 answers
  1. Jon Sprang
    Jon Sprang avatar
    2 posts
    Member since:
    Mar 2010

    Posted 30 Mar 2010 Link to this post

    I have a RadMap with an EmptyProvider.  I have placed an InformationLayer on the map as shown below.  When I pan to the left or to the top, the path abruptly disappears.  When I pan to the bottom or to the right, it gradually goes off the map like I would expect.  Is there anything that I can do to get the behavior of the top/left to be the same as the bottom/right?

    Thanks!

     

    <

     

    map:RadMap x:Name="radMap" Height="900" Width="1400" Grid.Row="1" Margin="4"

     

     

     

        UseDefaultLayout="True"

     

     

     

        MouseDragMode="Drag"

     

     

        MouseClickMode="ZoomToPoint"

     

     

        MouseDoubleClickMode="ZoomToPoint"

     

     

     

        IsMouseWheelZoomEnabled="True"

     

     

        UseLayoutRounding="True"

     

     

     

        UseSpringAnimations="True"

     

     

     

        IsKeyboardNavigationEnabled="True">

     

     

     

        <maps:InformationLayer x:Name="informationLayer">

     

     

     

            <Canvas maps:MapLayer.Location="37, -122">

     

     

     

                <Path Fill="Yellow" >

     

     

     

                    <Path.Data>

     

     

     

                        <GeometryGroup>

     

     

     

                            <EllipseGeometry Center="7,7" RadiusX="3" RadiusY="3" />

     

     

     

                            <EllipseGeometry Center="7,7" RadiusX="7" RadiusY="7" />

     

     

     

                        </GeometryGroup>

     

     

     

                    </Path.Data>

     

     

     

                </Path>

     

     

     

            </Canvas>

     

     

     

        </maps:InformationLayer>

     

     

     

    </map:RadMap>

     

    public

     

    MainPage()

     

    {

        InitializeComponent();

     

     

     

     

     

     

     

        EmptyProvider provider = new EmptyProvider();

     

     

        this.radMap.Provider = provider;

     

     

        this.radMap.InitializeCompleted += new EventHandler(radMap_InitializeCompleted);

     

     

        this.radMap.ZoomChanged += new EventHandler(radMap_ZoomChanged);

     

     

     

     

    }

     

  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 31 Mar 2010 Link to this post

    Hello Jon,

    Canvas do not have their own default size and don't change their size depending on the content (children). So you will not be able to use any alignment (including hot spot definition) on it. Your element always will be located to the right and under the location point.
    I would recommend using Grid instead of Canvas, or set Width and Height attributes for it.

    It is a known issue about FrameworkElement visibility. We have the PITS issue #1210. So, you can check when this feature will be available.

    All the best,
    Andrey Murzov
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top