Dear all,
I am trying to label the polygons in my map like this:
TextSymbolizer textSym = null;
StyleBuilder sb = new StyleBuilder();
Rule ruleText = null;
textSym = sb.createTextSymbolizer(Color.BLACK, sb.createFont("Verdana", false,
true, 24d),"overview");
textSym.setHalo(sb.createHalo(Color.WHITE, 1));
ruleText = sb.createRule(textSym);
ruleText.setMinScaleDenominator(0.0d);
Rule rule = sf.createRule();
rule.symbolizers().add(sym);
FeatureTypeStyle fts = sf.createFeatureTypeStyle(new Rule[]{ruleText});
Style style = sf.createStyle();
style.featureTypeStyles().add(fts);
which works - but not as I want it to: The problem is that some of the labels
get displayed only when the map is zoomed until the polygons' area (which did
not show labels in the higher zoomlevel) is big enough to show the label (so it
seems, the setMinScaleDenominator seems not to help here, I tried different
scales, to no avail).
Is there a way to circumvent this behaviour? I would like to show a map of
Europe and label 7 city regions in a map scale of 1:20M so I really need a way
of displaying a label for a small polygon at this small scale. Is that possible?
Thanks again and best regards
Jan Petes-Anders
--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users