Select to view content in your preferred language

Robert's Identify Widget keepActive flag stops popups

625
2
10-28-2011 12:31 PM
by Anonymous User
Not applicable
I'm trying to think of a way that popups would continue to display over graphics while the keepActive flag is true(drawTool active) in Robert's Enhnaced Identify Widget.  Currently, they do not display while in drawing mode.  Maybe, what I want to do is not possible.  Does anyone know of a way to do this?

I am wondering if I could place a listener on the drawTool itself.
drawTool.addEventListener(MouseEvent.MOUSE_MOVE, mouseMovedOverGraphic);

function mouseMovedOverGraphic();
  // get cursor x y
  // drill into graphics layer to find graphic at timer interval
  // show popup at cursor position

Has anyone done something like this or have another idea? thanks
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Dan,

   You can but the change would have to be in the MapManager.mxml...

Search the MapManager.mxl for:

drawTool.activate(tool);


and replace it with this:

(showDrawTips == false) ? drawTool.activate(tool, true) : drawTool.activate(tool);


The above is the best I can think of right now to determine if the activate came from the identify tool. As my identify tool is presently the only one that is calling for the showDrawTips to not be shown. The second optional parameter in the activate function tells the drawtool to enableGraphicsLayerMouseEvents.
0 Kudos
by Anonymous User
Not applicable
Yes, Robert - that's it.  You know your stuff.  thanks

I just had to add the function name to showDrawTips:
(drawTool.showDrawTips == false) ? drawTool.activate(tool, true) : drawTool.activate(tool);

And, place the true parameter on the activateIdentifyTool function's activate lines:
drawTool.activate(DrawTool.MAPPOINT,true);

Not sure why I had to do the second part.  But, it works perfectly.
0 Kudos