I want to take advantage of some of the new features of the Windows Phone 8 Nokia Maps API (Microsoft.Phone.Maps.Controls
namespace).
I have a sequence of TileSource
classes, each with a different image. I play the images back in a loop on the map.
In Windows Phone 7, I would create several Microsoft.Phone.Controls.Maps.MapTileLayer
classes, add a TileSource to each one, and add them to the map. Then, I would use a timer to go through the layers, setting the opacity of the current one to 1 and the opacities of the others to 0.
In Windows Phone 8, there is no MapTileLayer class. I can add all of the TileSource classes to the Map
.TileSources collection, but I cannot change their opacities.
If I add only one source at a time, for each frame adding the current source and removing the last, there is considerable flicker, so this method will not work
Is there a class similar to WP7's MapTileLayer
or Bing Maps AJAX's TileLayer
in WP8 or some other way to change the opacities of Tile Sources?
(map.Layers[0][0].Content as UIElement).Opacity = 1;
to get the first layer's first overlay and set the Content's opcaity ...(map.Layers[1][0].Content as UIElement).Opacity = 1;
to get the second layer's etc... – Gilmer