Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am using Robert's compiled TOC widget and attempting to modify the LocateWidget.mxml for the flexviewer. The workflow I have in mind is that user performs an address search clicks the locate button and all my defined operational layers turn on. The clear button would then turn them off.

My attempt at the code is posted here: http://forums.arcgis.com/threads/57851-Modifying-the-LocateWidget.mxml-Locate-and-Clear-functions

share|improve this question
code posted on ESRI Forum forums.arcgis.com/threads/… –  pdog May 18 '12 at 18:09

1 Answer 1

You need to check in the ActionScript code block for scale change, as soon as this takes place you need to check if the scale is larger then 18056 scale, turn on the OP Layers otherwise keep default.

If you could post your MXML file it will be of more help to assist you in this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.