I have a
<Map> component with
<Geojson> component with in it. I want to bind a popup in onEachFeature method.
I have successfully done
layer.bindpopup(); but don't know how to bind it to the centre of the geoJson layer.
<Popup ref="popup"> in
<Map> and doing
this.refs.popup.getLeafletElement() throws an error, so I am not being able to use