iniamudhan / react-bingmaps

Bingmaps in React.js
MIT License
26 stars 42 forks source link

Missing Event on pushpin click #32

Open choneyse opened 5 years ago

choneyse commented 5 years ago

No parameters appear to be getting passed to the callback handler for a pushpin clickeEvent

i.e. addHandler: { type: 'click', callback: this.onMapPinClicked }

Since no event is being passed to the callback, can't identify which pin was clicked.

brandonhenricks commented 5 years ago

@choneyse, I was having the same problem. I was able to move further by doing this:

pushPinAddHandler: { type: 'click', callback: () => { this.pushPinClick(data); } }