Packagecom.esri.ags.geometry
Classpublic class WebMercatorExtent
InheritanceWebMercatorExtent Inheritance Extent Inheritance Geometry Inheritance Object

Since : ArcGIS API for Flex 2.1

An extent defined using latitude and longitude, but stored internally in web mercator units. Makes it easy to define an extent using latitude and longitude, but then use it with a web mercator map. Functionally equivalent to creating an extent in geographic coordinates, then projecting it using WebMercatorUtil.

Default MXML PropertyspatialReference

View the examples

See also

WebMercatorMapPoint
com.esri.ags.utils.WebMercatorUtil
Live Sample - Identify features.


Public Properties
 PropertyDefined By
 Inheritedcenter : MapPoint
[read-only] Returns the centerpoint of the extent.
Extent
 Inheritedextent : Extent
[override] [read-only] The extent of this Extent.
Extent
 Inheritedheight : Number
[read-only] Distance between ymin and ymax.
Extent
  maxlat : Number
The maximum latitude value.
WebMercatorExtent
  maxlon : Number
The maximum longitude value.
WebMercatorExtent
  minlat : Number
The minimum latitude value.
WebMercatorExtent
  minlon : Number
The minimum longitude value.
WebMercatorExtent
 InheritedspatialReference : SpatialReference
The spatial reference of the geometry.
Geometry
 Inheritedtype : String
[override] [read-only] The type of geometry is EXTENT.
Extent
 Inheritedwidth : Number
[read-only] Distance between xmin and xmax.
Extent
 Inheritedxmax : Number
Top-right x-coordinate of an extent envelope.
Extent
 Inheritedxmin : Number
Bottom-left x-coordinate of an extent envelope.
Extent
 Inheritedymax : Number
Top-right y-coordinate of an extent envelope.
Extent
 Inheritedymin : Number
Bottom-left y-coordinate of an extent envelope.
Extent
Public Methods
 MethodDefined By
  
WebMercatorExtent(minlon:Number = 0, minlat:Number = 0, maxlon:Number = 0, maxlat:Number = 0)
Create a new WebMercatorExtent object.
WebMercatorExtent
 Inherited
Returns a new extent of the same size but re-centered on the specified location.
Extent
 Inherited
contains(geometry:Geometry):Boolean
Checks if a geometry is contained in "this" extent.
Extent
 Inherited
expand(factor:Number):Extent
Returns a new expanded extent.
Extent
 Inherited
Returns a new extent of the area that are in both extents.
Extent
 Inherited
intersects(geometry:Geometry):Boolean
Checks if the geometry in the argument intersects "this" extent.
Extent
 Inherited
offset(dx:Number, dy:Number):Extent
Returns a new extent with the given offset from "this" extent.
Extent
 Inherited
Returns a new Polygon with one ring containing points equivalent to the coordinates of this extent.
Extent
 Inherited
Returns a new extent that covers both areas.
Extent
 Inherited
update(xmin:Number, ymin:Number, xmax:Number, ymax:Number, spatialReference:SpatialReference = null):void
Updates extent with new values.
Extent
Public Constants
 ConstantDefined By
 InheritedEXTENT : String = esriGeometryEnvelope
[static] An extent is defined by xmin, ymin, xmax and ymax.
Geometry
 InheritedMAPPOINT : String = esriGeometryPoint
[static] A MapPoint is a basic point with x (often longitude), y (often latitude) and an optional spatial reference.
Geometry
 InheritedMULTIPOINT : String = esriGeometryMultipoint
[static] A multipoint consists of one or more MapPoint(s).
Geometry
 InheritedPOLYGON : String = esriGeometryPolygon
[static] A polygon is a set of areas with three or more points.
Geometry
 InheritedPOLYLINE : String = esriGeometryPolyline
[static] A polyline is set of lines with two or more points.
Geometry
Property Detail
maxlatproperty
maxlat:Number

The maximum latitude value.

This property can be used as the source for data binding.


Implementation
    public function get maxlat():Number
    public function set maxlat(value:Number):void
maxlonproperty 
maxlon:Number

The maximum longitude value.

This property can be used as the source for data binding.


Implementation
    public function get maxlon():Number
    public function set maxlon(value:Number):void
minlatproperty 
minlat:Number

The minimum latitude value.

This property can be used as the source for data binding.


Implementation
    public function get minlat():Number
    public function set minlat(value:Number):void
minlonproperty 
minlon:Number

The minimum longitude value.

This property can be used as the source for data binding.


Implementation
    public function get minlon():Number
    public function set minlon(value:Number):void
Constructor Detail
WebMercatorExtent()Constructor
public function WebMercatorExtent(minlon:Number = 0, minlat:Number = 0, maxlon:Number = 0, maxlat:Number = 0)

Create a new WebMercatorExtent object. The unit of the xmin,ymin,xmax,ymax properties will be defined in web mercator. A instance of SpatialReference with a wkid of web mercator is assigned internally to the spatialReference property.

Parameters
minlon:Number (default = 0) — The minimum longitude value.
 
minlat:Number (default = 0) — The minimum latitude value.
 
maxlon:Number (default = 0) — The maximum longitude value.
 
maxlat:Number (default = 0) — The maximum latitude value.
Examples
Specifying the extent of a Map using mxml tags inside the Map:
 <esri:Map>
     <esri:extent>
         <esri:WebMercatorExtent minlon="15" minlat="54" maxlon="40" maxlat="71"/>
     </esri:extent>
 </esri:Map>