Rob<br>Yeah, I've been playing around with a few different ways of doing this, but I haven't found one that does it right in all circumstances yet...<br><br>Etienne<br><br><div><span class="gmail_quote">On 9/26/06, <b class="gmail_sendername">
Robert Hart</b> <<a href="mailto:Robert.Hart@burohappold.com">Robert.Hart@burohappold.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I had the following working in the old Osmarender 2, haven't tested the new<br>osmarender yet.<br><br><svg<br><br>.....<br><br>      <xsl:call-template name='makeClipPath'/><br>      <g clip-path="url(#maparea)">
<br><br>       **draw map stuff here***<br><br>       </g><br><br>***draw any other stuff ***<br><br></svg><br><br>....<br><br>  <xsl:template name='makeClipPath'><br>      <clipPath id="maparea">
<br>        <rect x="0" y="0" width="{$width}" height="{$height}" /><br>      </clipPath><br>  </xsl:template><br><br><br>It works okish, but inkscape didn't always respect the clip-path, 
e.g. when<br>exporting to pdf.<br><br>Rob<br><br>-----Original Message-----<br>From: <a href="mailto:talk-bounces@openstreetmap.org">talk-bounces@openstreetmap.org</a><br>To: Nick Burch<br>Cc: <a href="mailto:talk@openstreetmap.org">
talk@openstreetmap.org</a><br>Sent: 9/25/2006 12:59 PM<br>Subject: Re: [OSM-talk] Osmarender 3.0<br><br>I know why this is happening.  A white border is being drawn outside the<br>blue border to mask off any lines that are outside the bounding box.
<br>I'll look at a smarter way of doing this - probably need a view box or<br>something to clip the diagram at the border.<br><br>Etienne<br><br><br>On 9/25/06, Nick Burch < <a href="mailto:openstreetmap@gagravarr.org">
openstreetmap@gagravarr.org</a><br><mailto:<a href="mailto:openstreetmap@gagravarr.org">openstreetmap@gagravarr.org</a>> > wrote:<br><br>On Sun, 24 Sep 2006, Etienne wrote:<br>> let me know if you find anything you don't like.
<br><br>I've found that inkscape is now very confused about the size of the<br>drawing.<br><br>Previously if you exported the drawing, you just the map, and no<br>whitespace around it. Now, it's about 90% whitespace, with the map
<br>hiding<br>in the middle:<br><br><a href="http://gagravarr.org/misc/osm/oxford-svg-20060924.png">http://gagravarr.org/misc/osm/oxford-svg-20060924.png</a><br><<a href="http://gagravarr.org/misc/osm/oxford-svg-20060924.png">
http://gagravarr.org/misc/osm/oxford-svg-20060924.png</a>>     - osmarender<br>2<br><a href="http://gagravarr.org/misc/osm/oxford-svg-20060925.png">http://gagravarr.org/misc/osm/oxford-svg-20060925.png</a><br><<a href="http://gagravarr.org/misc/osm/oxford-svg-20060925.png">
http://gagravarr.org/misc/osm/oxford-svg-20060925.png</a>>    - osmarender<br>3<br><br>I've tried tweaking minimumMapWidth and minimumMapHeight, but to no<br>effect. Anyone got any ideas?<br><br>Nick<br><br><br><br> <<
ATT263457.txt>><br><br><br>This message has been scanned for viruses by MailControl - <a href="http://www.mailcontrol.com">www.mailcontrol.com</a><br></blockquote></div><br>