[mapguide-users] Feature Label Alignment

Frank Misurec frank.misurec at open-minds.ca
Mon Aug 16 09:32:32 EDT 2010


Hi,

 

I have a layer definition that uses a fixed label. The Horizontal and
Vertical alignment properties are set to use properties from the feature
class. The feature source is sdf which is created dynamically during
runtime. The feature with the label (multiline) is shown on the map but the
alignment properties appear to be ignored and always default to 'Center' for
horizontal alignment and 'Halfline' for Vertical alignment. I tried setting
the alignment property using the following approaches, for example setting
the horizontal alignment:

 

MgStringProperty hAlignProp = new MgStringProperty("HALIGN", "Left");

properties.Add(hAlignProp);

 

or

 

MgStringProperty hAlignProp = new MgStringProperty("HALIGN", "\'Left\'");

properties.Add(hAlignProp);

 

 

If the layer definition uses one of the fixed values (ie. 'Left') instead of
a property then the alignment works. Does anyone know the proper way to
specify the alignment property for a label? I'm using MGE 2011.

 

Thanks,

 

Frank.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100816/dc08c58b/attachment.html


More information about the mapguide-users mailing list