The label object has already been assigned, so you can directly set up
the properties on it, like:
labelObj label = layer.getClass(0).label;
label.type = MS_FONT_TYPE.MS_BITMAP;
label.size = (int)MS_BITMAP_FONT_SIZES.MS_MEDIUM;
label.force = mapscript.MS_TRUE;
label.partials = mapscript.MS_TRUE;
label.position = (int)MS_LABEL_POSITIONS.MS_CC;
To provide the content for the annotation you should set up either
the layerObj.labelitem, the classObj.setText() or shapeObj.text
appropriately. See the mapscript documentation for more details about
these items.
Best regards,
Tamas
2007/6/5, lakku <[EMAIL PROTECTED]>:
iam working with c# mapscript
i want to display layer labels on the map
i have written like this
layer = map.getLayerByName("VILLAGES");
classobj clas = layer.getClass(0);
labelObj clabel = clas.label;
now how to assign this labelobj to map
plz tell me the code
--
View this message in context:
http://www.nabble.com/layer-labels-tf3869528.html#a10963183
Sent from the Mapserver - User mailing list archive at Nabble.com.