[OSM-talk] Osmarender 3.0

Robert Hart Robert.Hart at BuroHappold.com
Tue Sep 26 22:12:47 BST 2006


I had the following working in the old Osmarender 2, haven't tested the new
osmarender yet.

<svg 

.....

      <xsl:call-template name='makeClipPath'/>
      <g clip-path="url(#maparea)">

       **draw map stuff here***

       </g> 

***draw any other stuff ***

</svg>

....

  <xsl:template name='makeClipPath'>
      <clipPath id="maparea">
        <rect x="0" y="0" width="{$width}" height="{$height}" />
      </clipPath>
  </xsl:template>


It works okish, but inkscape didn't always respect the clip-path, e.g. when
exporting to pdf.

Rob

-----Original Message-----
From: talk-bounces at openstreetmap.org
To: Nick Burch
Cc: talk at openstreetmap.org
Sent: 9/25/2006 12:59 PM
Subject: Re: [OSM-talk] Osmarender 3.0

I know why this is happening.  A white border is being drawn outside the
blue border to mask off any lines that are outside the bounding box.
I'll look at a smarter way of doing this - probably need a view box or
something to clip the diagram at the border. 

Etienne


On 9/25/06, Nick Burch < openstreetmap at gagravarr.org
<mailto:openstreetmap at gagravarr.org> > wrote:

On Sun, 24 Sep 2006, Etienne wrote:
> let me know if you find anything you don't like.

I've found that inkscape is now very confused about the size of the
drawing.

Previously if you exported the drawing, you just the map, and no 
whitespace around it. Now, it's about 90% whitespace, with the map
hiding
in the middle:

http://gagravarr.org/misc/osm/oxford-svg-20060924.png
<http://gagravarr.org/misc/osm/oxford-svg-20060924.png>     - osmarender
2
http://gagravarr.org/misc/osm/oxford-svg-20060925.png
<http://gagravarr.org/misc/osm/oxford-svg-20060925.png>    - osmarender
3

I've tried tweaking minimumMapWidth and minimumMapHeight, but to no 
effect. Anyone got any ideas?

Nick



 <<ATT263457.txt>> 


This message has been scanned for viruses by MailControl - www.mailcontrol.com




More information about the talk mailing list