I have a Google Map, with markers that I want to toggle on and off.
<marker id='{{marker.id}} 'visible="{{ condition ? 'true' : 'false'}}">
</marker>
And I made a button for toggling it off
<button ng-click="condition = false" ng-init="condition = true">
Toggle visibility
</button>
How do I make it switch between toggling the condition true/false, on the same click?
Or maybe using a toggle functionality.