Select to view content in your preferred language

What happened to containsExtent method of Extent?

983
4
Jump to solution
10-04-2010 11:33 AM
KenBuja
MVP Esteemed Contributor
This method was in the 1.3 version of the API but isn't showing up in the 2.x version. Is there a reason it was dropped?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DasaPaddock
Esri Regular Contributor
0 Kudos
4 Replies
DasaPaddock
Esri Regular Contributor
It was replaced with the contains() method that accepts any Geometry type.
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/geometry/Extent.html#contains()
0 Kudos
KenBuja
MVP Esteemed Contributor
It's too bad that now there's the extra step of creating a polygon when determining whether the extent of several unioned extents is contained within another extent.
0 Kudos
DasaPaddock
Esri Regular Contributor
I don't follow why there's now an extra step? You can still pass an Extent to the contains() method since Extent is a type of Geometry.
0 Kudos
KenBuja
MVP Esteemed Contributor
Ah...thanks for pointing that out. I didn't take note of the inheritance.
0 Kudos