Select to view content in your preferred language

Changes to PopUp

1158
2
Jump to solution
03-09-2013 09:04 PM
ShaunWeston
Frequent Contributor
I'm just trying to figure out where to make changes to the popup functionality in Flex Viewer 3.x. I've got some popups configured and working, but would like to make a couple of simple changes that I don't know where in the source code to change:

- Change the symbology when clicking on a feature from that cyan color to something else. I thought this would be in the config somewhere, maybe I'm missing it?

- When clicking the close button on a popup, I would like the feature to remain selected rather than it being cleared, so need to find where int the code this handler is that is clearing the graphics?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Shaun,

   To control the selection color of popups just add this to the UIManager.as in the setViewerStyle function
        var cssStyleDeclarationMap:CSSStyleDeclaration = topLevelStyleManager.getStyleDeclaration("com.esri.ags.Map");         cssStyleDeclarationMap.setStyle("infoWindowRendererHighlightColor", 0xff0000);
As far as the action of the close button unselecting the feature, I believe that is inside the API code.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Shaun,

   To control the selection color of popups just add this to the UIManager.as in the setViewerStyle function
        var cssStyleDeclarationMap:CSSStyleDeclaration = topLevelStyleManager.getStyleDeclaration("com.esri.ags.Map");         cssStyleDeclarationMap.setStyle("infoWindowRendererHighlightColor", 0xff0000);
As far as the action of the close button unselecting the feature, I believe that is inside the API code.
0 Kudos
ShaunWeston
Frequent Contributor
Sweet thank you!

In regards to the close button unselecting the feature, that's unfortunate. Most organisations do want that to clear on close, but I'm working with a organisation at the moment, that wants it to remain highlighted, I'll figure something out though.
0 Kudos