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
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?





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

































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




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




            <Path Fill="Yellow" >












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




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







































    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
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.
Asked by
Jon Sprang
Top achievements
Rank 1
Answers by
Telerik team
Share this question