Issue going from v.4.1.1 to 5.0.0. leafletProperties is removed from BaseLayer.
IsakFriisJespersen2 opened this issue · 1 comments
IsakFriisJespersen2 commented
Hi!
I've created my own custom MapLayer
depending on the properties 'items', 'bounds'.
Going to v.5.0.0 of what I can see leafletProperties
are removed from the BaseLayer
. I can get the application running by commenting out that section but this means it no longer watches for updates on those properties.
Is there any new variables that I can't find solving this issue.
export default BaseLayer.extend({
init() {
this._super(...arguments);
this.leafletRequiredOptions = [
'items', 'bounds'
];
this.leafletProperties = [
'items', 'bounds'
];
this.leafletEvents = [
'click'
];
},
createLayer() {
return new MapLayer(...this.requiredOptions, this.options);
}
IsakFriisJespersen2 commented
Found solution to problem. Using leafletDescriptors = [...this.leafletDescriptors, 'items', 'bounds'];
solved the issue.