mapbox-gl-js
mapbox-gl-js copied to clipboard
Click event some time does not work
mapbox-gl-js version: 3.3.0
browser: CHROME
Steps to Trigger Behavior
- add
this.map.on('click', 'zipcodes', (e) => {
alert(`A click event has occurred on a visible portion of the poi-label layer at ${e.lngLat}`);
});
- click randomly the layer
Link to Demonstration
https://jsbin.com/