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

Items disappear when zooming without spring animations

1 Answer 51 Views
Map
This is a migrated thread and some comments may be shown as answers.
Autolog
Top achievements
Rank 1
Autolog asked on 30 Jul 2014, 08:55 AM
It seems that some items disappear when zooming on a map without spring animations enabled.​ The following map has a layer displaying a list of MapShape objects (drawn by user), and a layer with a list of addresses displayed with an image icon. On the initial zoom level, everything is visible, but when the map is zoomed (either by user or by setting the view in code), the addresses disappear - the drawings stay visible.

We are using Q3 2012.

<telerik:RadMap x:Name="radMap"
                            CenterChanging="radMap_CenterChanging"
                            CenterChanged="radMap_CenterChanged"
                                        ZoomChanging="radMap_ZoomChanging"
                                        ZoomingFinished="radMap_ZoomFinished"
                                        KeyUp="radMap_KeyUp"
                                        BorderThickness="1"
                                        BorderBrush="#FFA6D2D6"
                                        MouseClickMode="None"
                                        MouseDoubleClickMode="None"
                                        UseSpringAnimations="False"
                                        UseDefaultLayout="False"
                                        IsKeyboardNavigationEnabled="True">
                                <telerik:InformationLayer x:Name="drawingLayer" IsHitTestVisible="True" UseLayoutRounding="True" Cursor="Arrow" />
                                <telerik:InformationLayer ItemsSource="{Binding AddressSearch.Addresses}" x:Name="addressSearchLayer">
                                    <telerik:InformationLayer.ItemTemplate>
                                        <DataTemplate>
                                            <Grid Height="28" Width="28"
              telerik:MapLayer.Location="{Binding Position, Converter={StaticResource locationConverter}}"
              telerik:MapLayer.HotSpot="0.5, 0.5"
              ToolTipService.ToolTip="{Binding Path=FormattedMultiLineAddress, FallbackValue=''}">
 
            <Ellipse x:Name="circle" Fill="White" Stroke="#FF707070" StrokeThickness="3" />
            <Image Source="{StaticResource AddressIcon}" Margin="7" VerticalAlignment="Center"/>
        </Grid>
                                        </DataTemplate>
                                    </telerik:InformationLayer.ItemTemplate>
                                </telerik:InformationLayer>
                            </telerik:RadMap>

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 30 Jul 2014, 11:55 AM
Hi Autolog,

It is very complicated and it is hard to reproduce the problem without your solution, but using just a code snippet you sent.
Could you, please, provide us with a small sample solution which reproduces it? By doing so we will be able to further investigate the reasons behind the issue.
Thank you for your cooperation.

Regards,
Andrey Murzov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Map
Asked by
Autolog
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or