Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Map > Rendering too slow on information layer control.

Not answered Rendering too slow on information layer control.

Feed from this thread
  • Leopoldo avatar

    Posted on Jan 23, 2012 (permalink)

    We have arround 3,000 items on our map information layer. But the rendering is too slow and freeze the app for few seconds.How can we get a better performance or a faster rendering.

    Reply

  • Andrey Andrey admin's avatar

    Posted on Jan 26, 2012 (permalink)

    Hi Leopoldo,

    To get a better performance you can use a simple figure like rectangle or ellipse as an item. Also if the performance is very critical issue for you application than using of spring animation for zooming and panning, then I would recommend to set the UseSpringAnimations property of RadMap to "false", i.e. to disable it. The sample code is below.
    <telerik:RadMap x:Name="radMap" UseSpringAnimations="False">
        <telerik:InformationLayer x:Name="informationLayer" ItemsSource="{Binding ItemsCollection}">
            <telerik:InformationLayer.ItemTemplate>
                <DataTemplate>
                    <Rectangle telerik:MapLayer.Location="{Binding Location}" Width="10" Height="10" Fill="Red"/>
                </DataTemplate>
            </telerik:InformationLayer.ItemTemplate>
        </telerik:InformationLayer>
    </telerik:RadMap>

    Kind regards,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Leopoldo avatar

    Posted on Jan 26, 2012 (permalink)

    Hi Andrey;

    We changed the UseSpringAnimations property  and use a simple figure but the 3000 points still rendering very slow. The information layer get the points coordinates from a database table .  Is a simple query, and the database and the service response very fast, but the rendering is too slow.  Any other option?

    Reply

  • Andrey Andrey admin's avatar

    Posted on Jan 31, 2012 (permalink)

    Hello Leopoldo,

    We have checked the performance of rendering with 3000 points using a simple template. It works OK.
    It looks like you meant the initial loading of points on the map. Unfortunately we can't improve the performance of this process. But if you shouldn't show all points on the map after loading, then you can use the dynamic layer for loading points according to zoom level and region.
    Please take a look the Using Dynamic Layer topic of our documentation and the Items Virtualization example.
    http://www.telerik.com/help/silverlight/radmap-features-dynamic-layer.html
    http://demos.telerik.com/silverlight/#Map/DynamicLayer

    Kind regards,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Map > Rendering too slow on information layer control.