miguelcobain / ember-leaflet

:fire: :leaves: Easy and declarative mapping for ember

Home Page:https://miguelcobain.github.io/ember-leaflet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue going from v.4.1.1 to 5.0.0. leafletProperties is removed from BaseLayer.

IsakFriisJespersen2 opened this issue · comments

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);
  }

Found solution to problem. Using leafletDescriptors = [...this.leafletDescriptors, 'items', 'bounds']; solved the issue.