Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import PathLayer from 'ember-leaflet/components/path-layer';
export default PathLayer.extend({
leafletRequiredOptions: Object.freeze([
'locations'
]),
leafletProperties: Object.freeze([
'locations.[]:setLatLngs'
])
});
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()
});