Hello,
is there a way to have shape fills that are more complex than rgb-values, for example a diagonal hatch fill?
my knowledge on the map control and svgis limited. my current approach is to create a pattern via jquery when the map is created:
jQuery("map svg defs").html(''
+ '<pattern id="diagonalHatch" width="10" height="10" patternTransform="rotate(45 0 0)" patternUnits="userSpaceOnUse">'
+ ' <line x1="0" y1="0" x2="0" y2="10" style="stroke:red; stroke-opacity:0.4; stroke-width:8" />'
+ '</pattern>';
then i use the def as fill for shapes when they are created:
shape.fill("url(#diagonalHatch)");
this works fine, but i want to have opacity or color depend on other parameters, which would result in many defs.
Do you have any suggestions?