Viewer mutates the layer state through the new map model. Changes in the
map model trigger an update of the map.