How to use the ember-leaflet/components/point-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 / circle-marker-layer.js View on Github external
import PointPathLayer from 'ember-leaflet/components/point-path-layer';

export default PointPathLayer.extend({

  leafletOptions: Object.freeze([
    'radius'
  ]),

  leafletProperties: Object.freeze([
    'radius'
  ]),

  createLayer() {
    return this.L.circleMarker(...this.get('requiredOptions'), this.get('options'));
  }
});
github miguelcobain / ember-leaflet / addon / components / circle-layer.js View on Github external
import PointPathLayer from 'ember-leaflet/components/point-path-layer';

export default PointPathLayer.extend({

  leafletRequiredOptions: Object.freeze([
    'radius'
  ]),

  leafletProperties: Object.freeze([
    'radius'
  ]),

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