[OSM-talk] Osmarender 3.0
Etienne
80n80n at gmail.com
Wed Sep 27 08:09:27 BST 2006
Rob
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...
Etienne
On 9/26/06, Robert Hart <Robert.Hart at burohappold.com> wrote:
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20060927/9b77407b/attachment.html>
More information about the talk
mailing list