I am using the Mapbox API and its setOnMapClickListener is deprecated. I haven't found any other way to use the onMapClick
method; is there another way?
setOnMapClickListener
was deprecated in release 5.3.0 in favor of addOnMapClickListener
.
Source: API Reference