I want to hide a MapBox Marker on Android, and when I do a zoom I want to show it. Is there a function on MapBox like "setVisible(true or false)" of GoogleMaps Marker ? In GoogleMap you can hide a marker like that :
Marker marker = map.addMarker(new MarkerOptions()
.position(new LatLng(49.685, 50.658))
.title("Paris"));
marker.setVisible(false); // hide the marker
Is there any function on MapBox which do the same ? Thank You.
There currently isn't a .setVisible method exposed for use in the Mapbox Android SDK. My suggestion would be to just remove the marker and re-add it when you need to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With