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?
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);
}