geos_rfleet

esri.Map.setExtent mutates extent?

Discussion created by geos_rfleet on Jul 20, 2010
Latest reply on Jul 21, 2010 by jcox
(AGS JS API 1.6)

I have an extent that I want to use as a default so at any point I can call map.setExtent(defaultExt) but it appears that setExtent is mutating the value of defaultExt.

If I check the min/max values before and after the call to setExtent they are changed, has anyone else seen this?

It means that I effectively end up with moving goalposts, I suppose I'll have to clone my default extent and pass the clone to setExtent.

Outcomes