[mapguide-users] How to add rotation to symbol instance

Jamo adam.jamison at portbris.com.au
Mon Feb 23 19:39:51 EST 2009


Anyone know how to add rotation to a symbol instance ?
Layer style part.

      <CompositeTypeStyle>
        <CompositeRule>
          <LegendLabel>Light Tower</LegendLabel>
          <CompositeSymbolization>
            <SymbolInstance>
             
<ResourceId>Library://Production/Symbols/Pit.SymbolDefinition</ResourceId>
              <ParameterOverrides>
                <Override>
                  <SymbolName>Pit</SymbolName>
                  <ParameterIdentifier>LineColor</ParameterIdentifier>
                  <ParameterValue>FFFF0000</ParameterValue>
                </Override>
              </ParameterOverrides>
            </SymbolInstance>
          </CompositeSymbolization>
        </CompositeRule>
      </CompositeTypeStyle>

Symbol Style Part.

<?xml version="1.0" encoding="UTF-8"?>
<SimpleSymbolDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="SymbolDefinition-1.1.0.xsd" version="1.1.0">
<Name>Pit</Name>
<Graphics>
<Path>
<Geometry>
	M -2,-2 L -2,2 L 2,2 L 2,-2 Z
</Geometry> 
      <FillColor>%FillColor%</FillColor>
      <LineColor>%LineColor%</LineColor>
      <LineWeight>0.0</LineWeight>
    </Path>
<Text>
<Content>'E'</Content>
<FontName>'Arial'</FontName>
<TextColor>%LineColor%</TextColor>
</Text>
</Graphics>
<PointUsage/>
<ParameterDefinition>
<Parameter>
<Identifier>FillColor</Identifier>
<DefaultValue/>
<DisplayName>Fill Color</DisplayName>
<Description>The Fill Color</Description>
<DataType>String</DataType>
</Parameter>
<Parameter>
<Identifier>LineColor</Identifier>
<DefaultValue/>
<DisplayName>Line Color</DisplayName>
<Description>The Line Color</Description>
<DataType>String</DataType>
</Parameter>
<Parameter>
<Identifier>Label</Identifier>
<DefaultValue/>
<DisplayName>Label</DisplayName>
<Description>The Label Text</Description>
<DataType>String</DataType>
</Parameter>
<Parameter>
<Identifier>Rot</Identifier>
<DefaultValue/>
<DisplayName>Rotation</DisplayName>
<Description>Point Symbol Rotation</Description>
<DataType>String</DataType>
</Parameter>
</ParameterDefinition> 
</SimpleSymbolDefinition>


I Would like to apply rotation to the entire symbol about the centre point
...? <Angle></Angle> ?? 
-- 
View this message in context: http://n2.nabble.com/How-to-add-rotation-to-symbol-instance-tp2375355p2375355.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list