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

export default PathLayer.extend({

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

  leafletProperties: Object.freeze([
    'locations.[]:setLatLngs'
  ])
});
github miguelcobain / ember-leaflet / addon / components / point-path-layer.js View on Github external
import PathLayer from 'ember-leaflet/components/path-layer';
import toLatLng from 'ember-leaflet/macros/to-lat-lng';

export default PathLayer.extend({

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

  leafletProperties: Object.freeze([
    'location:setLatLng'
  ]),

  location: toLatLng()
});