|
|
|
@ -1,3 +1,4 @@ |
|
|
|
import { isUndefined } from 'underscore'; |
|
|
|
import Backbone from 'backbone'; |
|
|
|
import Layer from './Layer'; |
|
|
|
|
|
|
|
@ -110,11 +111,13 @@ export default Backbone.Collection.extend({ |
|
|
|
return result.join(this.getSeparator()); |
|
|
|
}, |
|
|
|
|
|
|
|
getPropertyValues(property) { |
|
|
|
getPropertyValues(property, defValue) { |
|
|
|
const result = []; |
|
|
|
this.each(layer => { |
|
|
|
const value = layer.getPropertyValue(property); |
|
|
|
value && result.push(value); |
|
|
|
value |
|
|
|
? result.push(value) |
|
|
|
: !isUndefined(defValue) && result.push(defValue); |
|
|
|
}); |
|
|
|
return result.join(', '); |
|
|
|
} |
|
|
|
|