[Chameleon] Re: LayerLabel

Stephan Holl sholl at gmx.net
Tue May 17 06:33:58 EDT 2005


Hello Bart, 

On Tue, 17 May 2005 11:01:28 +0200 "Bart van den Eijnden" <BEN at Syncera-
ITSolutions.NL> wrote:

> Hi Stephan,
> 
> first of all the widget was written by an ex-colleague of me at
> Geodan (a Dutch GIS company).

OK, thanks for clearing this.

> 
> I think the way the widget operates is, it defines an SLD document
> and then applies it to the layer. So you need to adapt the SLD in
> order for your changes to work.
> 
> I do see font-color in there, but I don't know by head how you can
> change the label position using SLD.

I changed font-color by hand, but the result was always black...

> 
> $szLabelSLD = "<StyledLayerDescriptor
> version='1.0.0'><NamedLayer><Name>$szLayerName</
> Name><UserStyle><FeatureTypeStyle><Rule><TextSymbolizer><Label>$this-
> Name>>mszAttribute</Label><Font><CssParameter name='font-
> Name>>color'>#000000</CssParameter><CssParameter name='font-family'>
> Name>>$this->mszFont</CssParameter><CssParameter name='font-size'>
> Name>>$this->mszFontSize</CssParameter></Font></TextSymbolizer></
> Name>>Rule></FeatureTypeStyle></UserStyle></NamedLayer></
> Name>>Rule>StyledLayerDescriptor>"; 
> 
> Maybe another possibility would be to override the values after the
> SLD has been set on the layer:
> 
> $oAnnoLayer->applysld( $szLabelSLD , $szLayerName ); 
> 
> so perform your Mapscript code after this statement.

I will do this. 

But where is the definition of the created anotation-layer. When I look
at the resulting mapfile in the session-folder, I cannot find the
mapscript-code which generates the annotation-layer.

Thank you for your help.

Best

	Stephan

-- 
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/chameleon/attachments/20050517/c1980125/attachment.bin


More information about the Chameleon mailing list