[mapguide-users] CompositeTypeStyle and LineTypeStyle in one
LayerDefinition?
Peter Scigalla
scigalla at battefeld.com
Thu Jul 29 05:19:55 EDT 2010
Hello,
I'm using MGOS 2.0.2 (simple layout, PHP, Apache on XP test pc). When I
try to mix line rules and composite rules in one layer definition, the
AJAX viewer shows only the composit elements.
Maestro and also MG Studio shows a preview of the line layer. Screenshots on
http://www.battefeld.com/pages/autogis/auskunftssysteme/mixed-mapguide-layers-example.php
Can anybody tell me, what's wrong?
My workaround is, to define a continous line as symbol but I fint it not
realy nice.
Regards - Peter
### start example ###
<?xml version="1.0" encoding="utf-8"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="LayerDefinition-1.2.0.xsd" version="1.2.0">
<VectorLayerDefinition>
<ResourceId>Library://datenbankverbindung/mysql.FeatureSource</ResourceId>
<FeatureName>Fdoagmg_db:agmg_gasleitung</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<Filter>Layer = 'G-H-NLG-OVN-1500' OR Layer =
'G-H-NLG-OTP-1500'</Filter>
<PropertyMapping>
<Name>AG_ID</Name>
<Value>AG_ID</Value>
</PropertyMapping>
<PropertyMapping>
<Name>AG_Key</Name>
<Value>AG_Key</Value>
</PropertyMapping>
<Geometry>Graphik</Geometry>
<Url />
<ToolTip />
<VectorScaleRange>
<CompositeTypeStyle>
<CompositeRule>
<LegendLabel>line</LegendLabel>
<Filter>Layer = 'G-H-NLG-OTP-1500'</Filter>
<CompositeSymbolization>
<SymbolInstance>
<ResourceId>Library://bibliothek/symbole/linien/verdeckt.SymbolDefinition</ResourceId>
<ParameterOverrides>
<Override>
<SymbolName>verdeckt</SymbolName>
<ParameterIdentifier>farbe</ParameterIdentifier>
<ParameterValue>FFFF0000</ParameterValue>
</Override>
<Override>
<SymbolName>verdeckt</SymbolName>
<ParameterIdentifier>dicke</ParameterIdentifier>
<ParameterValue>2</ParameterValue>
</Override>
</ParameterOverrides>
<ScaleX>100</ScaleX>
<ScaleY>100</ScaleY>
<SizeContext>MappingUnits</SizeContext>
</SymbolInstance>
</CompositeSymbolization>
</CompositeRule>
</CompositeTypeStyle>
<LineTypeStyle>
<LineRule>
<LegendLabel />
<Filter>Layer = 'G-H-NLG-OVN-1500'</Filter>
<LineSymbolization2D>
<LineStyle>SOLID</LineStyle>
<Thickness>2</Thickness>
<Color>ff00ff</Color>
<Unit>Points</Unit>
<SizeContext>DeviceUnits</SizeContext>
</LineSymbolization2D>
</LineRule>
</LineTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
### end example ###
More information about the mapguide-users
mailing list