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

InformationLayer disappears when panning to the left or top.

1 Answer 34 Views
Map
This is a migrated thread and some comments may be shown as answers.
Jon Sprang
Top achievements
Rank 1
Jon Sprang asked on 30 Mar 2010, 10:31 PM

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);

 

 

 

 

}

 

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 31 Mar 2010, 11:30 AM
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.
Tags
Map
Asked by
Jon Sprang
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or