Maps fitBoundsToMarkers using previous markers

I have a Google Map which is using a server connect for dynamic markers. In the server connect Success action I have dmx-on:success=“maps1.fitBoundsToMarkers()”. This actually sets the bounds to where the markers were before the server connect runs. I’m guessing I need to put this somewhere else, but can’t fathom where.

Thanks.

Community Page
Last updated: