don't load superior levels

2 posts, 0 answers
  1. Kineas
    Kineas avatar
    11 posts
    Member since:
    Apr 2011

    Posted 01 Mar 2013 Link to this post


    I have a question. I have implemented a TileProvider to bring tiles from a WMS.

    Problem is the tiles load very slow on a slow connection because telerik maps loads the superior levels of tiles too. How can we stop that behaviour?

    Attached you have my examples of what i mean.

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 04 Mar 2013 Link to this post

    Hello Kineas,

    The RadMap shows map tiles using the standard Silverlight MultiScaleImage control. This way of loading tiles is the standard behavior of that control. And unfortunately we can't change the order of requesting tiles using the TiledMapSource.GetTile method.
    There is one way to show tiles for the current zoom level only. You can modify your custom provider for returning correct URIs only for current zoom level of RadMap. In other case it should return null. Also when the zoom level is changed then you should invalidate "null" tiles which were returned for this level from another levels using the MultiScaleTileSource.InvalidateTileLayer method. You can handle the RadMap.ZoomChanged event within implementation of custom TiledMapSource for this purpose.
    I have attached a sample solution which implement this functionality for OpenStreet custom provider.
    I hope it helps.

    Kind regards,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top