I am basically using the example, but extended with some additional options, like so:
class App extends Component {
render() {
const WrappedHexbinLayer = withLeaflet(HexbinLayer);
const options = {
opacity: 0.8,
tooltipContent: function(d) { return 'Test' },
};
return (
<Map center={[51.0, 13.0]} zoom={17}
style={{
height: "100vh"
}}>
<TileLayer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
attribution='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
/>
<WrappedHexbinLayer data={data} {...options} />
</Map>
)
}
}
See the option for the tooltipContent, which overwrites the "Count:" with some other String. This is not working. Did I understand it wrong?
I am basically using the example, but extended with some additional options, like so:
See the option for the
tooltipContent, which overwrites the "Count:" with some other String. This is not working. Did I understand it wrong?