Changes between Version 12 and Version 13 of MapGuideRfc14


Ignore:
Timestamp:
Feb 2, 2007, 12:30:32 PM (17 years ago)
Author:
robertbray
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc14

    v12 v13  
    115115'''Example 3:'''  line style with a decoration and thickness
    116116
     117[[Image(ex3.jpg)]]
    117118
     119The repeating pattern is just a cross.  It repeats with period 5 mm.
    118120
     121{{{
     122<SimpleSymbolDefinition>
     123  <Name>ThickRail</Name>
     124  <Graphics>
     125    <Path>
     126      <Geometry>
     127        M 0.0, 0.0 L 5.0,0.0
     128        M 2.5,-2.5 L 2.5,2.5
     129      </Geometry>
     130      <LineWeight>%LINE_WEIGHT%=1mm</LineWeight>
     131      <LineCap>Round</LineCap>
     132      <LineJoin>Round</LineJoin>
     133    </Path>
     134  </Graphics>
     135  <LineUsage>
     136    <VertexControl>OverlapWrap</VertexControl>
     137    <Repeat>5.0</Repeat>
     138  </LineUsage>
     139</SimpleSymbolDefinition>
     140}}}
     141
     142This time the line weight for the path has been parametrized.  Its default value is 1 mm and this can be overridden at the symbol instance level.  We’ve also changed the path’s line cap and line join styles to round.
     143
     144Note that when the line weight is modified the spacing between the vertical ticks does *not* change.  The path geometry is fixed.  If you want the symbol to get bigger / smaller to account for the line weight then this would be done using the symbol instance scales.  For example, setting the scales to “1 + !LineWeight / 5” would ensure that there is always 5 mm of empty horizontal space between adjacent vertical ticks.
    119145
    120146= Implications =