react-jvectormap
react-jvectormap copied to clipboard
Marker events doesnt rerender component
Marker events doesnt seem to be working properly with updateting states. The component doesn't get rerendered.
markerOver = (e, code) => {
this.setState({
markerHoverOn: true,
markerHoverNumber: parseInt(code)
})
}
markerOut = (e, code) => {
this.setState({
markerHoverOn: false
})
}
<VectorMap
map={"au_mill"}
backgroundColor="white"
containerStyle={{
width: "100%",
height: "100%"
}}
containerClassName="map"
markers={exploreParks[1].destinations}
onMarkerOver={this.markerOver}
onMarkerOut={this.markerOut}
/>
Thanks, this is a great point. I will check this and fix if needed as part of 1.0.0.