[mapguide-users] Problem with Fusion and compound symbols
dan.nilsson
dan.nilsson at tyrens.se
Sun Jun 30 05:37:20 PDT 2013
Hi!
I have got the layer to show up in Fusion for MapGuide 2.5, if I do as
follow:
1. I create the layerdefinition in Autodesk Infrastructure Studio. The xml
for the layer looks like this:
<CompositeTypeStyle>
<CompositeRule>
<LegendLabel></LegendLabel>
<CompositeSymbolization>
<SymbolInstance>
<SimpleSymbolDefinition>
<Name>Circle</Name>
<Description>Default Point Symbol</Description>
<Graphics>
<Path>
<Geometry>M -1,0 A 1,1 0 1 1 1,0 A 1,1 0 1 1
-1,0</Geometry>
<ScaleX>%StyleEditorGenerated_ScaleX_0%</ScaleX>
<ScaleY>%StyleEditorGenerated_ScaleY_0%</ScaleY>
<FillColor>%FILLCOLOR%</FillColor>
<LineColor>%LINECOLOR%</LineColor>
<LineWeight>%LINEWEIGHT%</LineWeight>
<LineCap>%StyleEditorGenerated_LineCap_0%</LineCap>
<LineJoin>%StyleEditorGenerated_LineJoin_0%</LineJoin>
</Path>
</Graphics>
<PointUsage>
<Angle>%ROTATION%</Angle>
</PointUsage>
<ParameterDefinition>
<Parameter>
<Identifier>FILLCOLOR</Identifier>
<DefaultValue>0xffffffff</DefaultValue>
<DisplayName>&Fill Color</DisplayName>
<Description>Fill Color</Description>
<DataType>FillColor</DataType>
</Parameter>
<Parameter>
<Identifier>LINECOLOR</Identifier>
<DefaultValue>0xff000000</DefaultValue>
<DisplayName>Line &Color</DisplayName>
<Description>Line Color</Description>
<DataType>LineColor</DataType>
</Parameter>
<Parameter>
<Identifier>LINEWEIGHT</Identifier>
<DefaultValue>0.0</DefaultValue>
<DisplayName>Line &Thickness</DisplayName>
<Description>Line Thickness</Description>
<DataType>LineWeight</DataType>
</Parameter>
<Parameter>
<Identifier>ROTATION</Identifier>
<DefaultValue>0.0</DefaultValue>
<DisplayName>&Rotation</DisplayName>
<Description>Rotation</Description>
<DataType>Angle</DataType>
</Parameter>
<Parameter>
<Identifier>StyleEditorGenerated_ScaleX_0</Identifier>
<DefaultValue>1.0</DefaultValue>
<DisplayName>Path ScaleX</DisplayName>
<Description>Path ScaleX</Description>
<DataType>Real</DataType>
</Parameter>
<Parameter>
<Identifier>StyleEditorGenerated_ScaleY_0</Identifier>
<DefaultValue>1.0</DefaultValue>
<DisplayName>Path ScaleY</DisplayName>
<Description>Path ScaleY</Description>
<DataType>Real</DataType>
</Parameter>
<Parameter>
<Identifier>StyleEditorGenerated_LineCap_0</Identifier>
<DefaultValue>'Round'</DefaultValue>
<DisplayName>Line Cap</DisplayName>
<Description>The cap type to use at the ends of each
segment in the path outline. This must evaluate to one of: None, Round
(default), Triangle, or Square.</Description>
</Parameter>
<Parameter>
<Identifier>StyleEditorGenerated_LineJoin_0</Identifier>
<DefaultValue>'Round'</DefaultValue>
<DisplayName>Line Join</DisplayName>
<Description>The join type to use at each vertex in the
path outline. This must evaluate to one of: None, Bevel, Round (default),
or Miter.</Description>
</Parameter>
</ParameterDefinition>
</SimpleSymbolDefinition>
<ParameterOverrides>
<Override>
<SymbolName>Circle</SymbolName>
<ParameterIdentifier>FILLCOLOR</ParameterIdentifier>
<ParameterValue>0xffff0000</ParameterValue>
</Override>
<Override>
<SymbolName>Circle</SymbolName>
<ParameterIdentifier>LINECOLOR</ParameterIdentifier>
<ParameterValue>0xff000000</ParameterValue>
</Override>
<Override>
<SymbolName>Circle</SymbolName>
<ParameterIdentifier>LINEWEIGHT</ParameterIdentifier>
<ParameterValue>0.0</ParameterValue>
</Override>
<Override>
<SymbolName>Circle</SymbolName>
<ParameterIdentifier>ROTATION</ParameterIdentifier>
<ParameterValue>0.0</ParameterValue>
</Override>
<Override>
<SymbolName>Circle</SymbolName>
<ParameterIdentifier>StyleEditorGenerated_ScaleX_0</ParameterIdentifier>
<ParameterValue>1000</ParameterValue>
</Override>
<Override>
<SymbolName>Circle</SymbolName>
<ParameterIdentifier>StyleEditorGenerated_ScaleY_0</ParameterIdentifier>
<ParameterValue>1000</ParameterValue>
</Override>
<Override>
<SymbolName>Circle</SymbolName>
<ParameterIdentifier>StyleEditorGenerated_LineCap_0</ParameterIdentifier>
<ParameterValue>'Round'</ParameterValue>
</Override>
<Override>
<SymbolName>Circle</SymbolName>
<ParameterIdentifier>StyleEditorGenerated_LineJoin_0</ParameterIdentifier>
<ParameterValue>'Round'</ParameterValue>
</Override>
</ParameterOverrides>
<SizeContext>MappingUnits</SizeContext>
<AddToExclusionRegion>true</AddToExclusionRegion>
<UsageContext>Point</UsageContext>
<GeometryContext>Point</GeometryContext>
</SymbolInstance>
</CompositeSymbolization>
</CompositeRule>
</CompositeTypeStyle>
This doesn't work in Fusion.
2. I edit the XML for the layer in Maestro to look like this instead:
<CompositeSymbolization>
<SymbolInstance>
<SimpleSymbolDefinition>
<Name>Circle</Name>
<Description>Default Point Symbol</Description>
<Graphics>
<Path>
<Geometry>M -1,0 A 1,1 0 1 1 1,0 A 1,1 0 1 1
-1,0</Geometry>
<ScaleX>1000</ScaleX>
<ScaleY>1000</ScaleY>
<FillColor>0xffff0000</FillColor>
<LineColor>0xff000000</LineColor>
<LineWeight>0.0</LineWeight>
<LineCap>'Round'</LineCap>
<LineJoin>'Round'</LineJoin>
</Path>
</Graphics>
<PointUsage>
<Angle>0</Angle>
</PointUsage>
<ParameterDefinition>
</ParameterDefinition>
</SimpleSymbolDefinition>
<ParameterOverrides>
</ParameterOverrides>
<SizeContext>MappingUnits</SizeContext>
<AddToExclusionRegion>true</AddToExclusionRegion>
<UsageContext>Point</UsageContext>
<GeometryContext>Point</GeometryContext>
</SymbolInstance>
</CompositeSymbolization>
</CompositeRule>
</CompositeTypeStyle>
Now I can show the layer in Fusion.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-with-Fusion-and-compound-symbols-tp5062756p5063084.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list