Azure Maps - generate static map optimized for pushpins
I am looking to migrate from Bing Maps to Azure Maps to generate a static map.
In Bing Maps, I pass a list of pushpins, and Bing Maps creates an optimized map based on the pushpins I passed. Bing Maps auto-selects the best zoom level to fit all the pushpins and returns an image in the width and height I passed:
Get a map with pushpins that does not specify a center point or map area
If you do not specify a center point or map area, the map area is chosen to optimize the display of the pushpins.
Is there a way to make an equivalent call to Azure Maps? From what I see, I need to pass Azure Maps either bbox or center, and also pass a zoom level, but with Bing Maps, it calculated all of that for me and returned an optimized map. I just had to pass it the pushpins and the width and height that I wanted. Is there a way to calculate those above parameters to match what Bing Maps was doing for me?
Thanks for your help.
Ryan