I’d like to fade the Aerial map layer by setting the opacity.
BUT, i’d like to retain no alpha (no opacity) for any objects (i.e. pushpins) that are rendered on top of the map.
Anyone know if this is feasible (does API support this in some way)?
Thanks!
What is needed is a way to style the internal
MapTileLayerthat the Map control uses to display the map itself. Unfortunately the API does not provide that level of access.However we can use the VisualTreeHelper to gain access to the
MapTileLayer. I use the extensions class in this blog to help with that. With this class present in the project we could do something cludgy like this:-However its probably best to do it properly by creating a new class that derives from
Mapand assigning a style instead of a single property likeOpacity.With this derivative in place we can do this:-
The pushpins will remain fully opaque but the map image itself will be faded out.