react-jvectormap icon indicating copy to clipboard operation
react-jvectormap copied to clipboard

Marker events doesnt rerender component

Open ertemishakk opened this issue 4 years ago • 1 comments

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}
   />

ertemishakk avatar Jun 16 '21 12:06 ertemishakk

Thanks, this is a great point. I will check this and fix if needed as part of 1.0.0.

kadoshms avatar Oct 25 '21 12:10 kadoshms