public final class MKCoordinateRegion extends Object
Constructor and Description |
---|
MKCoordinateRegion(CLLocationCoordinate2D center,
MKCoordinateSpan span)
Constructs an object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
CLLocationCoordinate2D |
getCenter() |
MKCoordinateSpan |
getSpan() |
void |
setCenter(CLLocationCoordinate2D center) |
void |
setSpan(MKCoordinateSpan span) |
public MKCoordinateRegion(CLLocationCoordinate2D center, MKCoordinateSpan span)
center
- The center of the displayed area.span
- The portion of the map that is displayed.public CLLocationCoordinate2D getCenter()
public void setCenter(CLLocationCoordinate2D center)
public MKCoordinateSpan getSpan()
public void setSpan(MKCoordinateSpan span)
Copyright © 2020. All rights reserved.