Jerome Dreyer
Jerome Dreyer

Reputation: 144

UWP MapControl black on transformation with custom tilesource

I'm using a MapControl with custom tilesources (OSM via HttpMapTileDataSource, replacing the default bing-maps tiles) within an UWP-App.

All in all this works pretty good, but when doing any manipulation (e.g. zooming) to the map the background gets black for a moment (as long as it takes to load the new tilesources (old tiles fade out immediately)) and then switches to the actual new tilesource.

Is there a way to keep the "old" tilesource cached and showing until the new one is done loading to bridge over the black background while loading? (The default bing-maps-layer has exactly this behaviour)

Alternatively is there a way to replace the black background with another background? For example a grid-like background so the user can comprehend the transition of the map in a visual way? (this is pretty much impossible with a black background)

Thanks in advance!

Upvotes: 2

Views: 602

Answers (1)

user2950509
user2950509

Reputation: 1057

I know it's a bit late, but this is what you're looking for:

YourTileSource.AllowOverstretch = true

EDIT: It appears that indeed, setting YourTileSource.IsFadingEnabled = false helps it look better.

Upvotes: 2

Related Questions