Although, the program prints a message "out of scale" over and over again when the scale is out of the bounds set.
I have a lot of layers and the message repeats for every layer, every time when I perform a scroll or zoom of the map, so after a few moves there are hundreds of these messages in the command prompt.
Is there any way to prevent the program from printing these irritating messages?
And one more thing as we are speaking about maps styles:
I observed there are some ways to pass the opacity, size and rotation of a graphic object as attribute expressions:
createGraphic(ExternalGraphic[] externalGraphics,
Mark[] marks,
Symbol[] symbols,
_expression_ opacity,
_expression_ size,
_expression_ rotation)MY question is - is there some way to pass the name of the ExternalGraphic object as an attribute _expression_. I would like to have a 'GRAPHIC' column in my database with the paths and names of the icons to represent each feature instead of setting one icon for all the features in a layer. Is there some way?
Wojtek
On 2/13/06, Cory Horner <[EMAIL PROTECTED]> wrote:
Hi Wojtek,
> This is one of the methods I use to create styles for my map layers. I
> use MySQL database to hold the features and their names. The "NAME"
> attribute is the name of the feature. I would like to find some way to
> hide/show the text labels depending on the zoom of the map. If the
> user zooms the map out, the text labels should disappear (if there is
> a lot of them, the image gets really messy). If he zooms in, they
> should appear again. Can it be done by adding some rules here?
This can be done by setting the MinScaleDenominator and
MaxScaleDenominator of your existing rule. Both elements are optional
-- they define the lower and upper bounds of the scale for which your
symbolizer will be drawn.
For example:
rule.setMinScaleDenominator(1e6);
would only draw your labels when the scale of the map is greater than or
equal to 1:1,000,000.
Cheers,
Cory.
----
Cory Horner
Refractions Research Inc.
http://www.refractions.net
