Select to view content in your preferred language

onExtentChange levelChange is of type Extent not Boolean

1008
2
Jump to solution
05-15-2013 03:54 PM
JaniceBaird
Frequent Contributor
Has anyone run into this issue? I am trying to use the levelChange object when the extent of the map changes. The documentation says that it should be Boolean but I am getting an Extent Object.

I am using javascript api 3.3, dojo 1.8, arcgis server 10.1

thanks,
Janice.
0 Kudos
1 Solution

Accepted Solutions
ShreyasVakil
Frequent Contributor
onExtentChange event has 4 parameters and first one always return an extent object. If you want a levelChange boolean use the following and you would get a boolean for levelChange:

dojo.connect(map, "onExtentChange", function(extent,delta,levelChange,lod){   console.log(levelChange);  });



Let me know if it helps!

Thanks,
Shreyas

View solution in original post

0 Kudos
2 Replies
ShreyasVakil
Frequent Contributor
onExtentChange event has 4 parameters and first one always return an extent object. If you want a levelChange boolean use the following and you would get a boolean for levelChange:

dojo.connect(map, "onExtentChange", function(extent,delta,levelChange,lod){   console.log(levelChange);  });



Let me know if it helps!

Thanks,
Shreyas
0 Kudos
by Anonymous User
Not applicable
Original User: janiceb

Shreyas,

Thank-you! My brain is total mush today from too much work!

Your reply makes complete sense and I will try it out in the morning and give you a big "CHECK-MARK".

Thanks,
Janice.
0 Kudos