Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

share|improve this question
code posted on ESRI Forum… – pdog May 18 '12 at 18:09

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.