Show/Hide Tile Image

2 posts, 0 answers
  1. Kean
    Kean avatar
    1 posts
    Member since:
    Apr 2013

    Posted 18 Jul 2013 Link to this post

    Hello,

    I have tiles service which stores tiles for ZoomLevel 8-14.
    For ZoomLevel 15 onwards, I wanted to retrieve spatial data. (This working fine now)

    My problem is, the tiles are still showing tiles from ZoomLevel 14 when I'm at ZoomLevel 15 onwards.
    How to hide tiles images at certain zoom level?

    I'm using sample code from following thread:
    http://www.telerik.com/community/forums/silverlight/map/don-t-load-superior-levels.aspx



  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 23 Jul 2013 Link to this post

    Hi Kean,

    I have attached the changed version of this example. It looks easier and more understandable. Note, it sets min and max zoom level (8 - 14) in the constructor of the OSMCustomSource class using parameters of the TiledMapSource constructor.
    public OSMCustomSource(RadMap radMap)
        : base(8, 14, TileSize, TileSize)
    {
        this.mapZoomLevel = radMap.ZoomLevel;
     
        radMap.ZoomChanged += new EventHandler(radMap_ZoomChanged);
    }

    I hope it helps.

    Regards,
    Andrey Murzov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top