[mapguide-users] Arrows on lines

Jordon_Sangers jsangers at ingersoll.ca
Thu Jun 7 11:23:30 PDT 2018


Hans,

I recently moved our system over from AIMS to Mapguide, and started using
Meastro as well.  We use a simple '>' as arrows to show direction of flow on
storm sewers.  I can't seem to edit the symbol component in the viewer, I
get an 'object reference not set to an instance of an object' error.  But I
can open up the XML to make changes.

Here is a screenshot of the composite symbol,

<http://osgeo-org.1560.x6.nabble.com/file/t383270/screenshot.png> 

Here is the XML for the MTEXT protion

<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.0</OffsetX>
            <OffsetY>0.0</OffsetY>
          </Frame>
          <Markup>'MTEXT'</Markup>
        </Text>
      </Graphics>
      <LineUsage>
        <VertexControl>OverlapNone</VertexControl>
        <Repeat>15000.00048</Repeat>
        <VertexAngleLimit>180</VertexAngleLimit>
      </LineUsage>
      <ParameterDefinition>
        <Parameter>
          <Identifier>CONTENT</Identifier>
          <DefaultValue>'>'</DefaultValue>
          <DataType>Content</DataType>
        </Parameter>
        <Parameter>
          <Identifier>FONTNAME</Identifier>
          <DefaultValue>'Arial'</DefaultValue>
          <DataType>FontName</DataType>
        </Parameter>
        <Parameter>
          <Identifier>FONTHEIGHT</Identifier>
          <DefaultValue>4000</DefaultValue>
          <DataType>FontHeight</DataType>
        </Parameter>
        <Parameter>
          <Identifier>BOLD</Identifier>
          <DefaultValue>false</DefaultValue>
          <DataType>Bold</DataType>
        </Parameter>
        <Parameter>
          <Identifier>ITALIC</Identifier>
          <DefaultValue>false</DefaultValue>
          <DataType>Italic</DataType>
        </Parameter>
        <Parameter>
          <Identifier>UNDERLINED</Identifier>
          <DefaultValue>false</DefaultValue>
          <DataType>Underlined</DataType>
        </Parameter>
        <Parameter>
          <Identifier>OVERLINED</Identifier>
          <DefaultValue>false</DefaultValue>
          <DataType>Overlined</DataType>
        </Parameter>
        <Parameter>
          <Identifier>JUSTIFICATION</Identifier>
          <DefaultValue>'FromAlignment'</DefaultValue>
          <DataType>Justification</DataType>
        </Parameter>
        <Parameter>
          <Identifier>LINESPACING</Identifier>
          <DefaultValue>1.05</DefaultValue>
          <DataType>LineSpacing</DataType>
        </Parameter>
        <Parameter>
          <Identifier>GHOSTCOLOR</Identifier>
          <DefaultValue>
          </DefaultValue>
          <DataType>GhostColor</DataType>
        </Parameter>
        <Parameter>
          <Identifier>FRAMELINECOLOR</Identifier>
          <DefaultValue>
          </DefaultValue>
          <DataType>FrameLineColor</DataType>
        </Parameter>
        <Parameter>
          <Identifier>FRAMEFILLCOLOR</Identifier>
          <DefaultValue>
          </DefaultValue>
          <DataType>FrameFillColor</DataType>
        </Parameter>
        <Parameter>
          <Identifier>TEXTCOLOR</Identifier>
          <DefaultValue>0xff103463</DefaultValue>
          <DataType>TextColor</DataType>
        </Parameter>
        <Parameter>
          <Identifier>HORIZONTALALIGNMENT</Identifier>
          <DefaultValue>'Center'</DefaultValue>
          <DataType>HorizontalAlignment</DataType>
        </Parameter>
        <Parameter>
          <Identifier>VERTICALALIGNMENT</Identifier>
          <DefaultValue>'Halfline'</DefaultValue>
          <DataType>VerticalAlignment</DataType>
        </Parameter>
        <Parameter>
          <Identifier>StyleEditorGenerated_TextPositionX_0</Identifier>
          <DefaultValue>0</DefaultValue>
          <DisplayName>PositionX</DisplayName>
          <Description>PositionX</Description>
          <DataType>Real</DataType>
        </Parameter>
        <Parameter>
          <Identifier>StyleEditorGenerated_TextPositionY_0</Identifier>
          <DefaultValue>0</DefaultValue>
          <DisplayName>PositionY</DisplayName>
          <Description>PositionY</Description>
          <DataType>Real</DataType>
        </Parameter>
      </ParameterDefinition>
    </SimpleSymbolDefinition>
    <ParameterOverrides>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>CONTENT</ParameterIdentifier>
        <ParameterValue>'>'</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>FONTNAME</ParameterIdentifier>
        <ParameterValue>'Arial'</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>FONTHEIGHT</ParameterIdentifier>
        <ParameterValue>4000</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>BOLD</ParameterIdentifier>
        <ParameterValue>false</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>ITALIC</ParameterIdentifier>
        <ParameterValue>false</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>UNDERLINED</ParameterIdentifier>
        <ParameterValue>false</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>OVERLINED</ParameterIdentifier>
        <ParameterValue>false</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>JUSTIFICATION</ParameterIdentifier>
        <ParameterValue>'FromAlignment'</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>LINESPACING</ParameterIdentifier>
        <ParameterValue>1.05</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>GHOSTCOLOR</ParameterIdentifier>
        <ParameterValue>
        </ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>FRAMELINECOLOR</ParameterIdentifier>
        <ParameterValue>
        </ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>FRAMEFILLCOLOR</ParameterIdentifier>
        <ParameterValue>
        </ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>TEXTCOLOR</ParameterIdentifier>
        <ParameterValue>0xff103463</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>HORIZONTALALIGNMENT</ParameterIdentifier>
        <ParameterValue>'Center'</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
        <ParameterIdentifier>VERTICALALIGNMENT</ParameterIdentifier>
        <ParameterValue>'Halfline'</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
       
<ParameterIdentifier>StyleEditorGenerated_TextPositionX_0</ParameterIdentifier>
        <ParameterValue>0</ParameterValue>
      </Override>
      <Override>
        <SymbolName>MTEXT</SymbolName>
       
<ParameterIdentifier>StyleEditorGenerated_TextPositionY_0</ParameterIdentifier>
        <ParameterValue>0</ParameterValue>
      </Override>
    </ParameterOverrides>
    <SizeContext>MappingUnits</SizeContext>
    <UsageContext>Line</UsageContext>
    <GeometryContext>LineString</GeometryContext>
  </SymbolInstance>


This is my first post on the forums (long time lurker), hopefully it is
useful!



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html


More information about the mapguide-users mailing list