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

Show/Hide Tile Image

1 Answer 47 Views
Map
This is a migrated thread and some comments may be shown as answers.
Kean
Top achievements
Rank 1
Kean asked on 18 Jul 2013, 07:00 AM
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



1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 23 Jul 2013, 06:34 AM
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 >>
Tags
Map
Asked by
Kean
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or