MSFMapBounds
Objective-C
@interface MSFMapBounds : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFMapBounds : NSObject
A container class that defines an axis aligned cuboid on the map using minimum and maximum map positions. Valid ranges for map bounds depend on the projection used.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Constructs an empty MapBounds object. The coordinates of the minimum map position will be set to positive infinity and the coordinates of the maximum map position will be set to negative infinity.
Declaration
Objective-C
- (id)init;Swift
init!() -
Constructs a MapBounds object from a minimum and maximum map position. If a coordinate of the minimum map positon is larger than the same coordinate of the maximum map position then those coordinates will be swapped.
Declaration
Parameters
minThe minimum map position (south-west).
maxThe maximum map position (north-east).
-
Checks for equality between this and another map bounds object.
Declaration
Objective-C
- (BOOL)isEqualInternal:(MSFMapBounds *)mapBounds;Swift
func isEqualInternal(_ mapBounds: MSFMapBounds!) -> BoolParameters
mapBoundsThe other map bounds object.
Return Value
True if equal.
-
Tests whether this map bounds object contains a another map bounds object.
Declaration
Objective-C
- (BOOL)containsBounds:(MSFMapBounds *)bounds;Swift
func contains(_ bounds: MSFMapBounds!) -> BoolParameters
boundsThe other map bounds object.
Return Value
True if this map bounds object contains the other map bounds object.
-
Tests whether this map bounds object intersects with a another map bounds object.
Declaration
Objective-C
- (BOOL)intersects:(MSFMapBounds *)bounds;Swift
func intersects(_ bounds: MSFMapBounds!) -> BoolParameters
boundsThe other map bounds object.
Return Value
True if this map bounds object intersects with the other map bounds object.
-
Shrinks this map bounds object to the intersection of this bounds and given bounds object.
Declaration
Objective-C
- (void)shrinkToIntersection:(MSFMapBounds *)bounds;Swift
func shrink(toIntersection bounds: MSFMapBounds!)Parameters
boundsThe other map bounds object.
-
Returns the hash value of this object.
Declaration
Objective-C
- (int)hashInternal;Swift
func hashInternal() -> Int32Return Value
The hash value of this object.
-
Creates a string representation of this map bounds object, useful for logging.
Declaration
Objective-C
- (NSString *)description;Swift
func description() -> String!Return Value
The string representation of this map bounds object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()