Check if marker is in view (map) - mapbox
<p><a href="https://i.stack.imgur.com/5SHNM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5SHNM.png" alt="enter image description here"></a>I want to check if marker is on mapview or out of the map.
I am putting marker of the map and not able to check if it on currentView or not. I have tried below code. 
     this.map.getBounds().contains(e.layer.getLatLng());
but it is returning me true.
map is returning its old lat lng i.e bounds (I think so)</p>