[OSM-talk] osmarender

Jonas Svensson jonass at lysator.liu.se
Tue Sep 5 07:55:19 BST 2006


On Mon, 4 Sep 2006, Etienne wrote:

> On 9/4/06, Jonas Svensson <jonass at lysator.liu.se> wrote:
> >
> > The SVG produced by osmarender when transformed in Firefox seems to
> > be missing a couple of attributes that makes it hard to handle for
> > Firefox and Opera. Is it possible to add the width, height and
> > viewBox to the svg-element?
>
>
> Yes, do you have specific details of what should be added?

Sorry not really. The SVG element should look something like this in
addition the attributes already there:

<svg width="300px" height="200px" version="1.1"
     viewBox="0 0 1500 1000" preserveAspectRatio="xMidYMid meet"
     xmlns="http://www.w3.org/2000/svg">

I do no not know how to get the numbers, or if it is
even possible to find them. 300 and 200 is quite obvious what they are. 0
0 1500 1000 is <min-x>, <min-y>, <width> and <height>. I suspect that the
best result is by setting both width attributes to the same value and the
same for height.

/Jonas





More information about the talk mailing list