[mapguide-users] Help: Cartographic Symbol Definition
SCLuna
sherwin.luna at gmail.com
Mon Mar 2 23:43:40 EST 2009
Good Day,
I was wondering if anyone could help me about cartographic symbol
definition. What happed was after I load the layerdefinition and look at my
layer in edit mode in mapguide studio 2009, I can see my symbol definition
in the composite preview under the style area of mapguide studio 2009 but
when I look at my layer in preview mode the layer definition did't appear.
Below is what I did. I would really appreciate anyones help.
Below image shows what is happening in my studio 2009.
http://n2.nabble.com/file/n2413465/img.jpg
1. I create a symbol definition in mapguide studio then save it.
<?xml version="1.0" encoding="UTF-8"?>
<SimpleSymbolDefinition version="1.0.0"
xsi:noNamespaceSchemaLocation="SymbolDefinition-1.0.0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>myline</Name>
<Graphics>
<Path>
<Geometry>
M 0.0,0 L 10.0,0
M 12.5,0 L 12.5,0
M 15.0,0 L 20.0,0
M 22.5,0 L 22.5,0
</Geometry>
<LineColor>FF0000FF</LineColor>
<LineWeight>0.75</LineWeight>
</Path>
</Graphics>
<LineUsage>
<VertexControl>'OverlapWrap'</VertexControl>
<Repeat>25</Repeat>
</LineUsage>
<ParameterDefinition/>
</SimpleSymbolDefinition>
2. I load my new layer definition in mapguide enterprise
<?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://cartographic_sample/data/line.FeatureSource</ResourceId>
<FeatureName>Schema1:line</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<Geometry>Geom</Geometry>
<VectorScaleRange>
<CompositeTypeStyle>
<CompositeRule>
<LegendLabel>line</LegendLabel>
<CompositeSymbolization>
<SymbolInstance>
<ResourceId>Library://cartographic_sample/symbol/symboldefinition.SymbolDefinition</ResourceId>
<ParameterOverrides />
</SymbolInstance>
</CompositeSymbolization>
</CompositeRule>
</CompositeTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
Thank you and Regards,
Sherwin
--
View this message in context: http://n2.nabble.com/Help%3A-Cartographic-Symbol-Definition-tp2413465p2413465.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list