import { ProductContentPipe } from '../product-content.pipe' ; import { ShakemapContoursOverlay } from './shakemap-contours-overlay' ; /**
 * Shakemap PSA03 overlay for leaflet map
 */ const ShakemapPSA03Overlay = ShakemapContoursOverlay . extend ( { id : 'shakemap-psa03' , title : 'Shakemap PSA03 Contours' , param product initialize : function ( product ) { ShakemapContoursOverlay . prototype . initialize . call ( this ) ; this . url = this . getUrl ( product ) ; } , param product getUrl : function ( product ) { if ( product === null ) { return null ; } const productContentPipe = new ProductContentPipe ( ) ; const content = productContentPipe . transform ( product , 'download/cont_psa0p3.json' , 'download/cont_psa03.json' ) ; return content ? content . url : null ; } , param feature createLabel : function ( feature ) { return `${ feature . properties . value } %g` ; } } ) ; export { ShakemapPSA03Overlay } ;