Toggle a marker on a map

Hello everyone, i’m starting with bubble and i was wondering if it was possible to toggle a marker in an app with conditions using custom state or anything else ?