2

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?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Abubakar
  • 147
  • 2
  • 10

1 Answers1

3

setOnMapClickListener was deprecated in release 5.3.0 in favor of addOnMapClickListener.

Source: API Reference

Matt
  • 2,953
  • 3
  • 27
  • 46