import * as L from 'leaflet' ; /**
 * Ground failure landslide overlay for leaflet map
 */ const GroundFailureLandslideOverlay = L . ImageOverlay . extend ( { bounds : null , enabled : false , id : 'ground-failure-landslide' , legends : [ ] , title : 'Landslide Estimate' , param product initialize : function ( product ) { if ( ! product || ! product . properties || ! product . contents ) { return this ; } this . bounds = [ [ product . properties [ 'minimum-latitude' ] , product . properties [ 'minimum-longitude' ] ] , [ product . properties [ 'maximum-latitude' ] , product . properties [ 'maximum-longitude' ] ] ] ; const legend = document . createElement ( 'img' ) ; legend . src = './assets/legend-landslide.png' ; legend . setAttribute ( 'alt' , 'Landslide Estimate Legend' ) ; this . legends = [ ] ; this . legends . push ( legend ) ; L . ImageOverlay . prototype . initialize . call ( this , product . contents [ product . properties [ 'landslide-overlay' ] ] . url , [ [ product . properties [ 'landslide-minimum-latitude' ] , product . properties [ 'landslide-minimum-longitude' ] ] , [ product . properties [ 'landslide-maximum-latitude' ] , product . properties [ 'landslide-maximum-longitude' ] ] ] , { maxZoom : 16 } ) ; } } ) ; export { GroundFailureLandslideOverlay } ;