Relative Content

Tag Archive for kotlinmapbox-android

Why is the annotation still visible?

Hi so I am trying to code right now in mapbox android kotlin. I am trying to have pins (or annotations) appear on the screen and give the user the ability to delete a pin from it if they want. The pins are numbered, however I’m running into 2 problems. First the numbers are not being updated correctly on the screen and secondly the pin itself is not being removed. Meaning if there are 4 pins, and I were to remove 1 of them, just 3 pins should remain. These are the relevant parts of my code that deal with the annotations.