import { ShakemapContoursOverlay } from './shakemap-contours-overlay' ; /**
 * Shakemap PGV overlay for leaflet map
 */ const ShakemapPGVOverlay = ShakemapContoursOverlay . extend ( { id : 'shakemap-pgv' , title : 'Shakemap PGV 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 ; } return product . contents [ 'download/cont_pgv.json' ] ? product . contents [ 'download/cont_pgv.json' ] . url : null ; } , param feature createLabel : function ( feature ) { return `${ feature . properties . value } cm/s` ; } } ) ; export { ShakemapPGVOverlay } ;