Update layer based on map style

This sample shows how to monitor the maps style and update the style of a layer accordingly. The map monitors the 'styledata' event to keep track of when the base map style changes. In this sample a symbol layer is updated such that when the map style is dark, a yellow icon with black text is displayed, when the map style is light, a blue icon with white text is displayed.