# Watching for imagery changes

**URL:** <https://community.cesium.com/t/watching-for-imagery-changes/3476>\
**Category:** CesiumJS\
**Created:** [December 16, 2015, 6:20pm UTC](https://community.cesium.com/t/watching-for-imagery-changes/3476 "2015-12-16T18:20:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [December 16, 2015, 6:34pm UTC](https://community.cesium.com/t/watching-for-imagery-changes/3476/4 "2015-12-16T18:34:57Z")

</div>

If the imagery layer is being changed from the BaseLayerPicker widget, you can subscribe to [BaseLayerPickerViewModel.selectedImagery](http://cesiumjs.org/Cesium/Build/Documentation/BaseLayerPickerViewModel.html#selectedImagery) to receive notifications when it is changed. Here is a code example:

Cesium.subscribeAndEvaluate(viewer.baseLayerPicker.viewModel, ‘selectedImagery’, function(newValue) {

console.log(newValue.name);

});

Here, newValue is a [ProviderViewModel](http://cesiumjs.org/Cesium/Build/Documentation/ProviderViewModel.html).

Is that what you are looking for?

-Hannah

---

_[View the full topic](https://community.cesium.com/t/watching-for-imagery-changes/3476)._
