import { FiniteFaultMapOverlay } from '@shared/map-overlay/finite-fault-map-overlay' ; import { Pipe , PipeTransform } from '@angular/core' ; import * as L from 'leaflet' ; @ Pipe ( { name : 'ffOverlays' } ) export class FiniteFaultOverlaysPipe implements PipeTransform { param product returns transform ( product ) { const overlays = [ ] ; if ( product && product . contents && product . contents [ 'FFM.geojson' ] ) { overlays . push ( new FiniteFaultMapOverlay ( product ) ) ; } return overlays ; } }