Changes between Version 9 and Version 10 of MapGuideRfc14


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

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc14

    v9 v10  
    8787'''Example 2:'''  line style with simple dashing
    8888
     89[[Image(ex2.jpg)]]
     90
     91The repeating dash pattern is “long dash / dot / short dash / dot”.   The long dash is 10 mm long and the short dash is 5 mm long.  Each gap is 2.5 mm.  The overall period of the dashing is 25 mm.  The symbol definition XML would be:
     92
     93{{{
     94<SimpleSymbolDefinition>
     95  <Name>LongDash-Dot-ShortDash-Dot</Name>
     96  <Graphics>
     97    <Path>
     98      <Geometry>
     99        M  0.0,0 L 10.0,0
     100        M 12.5,0 L 12.5,0
     101        M 15.0,0 L 20.0,0
     102        M 22.5,0 L 22.5,0
     103      </Geometry>
     104    </Path>
     105  </Graphics>
     106  <LineUsage>
     107    <VertexControl>OverlapWrap</VertexControl>
     108    <Repeat>25</Repeat>
     109  </LineUsage>
     110</SimpleSymbolDefinition>
     111}}}
     112
     113In the path geometry all the formatting elements (line color, line cap, line join, …) are left out – they take on their default values.  For the LineUsage the default vertex control is OverlapNoWrap, and here we set it to OverlapWrap.  OverlapWrap means it’s ok to draw the symbol if it overlaps a vertex, but make it bend around the vertex.  For simple line styles consisting of centerline dashing, OverlapWrap is the standard behavior we’re used to.
    89114
    90115= Implications =