|
From: John P. <byh...@gm...> - 2012-07-05 21:40:49
|
Cabn anyone say how I can set the color of the text labels for the
graticule text. I have the following code:
LineSymbolizerOptions lineOptions = new LineSymbolizerOptions();
lineOptions.setStrokeColor("#ccf");
lineOptions.setStrokeOpacity(0.5);
lineOptions.setStrokeWidth(1);
LineSymbolizer line = new LineSymbolizer(lineOptions);
TextSymbolizerOptions textOptions = new TextSymbolizerOptions();
textOptions.setFontSize("9px");
textOptions.getJSObject().setProperty("strokeColor", "#ff0000");
TextSymbolizer text = new TextSymbolizer(textOptions);
final GraticuleOptions grtOptions = new GraticuleOptions();
grtOptions.setTargetSize(200);
grtOptions.setLabelled(true);
grtOptions.setLineSymbolyzer(line);
grtOptions.setLabelSymbolizer(text);
Graticule grt = new Graticule(grtOptions);
grt.setAutoActivate(true);
this.map.addControl(grt);
but the text is still drawn with a black color.
John
|