Forum Academy Marketplace Showcase Pricing Features

Zoom in on an element

I’m trying to replicate the Plus sign on a map that zooms in on an element when clicked. I’ve attempted to write a JavaScript code to do this, but it only works the first time I click; subsequent clicks have no effect. Is there a way to accomplish this, either through a workflow or a plugin? If so, what would the code look like? Any help would be greatly appreciated.