How to use the ember-leaflet/components/array-path-layer.extend function in ember-leaflet

To help you get started, we’ve selected a few ember-leaflet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github miguelcobain / ember-leaflet / addon / components / polyline-layer.js View on Github external
import ArrayPathLayer from 'ember-leaflet/components/array-path-layer';

export default ArrayPathLayer.extend({
  leafletOptions: Object.freeze([
    'smoothFactor', 'noClip'
  ]),

  createLayer() {
    return this.L.polyline(...this.get('requiredOptions'), this.get('options'));
  }
});