<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns="http://www.w3.org/2000/svg"  
  xmlns:gmwmsvg="http://www.intergraph.com/GeoMedia/wmsvg" 
>
<!--
  This XSL is an example of creating your own Custom Styles for use
  with WebMap SVG output. This XSL contains templates, which are 
  groups of definitions, which are called and inserted into the 
  WebMap SVG during the processing of the GWM.xsl. See the
  comments in the GWM.xsl for more information.

  Custom Defs Help:
  You may name your template something other than "CustomDefs" but if you do,
  make sure you call the right template name in GWM.xsl.
  You may also include more than one template that inserts a <defs> tag into
  the output, but make sure you call all of your templates in GWM.xsl.
-->
<xsl:template name="CustomDefs">
<defs>
<marker id="SymTRPOLE" style="stroke:#ff0000;fill:#ffffff;stroke-width:2;" viewBox="-2873, -2964, 2727, 13713" markerUnits="strokeWidth" markerWidth="300"  markerHeight="300" >
				<path d="M-182 183L 183-182" style="fill:none"></path>
				<path d="M183 183L-182-182" style="fill:none"></path>
				<ellipse cx="0" cy="0" rx="155" ry="154" style="fill:none"></ellipse>
				<path d="M0 0L 279 0" style="fill:none"></path>
				<path d="M0 0L 0-278" style="fill:none"></path>
				<path d="M0 0L-278 0" style="fill:none"></path>
				<path d="M0 0L 0 279" style="fill:none"></path>
</marker>

<linearGradient gradientTransform="rotate(45)" id="grad1">
			<stop offset="0%" stop-color="#ff3333"/>
			<stop offset="100%" stop-color="#aa00dd"/>
		</linearGradient>
<linearGradient gradientTransform="rotate(30)" id="grad2">
			<stop offset="0%" stop-color="#d0ff00"/>
			<stop offset="100%" stop-color="#125500"/>
		</linearGradient>

<linearGradient gradientTransform="rotate(70)" id="grad3">
			<stop offset="0%" stop-color="#004400"/>
			<stop offset="100%" stop-color="#9999ff"/>
		</linearGradient>
<linearGradient gradientTransform="rotate(-45)" id="grad4">
			<stop offset="0%" stop-color="#ff0033"/>
			<stop offset="100%" stop-color="#ff77ff"/>
		</linearGradient>
<radialGradient  id="grad5">
			<stop offset="0%" stop-color="#4484d4"/>
			<stop offset="100%" stop-color="#00aff4"/>
		</radialGradient>		
<linearGradient gradientTransform="rotate(-45)" id="grad6">
			<stop offset="0%" stop-color="#666699"/>
			<stop offset="100%" stop-color="#7777ff"/>
		</linearGradient>
<radialGradient  id="grad7">
			<stop offset="0%" stop-color="#ffddff"/>
			<stop offset="80%" stop-color="#ff88ff" />
			<stop offset="100%" stop-color="#ff77ff"/>
		</radialGradient>		
<linearGradient gradientTransform="rotate(-15)" id="grad8">
			<stop offset="0%" stop-color="#003333"/>
			<stop offset="100%" stop-color="#00ffff"/>
		</linearGradient>
<linearGradient gradientTransform="rotate(5)" id="grad9">
			<stop offset="0%" stop-color="#ffffaa"/>
			<stop offset="100%" stop-color="#ffaa33"/>
		</linearGradient>					
<linearGradient gradientTransform="rotate(55)" id="grad10">
			<stop offset="0%" stop-color="#777777"/>
			<stop offset="100%" stop-color="#ffddff"/>
		</linearGradient>

<linearGradient gradientTransform="rotate(45)" id="ramp1">
			<stop offset="0%" stop-color="#aaddff"/>
			<stop offset="100%" stop-color="#cceeff"/>
		</linearGradient>
<linearGradient gradientTransform="rotate(45)" id="ramp3">
			<stop offset="0%" stop-color="#99bbaa"/>
			<stop offset="100%" stop-color="#99bbff"/>
		</linearGradient>
<linearGradient gradientTransform="rotate(45)" id="ramp6">
			<stop offset="0%" stop-color="#4488aa"/>
			<stop offset="100%" stop-color="#8888ff"/>
		</linearGradient>				
<linearGradient gradientTransform="rotate(45)" id="ramp8">
			<stop offset="0%" stop-color="#4444aa"/>
			<stop offset="100%" stop-color="#6666ff"/>
		</linearGradient>
<linearGradient gradientTransform="rotate(5)" id="ramp5">
			<stop offset="0%" stop-color="#0066aa"/>
			<stop offset="100%" stop-color="#6699ff"/>
		</linearGradient>
<linearGradient gradientTransform="rotate(75)" id="ramp4">
			<stop offset="0%" stop-color="#226688"/>
			<stop offset="100%" stop-color="#22aaff"/>
		</linearGradient>
<linearGradient gradientTransform="rotate(80)" id="ramp9">
			<stop offset="0%" stop-color="#0000ff"/>
			<stop offset="100%" stop-color="#6666ff"/>
		</linearGradient>
<radialGradient  id="ramp10">
			<stop offset="0%" stop-color="#8888aa"/>
			<stop offset="100%" stop-color="#4444aa"/>
		</radialGradient>
<linearGradient gradientTransform="rotate(45)" id="ramp2">
			<stop offset="0%" stop-color="#3478ff"/>
			<stop offset="100%" stop-color="#ddddff"/>
		</linearGradient>						
<linearGradient gradientTransform="rotate(-45)" id="ramp7">
			<stop offset="0%" stop-color="#6666ee"/>
			<stop offset="100%" stop-color="#ddeeff"/>
		</linearGradient>			
		
<pattern id="hatch1" width="200" height="200" patternUnits="userSpaceOnUse" transform="rotate(-30)">
			<path d="M-200 100L200 100" style="fill:blue;stroke:blue;stroke-width:10" />
			<path d="M100 0L100 200" style="fill:blue;stroke:blue;stroke-width:10" />
		</pattern>
<pattern id="hatch2" width="200" height="200" patternUnits="userSpaceOnUse" transform="rotate(-30)">
			<path d="M-200 100L200 100" style="fill:blue;stroke:blue;stroke-width:30" />
			<path d="M100 0L100 200" style="fill:blue;stroke:blue;stroke-width:30" />
		</pattern>		
<g id="rainDrop">
	<path d="M0 100 0 150" style="stroke-width:20;stroke:white;fill:none"/>
</g>


<pattern id="rain1" width="150" height="150" patternUnits="userSpaceOnUse" patternTransform="rotate(30)">
			<rect x="0" y="0" width="150" height="150" style="fill:#aa00dd;"/>
	<use xlink:href="#rainDrop" x="30" y="30">
		<animate attributeName="y" attributeType="XML" values="-140;0" dur="1s" repeatCount="indefinite" />
	</use>		
</pattern>
<pattern id="rain2" width="150" height="150" patternUnits="userSpaceOnUse" patternTransform="rotate(30)">
			<rect x="0" y="0" width="150" height="150" style="fill:#125500;"/>
	<use xlink:href="#rainDrop" x="30" y="30">
		<animate attributeName="y" attributeType="XML" values="-140;0" dur="1s" repeatCount="indefinite" />
	</use>		
</pattern>
<pattern id="rain3" width="150" height="150" patternUnits="userSpaceOnUse" patternTransform="rotate(30)">
			<rect x="0" y="0" width="150" height="150" style="fill:#9999ff"/>
	<use xlink:href="#rainDrop" x="30" y="30">
		<animate attributeName="y" attributeType="XML" values="-140;0" dur="1s" repeatCount="indefinite" />
	</use>		
</pattern>
<pattern id="rain4" width="150" height="150" patternUnits="userSpaceOnUse" patternTransform="rotate(30)">
			<rect x="0" y="0" width="150" height="150" style="fill:#ff0033"/>
	<use xlink:href="#rainDrop" x="30" y="30">
		<animate attributeName="y" attributeType="XML" values="-140;0" dur="1s" repeatCount="indefinite" />
	</use>		
</pattern>
<pattern id="rain5" width="150" height="150" patternUnits="userSpaceOnUse" patternTransform="rotate(30)">
			<rect x="0" y="0" width="150" height="150" style="fill:#00aff4"/>
	<use xlink:href="#rainDrop" x="30" y="30">
		<animate attributeName="y" attributeType="XML" values="-140;0" dur="1s" repeatCount="indefinite" />
	</use>		
</pattern>
<pattern id="rain6" width="150" height="150" patternUnits="userSpaceOnUse" patternTransform="rotate(30)">
			<rect x="0" y="0" width="150" height="150" style="fill:#7777ff;"/>
	<use xlink:href="#rainDrop" x="30" y="30">
		<animate attributeName="y" attributeType="XML" values="-140;0" dur="1s" repeatCount="indefinite" />
	</use>		
</pattern>
<pattern id="rain7" width="150" height="150" patternUnits="userSpaceOnUse" patternTransform="rotate(30)">
			<rect x="0" y="0" width="150" height="150" style="fill:#ff77ff;"/>
	<use xlink:href="#rainDrop" x="30" y="30">
		<animate attributeName="y" attributeType="XML" values="-140;0" dur="1s" repeatCount="indefinite" />
	</use>		
</pattern>
<pattern id="rain8" width="150" height="150" patternUnits="userSpaceOnUse" patternTransform="rotate(30)">
			<rect x="0" y="0" width="150" height="150" style="fill:#339955;"/>
	<use xlink:href="#rainDrop" x="30" y="30">
		<animate attributeName="y" attributeType="XML" values="-140;0" dur="1s" repeatCount="indefinite" />
	</use>		
</pattern>
<pattern id="rain9" width="150" height="150" patternUnits="userSpaceOnUse" patternTransform="rotate(30)">
			<rect x="0" y="0" width="150" height="150" style="fill:#ffaa33;"/>
	<use xlink:href="#rainDrop" x="30" y="30">
		<animate attributeName="y" attributeType="XML" values="-140;0" dur="1s" repeatCount="indefinite" />
	</use>		
</pattern>
<pattern id="rain10" width="150" height="150" patternUnits="userSpaceOnUse" patternTransform="rotate(30)">
			<rect x="0" y="0" width="150" height="150" style="fill:#aa8888;"/>
	<use xlink:href="#rainDrop" x="30" y="30">
		<animate attributeName="y" attributeType="XML" values="-140;0" dur="1s" repeatCount="indefinite" />
	</use>		
</pattern>


<g id="snowLine" >
			<path d="M0 -100L0 100" style="stroke-width:20;stroke:yellow;fill:none"/>	
</g>
<g id="snowFlake">
			<use xlink:href="#snowLine" x="0" y="0"/>
			<use xlink:href="#snowLine" transform="rotate(-60)"/>
			<use xlink:href="#snowLine" transform="rotate(60)"/>
		</g>		
<pattern id="snow" width="300" height="300" patternUnits="userSpaceOnUse" patternTransform="rotate(-30)">
			<rect x="0" y="0" width="300" height="300" style="fill:blue"/>
			<use xlink:href="#snowFlake" x="100" y="100">
				<animate attributeName="y" attributeType="XML" values="100;400" dur="0.5s" repeatCount="indefinite"/>
			</use>
			<use xlink:href="#snowFlake" x="100" y="-300">
				<animate attributeName="y" attributeType="XML" values="-200;100" dur="0.5s" repeatCount="indefinite"/>
			</use>
		</pattern>
</defs>
</xsl:template>

<!--
  Custom Styles Help:
  
  You may name your template something other than "CustomStyles" but if you do,
  make sure you call the right template name in GWM.xsl.
  
  You may also include more than one template that inserts styles into
  the output, but make sure you call all of your templates in GWM.xsl.
  
  Notice that there is no style tag for the style data below. The data contained in the
  "CustomStyles" template is inserted directly into the existing style tag in
  the default WebMap output. Do NOT include a beginning or ending style tag in 
  your custom styles.
-->
<xsl:template name="CustomStyles">
<![CDATA[
	.LPSymTRPOLE
	{
	marker-mid:url(#SymTRPOLE);
	stroke:#ff0ff0;
	fill:none;
	stroke-width:20;
	}
	
	.R1
	{
	stroke:#000000;
	fill:url(#grad1);
	fill-opacity:.8;
	stroke-width:40;
	}
	.R2
	{
	stroke:#000000;
	fill:url(#grad2);
	fill-opacity:.8;
	stroke-width:40;
	}
	.R3
	{
	stroke:#000000;
	fill:url(#grad3);
	fill-opacity:.8;
	stroke-width:40;
	}
	.R4
	{
	stroke:#000000;
	fill:url(#grad4);
	fill-opacity:.8;
	stroke-width:40;
	}
	.R5 
	{
	stroke:#000000;
	fill:url(#grad5);
	fill-opacity:.8;
	stroke-width:40;
	}
	.R6 
	{
	stroke:#000000;
	fill:url(#grad6);
	fill-opacity:.8;
	stroke-width:40;
	}
	.R7 
	{
	stroke:#000000;
	fill:url(#grad7);
	fill-opacity:.8;
	stroke-width:40;
	}
	.R8 
	{
	stroke:#000000;
	fill:url(#grad8);
	fill-opacity:.8;
	stroke-width:40;
	}
	.R9
	{
	stroke:#000000;
	fill:url(#grad9);
	fill-opacity:.8;
	stroke-width:40;
	}
	.R10
	{
	stroke:#000000;
	fill:url(#grad10);
	fill-opacity:.8;
	stroke-width:40;
	}
	.P1
	{
	stroke:#000000;
	fill:url(#hatch1);
	fill-opacity:1;
	stroke-width:40;
	}
	.P2
	{
	stroke:#000000;
	fill:url(#hatch2);
	fill-opacity:1;
	stroke-width:40;
	}
	.H1
	{
	stroke:#000000;
	fill:url(#snow);
	fill-opacity:1;
	stroke-width:30;
	}
	.H2
	{
	stroke:#00fff0;
	fill:url(#rain5);
	fill-opacity:1;
	stroke-width:20;
	}
	.RP1
	{
	stroke:#ddeeff;
	fill:url(#ramp1);
	fill-opacity:1;
	stroke-width:20;
	}
	.RP2
	{
	stroke:#aabbff;
	fill:url(#ramp2);
	fill-opacity:1;
	stroke-width:20;
	}
	.RP3
	{
	stroke:#99ccdd;
	fill:url(#ramp3);
	fill-opacity:1;
	stroke-width:20;
	}
	.RP4
	{
	stroke:#22aadd;
	fill:url(#ramp4);
	fill-opacity:1;
	stroke-width:20;
	}
	.RP5
	{
	stroke:#22aaff;
	fill:url(#ramp5);
	fill-opacity:1;
	stroke-width:20;
	}
	.RP6
	{
	stroke:#2266dd;
	fill:url(#ramp6);
	fill-opacity:1;
	stroke-width:20;
	}
	.RP7
	{
	stroke:#8888ff;
	fill:url(#ramp7);
	fill-opacity:1;
	stroke-width:20;
	}
	.RP8
	{
	stroke:#7777dd;
	fill:url(#ramp8);
	fill-opacity:1;
	stroke-width:20;
	}
	.RP9
	{
	stroke:red;/*#4444ff;*/
	fill:url(#ramp9);
	fill-opacity:1;
	stroke-width:20;
	}
	.RP10
	{
	stroke:#6666cc;
	fill:url(#ramp10);
	fill-opacity:1;
	stroke-width:20;
	}
	.HSP1
	{
	stroke:#dd00ff;
	fill:url(#rain1);
	fill-opacity:1;
	stroke-width:20;
	}
	.HSP2
	{
	stroke:#ddeeff;
	fill:url(#rain2);
	fill-opacity:1;
	stroke-width:20;
	}
	.HSP3
	{
	stroke:#ddeeff;
	fill:url(#rain3);
	fill-opacity:1;
	stroke-width:20;
	}
	.HSP4
	{
	stroke:#ddeeff;
	fill:url(#rain4);
	fill-opacity:1;
	stroke-width:20;
	}
	.HSP5
	{
	stroke:#ddeeff;
	fill:url(#rain5);
	fill-opacity:1;
	stroke-width:20;
	}
	.HSP6
	{
	stroke:#ddeeff;
	fill:url(#rain6);
	fill-opacity:1;
	stroke-width:20;
	}
	.HSP7
	{
	stroke:#ddeeff;
	fill:url(#rain7);
	fill-opacity:1;
	stroke-width:20;
	}
	.HSP8
	{
	stroke:#ddeeff;
	fill:url(#rain8);
	fill-opacity:1;
	stroke-width:20;
	}
	.HSP9
	{
	stroke:#ddeeff;
	fill:url(#rain9);
	fill-opacity:1;
	stroke-width:20;
	}
	.HSP10
	{
	stroke:#ddeeff;
	fill:url(#rain10);
	fill-opacity:1;
	stroke-width:20;
	}
]]>
</xsl:template>  
</xsl:stylesheet>
