Select to view content in your preferred language

Remove glowfilter on a certain scale with InfoWindow

1073
5
12-19-2012 10:35 PM
DavidRaijmakers
Regular Contributor
I am facing some problems with the glowfilter.

I know how to remove it in all places, but i want to remove it on a certain scale.
Because the problem with the glow only takes place at a certain scale.

So what i do now is, i check if the scale is lower than 5000. if so, set infowindowrenderhighlightcolor to NaN.
So if you click on a POINT/POLYLINE/POLYGON lower than 5000 the glowfilter is not set around the selection.

But here's my problem:

When i click on a POINT/POLYLINE/POLYGON and the infowindow shows, and then zoom in to scale < 5000, the glow should remove, but i dont know how to.

Here's my code from now.

Does anyone know how to clear/remove this filter?

if (map.scale < 5000) {



map.setStyle('infoWindowRendererHighlightColor', NaN);

    }
    else if (map.scale > 5000) {
    
     map.setStyle('infoWindowRendererHighlightColor', 0x00FFFF);
   
    }

Tags (2)
0 Kudos
5 Replies
DavidRaijmakers
Regular Contributor
Is there any news on this problem?

Or does anyone know how to delete the filter from map?

Thanks in advance
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
David,

   To disable the glow completely put these two lines in the UIManager.as in the setViewerStyle function.

        var cssStyleDeclarationMap:CSSStyleDeclaration = topLevelStyleManager.getStyleDeclaration("com.esri.ags.Map");
        cssStyleDeclarationMap.setStyle("infoWindowRendererHighlightColor", NaN);
0 Kudos
DavidRaijmakers
Regular Contributor
I know how to delete the glowfilter completely from the map. But thats not what i want.

The problem with the glowfilter only occurs on a certain scale level.

So what i already figured out was how to set it to NaN or cyan on a certain scale but this doesnt resolve the problem.

This is because the glowfilter doesnt gets removed from the map. Only the newly clicked items wont have the glowfilter at that scale.
But i want to know if there's a way to delete the current glowfilter from the map. And that at a certain scale of the map.

Thanks Robert Scheitlin in advance.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
David,

   To do something like that you would need to loop through all of the maps featurelayers and set their selectionColor to NaN.
0 Kudos
DavidRaijmakers
Regular Contributor
So basically there's no solution to remove all the glowfilters from the map.
Let's hope there's a fix in 3.2
0 Kudos