Open JeanHules opened 4 years ago
Found this on SO: https://stackoverflow.com/a/40303232
Facing the same issue. Any update on this problem? I faced it while I try use marker icon with react
series={{
markers: [
{
attribute: "image",
legend: {
horizontal: true,
labelRender: function noRefCheck() {},
title: "Nuclear power station status",
},
scale: {
_iconMarker: icons.marker,
},
values: {
0: icons.marker,
// ...handleRenderMarker(),
},
},
],
}}
index.js?8a37:1 Uncaught (in promise) TypeError: t.error is not a function
series={{ markers: [ { attribute: 'image', scale: { closed: '/public/img/icon-np-1.png', activeUntil2018: '/public/img/icon-np-1.png' }, values: this.state.markers.reduce((p, c, i) => { const pp = p; console.log(pp); pp[i] = c.status; return pp; }, {}), legend: { horizontal: true, title: 'Nuclear power station status', labelRender: (v) => { if (false) { console.log('dd'); } return { closed: 'Closed', activeUntil2018: 'Scheduled for shut down
before 2018', activeUntil2022: 'Scheduled for shut down
before 2022' }[v]; } } } ] }}
I can't figure out why.