setVisibleCoordinateBounds method
Changes the receiver’s viewport to fit the given coordinate bounds, optionally animating the change.
To bring both sides of the antimeridian or international date line into view, specify some longitudes less than −180 degrees or greater than 180 degrees. For example, to show both Tokyo and San Francisco simultaneously, you could set the visible bounds to extend from (35.68476, −220.24257) to (37.78428, −122.41310).
@param bounds The bounds that the viewport will show in its entirety.
@param animated Specify YES to animate the change by smoothly scrolling
and zooming or NO to immediately display the given bounds.
Implementation
void setVisibleCoordinateBounds(MLNCoordinateBounds bounds, {required bool animated}) {
_objc_msgSend_148tmbg(this.ref.pointer, _sel_setVisibleCoordinateBounds_animated_, bounds, animated);
}