diff --git a/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx b/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx index 5fcfc86c..d9e06dd9 100644 --- a/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx +++ b/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx @@ -72,6 +72,157 @@ let Map, olExtent; let OL_LOADED = false; +// const PopupDetails = ({ data }) => { +// const countFactypeEprtr = data.count_factype_EPRTR; +// const countFactypeNonEprtr = data.count_factype_NONEPRTR; +// const countInstypeIed = data.count_instype_IED; +// const countInstypeNonIed = data.count_instype_NONIED; +// const countPlantypeLcp = data.count_plantType_LCP; +// const countPlantypeCoWi = data.count_plantType_coWI; +// const countPlantypeWi = data.count_plantType_WI; + +// return ( +//
+// {`${countFactypeEprtr} ${ +// countFactypeEprtr === 1 +// ? 'EPRTR Facility' +// : 'EPRTR Facilities' +// }`} +//
+//+// {`${countFactypeNonEprtr} ${ +// countFactypeNonEprtr === 1 +// ? 'NON-EPRTR Facility' +// : 'NON-EPRTR Facilities' +// }`} +//
+//+// {`${countInstypeIed} ${ +// countInstypeIed === 1 +// ? 'IED Installation' +// : 'IED Installations' +// }`} +//
+//+// {`${countInstypeNonIed} ${ +// countInstypeNonIed === 1 +// ? 'NON-IED Installation' +// : 'NON-IED Installations' +// }`} +//
+//+// {`${countPlantypeLcp} ${ +// countPlantypeLcp === 1 +// ? 'Large combustion plant' +// : 'Large combustion plants' +// }`} +//
+//+// {`${countPlantypeCoWi} ${ +// countPlantypeCoWi === 1 +// ? 'Co-waste incinerator' +// : 'Large combustion plants' +// }`} +//
+//+// {`${countPlantypeWi} ${ +// countPlantypeWi === 1 +// ? 'Co-waste incinerator' +// : 'Co-waste incinerator' +// }`} +//
+//{data.pollutants}
+// ) : ( +//There are no data regarding the pollutants
+// )} +//+// Inspections in {data.Site_reporting_year}:{' '} +// {data.numInspections || 0} +//
+// ) : ( +// '' +// )} +//+// {`${countFactypeEprtr} ${ +// countFactypeEprtr === 1 +// ? 'EPRTR Facility' +// : 'EPRTR Facilities' +// }`} +//
+//+// {`${countFactypeNonEprtr} ${ +// countFactypeNonEprtr === 1 +// ? 'NON-EPRTR Facility' +// : 'NON-EPRTR Facilities' +// }`} +//
+//+// {`${countInstypeIed} ${ +// countInstypeIed === 1 +// ? 'IED Installation' +// : 'IED Installations' +// }`} +//
+//+// {`${countInstypeNonIed} ${ +// countInstypeNonIed === 1 +// ? 'NON-IED Installation' +// : 'NON-IED Installations' +// }`} +//
+//+// {`${countPlantypeLcp} ${ +// countPlantypeLcp === 1 +// ? 'Large combustion plant' +// : 'Large combustion plants' +// }`} +//
+//+// {`${countPlantypeCoWi} ${ +// countPlantypeCoWi === 1 +// ? 'Co-waste incinerator' +// : 'Large combustion plants' +// }`} +//
+//+// {`${countPlantypeWi} ${ +// countPlantypeWi === 1 +// ? 'Co-waste incinerator' +// : 'Co-waste incinerator' +// }`} +//
+//{data.pollutants}
+// ) : ( +//There are no data regarding the pollutants
+// )} +//+// Inspections in {data.Site_reporting_year}:{' '} +// {data.numInspections || 0} +//
+// ) : ( +// '' +// )} +//