Hi,
We playing with ArcGIS and FlexBuilder for the first time. We are trying to build up a simple map application for searching real estates based on their location and type.
Now we have problems with labelling the points. In our service we have two graphics layers and the graphics for these layers come from a query, so in both graphic layers the data is always the same. The first graphics layer is visible all the time and it shows only the points based on the query. The other layer shows the points with labels and this layer should become visible when certain limiting value in map scale is reached.
Our problem is that we can't get that other layer with labels visible. We have an event listener which is checking the map scale all the time. Then we have a boolean fuction (called labelling) which returns true when the map scale is below the limiting scale value. When map scale is bigger than the limiting value, the fuction returns false. Then we are trying use that boolean fuction in our graphics layer's (with labels) visibility condition. Like this: visible = "{labelling()}" . When we are running our application, we don't get any error messages but when we execute a query, only the points are shown on a map and nothing more.
So we are wondering what we are doing wrong? What kind of things can be put to the graphics layer's visibility condition?
We appreciate all kind tips and are very thankful if anyone can give us some tips or hints.
- Sanna, Sonja, Laura and Krista