From: Cedar C. <ccr...@ty...> - 2005-04-27 18:42:26
|
I am having difficulties with the max/min Scale denominators. I was wondering if anybody would be able to help me. =20 So I made this function public void setMaxScaleDenominator(GisLayer layer, double scale) { FeatureTypeStyle typeStyles[]=3D layer.getStyle().getFeatureTypeStyles(); for (int i =3D 0; i < typeStyles.length; i++) { Rule rules[] =3D typeStyles[i].getRules(); for (int j =3D 0; j < rules.length; j++) { rules[j].setMaxScaleDenominator(scale); } } } =20 That goes through my layer and sets all of the rules of all of the typestyles to have the same scale denominator. So set the scale and nothing happens there is no filtering. I am using a StyledMapPane for my rendering and I want small features to not be drawn when a user zooms out. Thanks =20 Cedar =20 |