MultiScaleTileSource.InvalidateTileLayer Method

Invalidates specified tile layers.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Protected Sub InvalidateTileLayer ( _
    level As Integer, _
    tilePositionX As Integer, _
    tilePositionY As Integer, _
    tileLayer As Integer _
)
protected void InvalidateTileLayer(
    int level,
    int tilePositionX,
    int tilePositionY,
    int tileLayer
)

Parameters

Remarks

The InvalidateTileLayer method can be used to change the URIs returned for a tile layer. For example, if you have an implementation of a map and you want to zoom straight to street level, normally Deep Zoom would blend all the levels from 0 to 19. Instead, you can implement a MultiScaleTileSource class that returns null for all layers 18 and below. When a user starts to zoom out, you invalidate all the layers through 18, and return the proper URLs for the tiles instead.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.