How do you auto zoom/center Smart Map with multiple markers? How can I auto center and zoom my Smart Map with multiple markers?
Something like this:
var bounds = new smartMap.map.LatLngBounds();
smartMap.map.fitBounds(bounds);
So for starters, let's clear something up for anyone visiting this thread:
We're talking about JavaScript... specifically, how to manipulate a map that has already been generated. The official documentation on what kind of variables (maps/markers/info bubbles) which are created by the plugin can be found here...
Beyond that, you can basically do anything you want with those JS variables. Much of that is beyond the scope of what I can help you with, but I'll try to at least point you in the right direction.

Map JS object
The way you'll want to refer to the map is like this:
smartMap.map['smartmap-mapcanvas-1']

By default, the map will be called &quot;smartmap-mapcanvas-1&quot; (or 2, 3, etc). But this value can be easily overridden when creating your map, by using the id parameter in your options.
Now that you've got this map object, you can do anything you want via the Google Maps API.
Marker JS objects
When you're referring to individual markers, the format looks like this:
smartMap.marker['smartmap-mapcanvas-1.100.myAddressField']

That naming scheme breaks into three separate components:

Your map ID (&quot;smartmap-mapcanvas-1&quot;)
The element ID (&quot;100&quot;)
The field handle (&quot;myAddressField&quot;)

Now that you've got this marker object, you can do anything you want via the Google Maps API.
Info bubble JS objects
The format for marker info bubbles is nearly identical:
smartMap.infoWindow['smartmap-mapcanvas-1.100.myAddressField']

Now that you've got this info window object, you can do anything you want via the Google Maps API.
Debugging
Finally, since it's not always clear what maps, markers, and info bubbles have been created, you have these three functions available to you for debugging purposes...

smartMap.listMaps()
smartMap.listMarkers()
smartMap.listInfoWindows()


Beyond that, you're really just asking a standard JavaScript and Google Maps API question. I'd highly recommend searching Stack Overflow (or just a Google search) to get the best results on &quot;how to use fitBounds&quot; or &quot;how to zoom/center&quot; a map.
Hope that helps!