Sector
Constructors
Properties
Returns the angle midway between this sector's minimum and maximum latitudes.
Returns the angle midway between this sector's minimum and maximum longitudes.
Returns the angle between this sector's minimum and maximum latitudes.
Returns the angle between this sector's minimum and maximum longitudes.
Indicates whether this sector contains the full range of latitude 90 to +90 and longitude -180 to +180.
The sector's maximum latitude.
The sector's maximum longitude.
The sector's minimum latitude.
The sector's minimum longitude.
Functions
Computes a column number for a tile within a level given the tile's longitude.
Computes the last column number for a tile within a level given the tile's maximum longitude.
Computes the last row number for a tile within a level given the tile's maximum latitude.
Computes a row number for a tile within a level given the tile's latitude.
Indicates whether this sector contains a specified geographic location. An empty sector never contains a location.
Indicates whether this sector fully contains a specified sector. This sector contains the specified sector when the specified sector's boundaries are completely contained within this sector's boundaries, or are equal to this sector's boundaries. An empty sector never contains another sector.
The sectors are assumed to have normalized angles (angles within the range -90, +90 latitude and -180, +180 longitude).
Indicates whether this sector contains a specified geographic location. An empty sector never contains a location. Assumes normalized angles: -90, +90, -180, +180
Computes the intersection of this sector and a specified sector, storing the result in this sector and returning whether or not the sectors intersect. Two sectors intersect when both the latitude boundaries and the longitude boundaries overlap by a non-zero amount. An empty sector never intersects another sector. When there is no intersection, this returns false and leaves this sector unchanged.
The sectors are assumed to have normalized angles (angles within the range -90, +90 latitude and -180, +180 longitude).
Indicates whether this sector intersects a specified sector. Two sectors intersect when both the latitude boundaries and the longitude boundaries overlap by a non-zero amount. An empty sector never intersects another sector.
The sectors are assumed to have normalized angles (angles within the range -90, +90 latitude and -180, +180 longitude).
Indicates if this sector is next to, or intersects, a specified sector. Two sectors intersect when the conditions of the Sector.intersects methods have been met, and if the boundary or corner is shared with the specified sector. This is a temporary implementation and will be deprecated in future releases.
The sectors are assumed to have normalized angles (angles within the range -90, +90 latitude and -180, +180 longitude).
Determines minimal level number relevant for sector of the specified size
Sets this sector to the full range of latitude 90 to +90 and longitude -180 to +180.
Sets this sector to the union of itself and a specified location.
Sets this sector to the union of itself and a specified sector. This has no effect if the specified sector is empty. If this sector is empty, it is set to the specified sector. Assumes normalized angles: -90, +90, -180, +180
Sets this sector to the union of itself and a specified location. Assumes normalized angles: -90, +90, -180, +180
Sets this sector to the union of itself and an array of specified locations. If this sector is empty, it bounds the specified locations. The array is understood to contain location of at least two coordinates organized as (longitude, latitude, ...), where stride indicates the number of coordinates between longitude values.