We shouldn't use `layer.values_` here (it will not be there in compiled ol3). Use `layer.get('id')`