<div>
<div id="widget__container" > </div>
</div>
<script>
;(function(window) {
var s = document.createElement('script')
s.type = 'text/javascript'
s.async = true
s.src = 'https://api.breathelondon.org/widgets/map/build/index.js?v=5'
s.onload = () => {
var s_s = document.getElementsByTagName('head')[0]
s_s.insertAdjacentHTML(
'beforeend',
'<link rel="stylesheet" type="text/css" href="https://api.breathelondon.org/widgets/map/build/index.css?v=6" />',
)
const filterListSensors = [
[
// {
// by: 'OtherTags',
// value: 'Lambeth',
// operator: 'includes',
// includesSeparator: ','
// },
// {
// by: 'OrganisationName',
// value: "SE London Hospitals",
// operator: '='
// },
// {
// by: 'SiteCode',
// value: 'CLDP0001',
// operator: '='
// },
// {
// by: 'SiteCode',
// value: 'CLDP0002',
// operator: '='
// },
{
by: 'SiteLocationType',
value: 'Hospital',
operator: '='
}
]
/* [
// {
// by: 'SiteName',
// value: 'North Middlesex University Hospital'
// },
{
by: 'SponsorName',
value: "Bloomberg Philanthropies",
operator: '='
},
]*/
]
const filterListSensorsAQE = [
[
//{
// by: 'SiteCode',
// value: 'BN1',
// operator: '!=',
// }
]
]
reactWidget.init({
environment: 'dev',
authId: 'xxxxxxx',
apiKey: 'xxxxxxx',
height: '60vh',
subURL: '/sensor-info',
defaultSpecies: 'ipm25', // ipm25 | ino2
filterListSensors,
filterListSensorsAQE
})
console.log('reactWidget Loaded!2', reactWidget)
}
var x = document.getElementsByTagName('script')[0]
x.parentNode.insertBefore(s, x)
})(window, undefined)
</script>