setViewpointGeometry method
Zooms and pans the map view to the extent of the provided geometry with additional padding.
Parameters:
boundingGeometry— The geometry to zoom to.paddingInDiPs— The minimum amount of padding around the bounding geometry in pixels.
Return Value: A boolean value. True if the viewpoint has been successfully set. Otherwise, false.