[mapguide-users] Re: how can i use <CompoundSymbolDefinition>……

Steve G steve.golden at morganhill.ca.gov
Mon Jul 11 12:05:28 EDT 2011


Here is one way to show arrows:

http://trac.osgeo.org/mapguide/wiki/AdvancedStylization/Library/Generic


Another way would be to use the ">" symbol as repeating text content like
this: 

(&gt; is the same as > in terms of html special entities):

<?xml version="1.0" encoding="utf-8"?>
<SimpleSymbolDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.1.0"
xsi:noNamespaceSchemaLocation="SymbolDefinition-1.0.0.xsd">
  <Name>Sewer_GravityMain</Name>
  <Graphics>
    <Path>
      <Geometry> M 0.0, 0.0 L 20.0,0.0</Geometry>
      <LineColor>ff00ff00</LineColor>
      <LineWeight>.2</LineWeight>
    </Path>
    <Text>
      <Content>'&gt;'</Content>
      <FontName>'Arial'</FontName>
      <Height>6</Height>
      <PositionX>10</PositionX>
      <PositionY>0</PositionY>
      <TextColor>ff00ff00</TextColor>
    </Text>
  </Graphics>
  <LineUsage>
    <Repeat>20</Repeat>
  </LineUsage>
  <ParameterDefinition />
</SimpleSymbolDefinition>



If you don't understand the syntax, then you should look at the following:

http://trac.osgeo.org/mapguide/wiki/MapGuideRfc14

http://trac.osgeo.org/mapguide/raw-attachment/wiki/AdvancedStylization/building_symbol_libraries.pdf



-Steve

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-can-i-use-CompoundSymbolDefinition-tp6569549p6571484.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list