[mapguide-users] [MapGuide 2.5.2 Maestro 6.0.0.8244]Composite Symbolization MTEXT
Rémy Gourrat
rgourrat at ag-carto.fr
Tue Jul 28 02:12:54 PDT 2015
Hi,
I try to use Composite Symbolization MTEXT with an expression in Text Content.
Before, i valided this expression in a simple point display like text:
concat('Id : ',ASSET_ID,'\nZt. : ',COTE_TAMPON,'\nProf. : ',PROFONDEUR,'\nRad. : ',RADIER)
This label point displays with 4 lines and it's fine.
but when i use it in Composite Symbolization MTEXT, the MTEXT on the map is only one line.
Is it possible to offset the MTEXT ? I try PositionX and PositionY but not success.
I can't have access to Offset property with Maestro for MTEXT
My XML Definition
<?xml version="1.0"?>
<CompositeSymbolization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SymbolInstance>
<SimpleSymbolDefinition>
<Name>MTEXT</Name>
<Description>Default MTEXT Symbol</Description>
<Graphics>
<Text>
<Content>%CONTENT%</Content>
<FontName>%FONTNAME%</FontName>
<Bold>%BOLD%</Bold>
<Italic>%ITALIC%</Italic>
<Underlined>%UNDERLINED%</Underlined>
<Overlined>%OVERLINED%</Overlined>
<Height>%FONTHEIGHT%</Height>
<PositionX>%StyleEditorGenerated_TextPositionX_0%</PositionX>
<PositionY>%StyleEditorGenerated_TextPositionY_0%</PositionY>
<HorizontalAlignment>%HORIZONTALALIGNMENT%</HorizontalAlignment>
<VerticalAlignment>%VERTICALALIGNMENT%</VerticalAlignment>
<Justification>%JUSTIFICATION%</Justification>
<LineSpacing>%LINESPACING%</LineSpacing>
<TextColor>%TEXTCOLOR%</TextColor>
<GhostColor>%GHOSTCOLOR%</GhostColor>
<Frame>
<LineColor>%FRAMELINECOLOR%</LineColor>
<FillColor>%FRAMEFILLCOLOR%</FillColor>
<OffsetX>0</OffsetX>
<OffsetY>0</OffsetY>
</Frame>
<Markup>'MTEXT'</Markup>
</Text>
</Graphics>
<PointUsage>
<Angle>%ANGLE%</Angle>
</PointUsage>
<ParameterDefinition>
<Parameter>
<Identifier>CONTENT</Identifier>
<DefaultValue>concat('Id : ',ASSET_ID,'\nZt. : ',COTE_TAMPON,'\nProf. : ',PROFONDEUR,'\nRad. : ',RADIER)</DefaultValue>
<DisplayName>T&ext</DisplayName>
<Description>Text</Description>
<DataType>Content</DataType>
</Parameter>
<Parameter>
<Identifier>FONTNAME</Identifier>
<DefaultValue>'ArialNarrow'</DefaultValue>
<DisplayName>&Font Name</DisplayName>
<Description>Font Name</Description>
<DataType>FontName</DataType>
</Parameter>
<Parameter>
<Identifier>FONTHEIGHT</Identifier>
<DefaultValue>8</DefaultValue>
<DisplayName>Font &Size</DisplayName>
<Description>Font Size</Description>
<DataType>FontHeight</DataType>
</Parameter>
<Parameter>
<Identifier>BOLD</Identifier>
<DefaultValue>false</DefaultValue>
<DisplayName>Bold</DisplayName>
<Description>Bold</Description>
<DataType>Bold</DataType>
</Parameter>
<Parameter>
<Identifier>ITALIC</Identifier>
<DefaultValue>false</DefaultValue>
<DisplayName>Italic</DisplayName>
<Description>Italic</Description>
<DataType>Italic</DataType>
</Parameter>
<Parameter>
<Identifier>UNDERLINED</Identifier>
<DefaultValue>false</DefaultValue>
<DisplayName>Underlined</DisplayName>
<Description>Underlined</Description>
<DataType>Underlined</DataType>
</Parameter>
<Parameter>
<Identifier>OVERLINED</Identifier>
<DefaultValue>false</DefaultValue>
<DisplayName>Overlined</DisplayName>
<Description>Overlined</Description>
<DataType>Overlined</DataType>
</Parameter>
<Parameter>
<Identifier>JUSTIFICATION</Identifier>
<DefaultValue>'FromAlignment'</DefaultValue>
<DisplayName>Justification</DisplayName>
<Description>Justification</Description>
<DataType>Justification</DataType>
</Parameter>
<Parameter>
<Identifier>LINESPACING</Identifier>
<DefaultValue>1.05</DefaultValue>
<DisplayName>Line Spacing</DisplayName>
<Description>Line Spacing</Description>
<DataType>LineSpacing</DataType>
</Parameter>
<Parameter>
<Identifier>GHOSTCOLOR</Identifier>
<DefaultValue />
<DisplayName>Ghost Color</DisplayName>
<Description>Ghost Color</Description>
<DataType>GhostColor</DataType>
</Parameter>
<Parameter>
<Identifier>FRAMELINECOLOR</Identifier>
<DefaultValue />
<DisplayName>Frame Line Color</DisplayName>
<Description>Frame Line Color</Description>
<DataType>FrameLineColor</DataType>
</Parameter>
<Parameter>
<Identifier>FRAMEFILLCOLOR</Identifier>
<DefaultValue />
<DisplayName>Frame Fill Color</DisplayName>
<Description>Frame Fill Color</Description>
<DataType>FrameFillColor</DataType>
</Parameter>
<Parameter>
<Identifier>TEXTCOLOR</Identifier>
<DefaultValue>0xff000000</DefaultValue>
<DisplayName>Text Color</DisplayName>
<Description>Text Color</Description>
<DataType>TextColor</DataType>
</Parameter>
<Parameter>
<Identifier>VERTICALALIGNMENT</Identifier>
<DefaultValue>'Halfline'</DefaultValue>
<DisplayName>&Vertical Alignment</DisplayName>
<Description>Vertical Alignment</Description>
<DataType>VerticalAlignment</DataType>
</Parameter>
<Parameter>
<Identifier>ROTATION</Identifier>
<DefaultValue>0.0</DefaultValue>
<DisplayName>&Rotation</DisplayName>
<Description>Rotation</Description>
<DataType>Angle</DataType>
</Parameter>
<Parameter>
<Identifier>HORIZONTALALIGNMENT</Identifier>
<DefaultValue>'Left'</DefaultValue>
<DisplayName>Hori&zontal Alignment</DisplayName>
<Description>Horizontal Alignment</Description>
<DataType>HorizontalAlignment</DataType>
</Parameter>
<Parameter>
<Identifier>StyleEditorGenerated_TextPositionX_0</Identifier>
<DefaultValue>1</DefaultValue>
<DisplayName>PositionX</DisplayName>
<Description>PositionX</Description>
<DataType>Real</DataType>
</Parameter>
<Parameter>
<Identifier>StyleEditorGenerated_TextPositionY_0</Identifier>
<DefaultValue>1</DefaultValue>
<DisplayName>PositionY</DisplayName>
<Description>PositionY</Description>
<DataType>Real</DataType>
</Parameter>
</ParameterDefinition>
</SimpleSymbolDefinition>
<ParameterOverrides>
<Override>
<SymbolName>MTEXT</SymbolName>
<ParameterIdentifier>StyleEditorGenerated_TextPositionY_0</ParameterIdentifier>
<ParameterValue>1</ParameterValue>
</Override>
<Override>
<SymbolName>MTEXT</SymbolName>
<ParameterIdentifier>StyleEditorGenerated_TextPositionX_0</ParameterIdentifier>
<ParameterValue>1</ParameterValue>
</Override>
<Override>
<SymbolName>MTEXT</SymbolName>
<ParameterIdentifier>HORIZONTALALIGNMENT</ParameterIdentifier>
<ParameterValue>'Left'</ParameterValue>
</Override>
<Override>
<SymbolName>MTEXT</SymbolName>
<ParameterIdentifier>VERTICALALIGNMENT</ParameterIdentifier>
<ParameterValue>'Halfline'</ParameterValue>
</Override>
<Override>
<SymbolName>MTEXT</SymbolName>
<ParameterIdentifier>CONTENT</ParameterIdentifier>
<ParameterValue>concat('Id : ',ASSET_ID,'\nZt. : ',COTE_TAMPON,'\nProf. : ',PROFONDEUR,'\nRad. : ',RADIER)</ParameterValue>
</Override>
<Override>
<SymbolName>MTEXT</SymbolName>
<ParameterIdentifier>FONTNAME</ParameterIdentifier>
<ParameterValue>'ArialNarrow'</ParameterValue>
</Override>
<Override>
<SymbolName>MTEXT</SymbolName>
<ParameterIdentifier>FONTHEIGHT</ParameterIdentifier>
<ParameterValue>8</ParameterValue>
</Override>
</ParameterOverrides>
</SymbolInstance>
</CompositeSymbolization>____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Thanks for your help
Rémy
-----
AG-Carto - Bayonne
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/MapGuide-2-5-2-Maestro-6-0-0-8244-Composite-Symbolization-MTEXT-tp5217316.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20150728/2457ba8c/attachment.html>
More information about the mapguide-users
mailing list