InvalidateTileLayer Method
Collapse the table of content
Expand the table of content

MultiScaleTileSource.InvalidateTileLayer Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Invalidates specified tile layers.

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

protected void InvalidateTileLayer(
	int level,
	int tilePositionX,
	int tilePositionY,
	int tileLayer


Type: System.Int32
Tile level.
Type: System.Int32
X position of the tile.
Type: System.Int32
Y position of the tile.
Type: System.Int32
Layer of the tile.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft