On 9/5/06, <b class="gmail_sendername">Jonas Svensson</b> <<a href="mailto:jonass@lysator.liu.se">jonass@lysator.liu.se</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 4 Sep 2006, Etienne wrote:<br><br>> On 9/4/06, Jonas Svensson <<a href="mailto:jonass@lysator.liu.se">jonass@lysator.liu.se</a>> wrote:<br>> ><br>> > The SVG produced by osmarender when transformed in Firefox seems to
<br>> > be missing a couple of attributes that makes it hard to handle for<br>> > Firefox and Opera. Is it possible to add the width, height and<br>> > viewBox to the svg-element?<br>><br>><br>> Yes, do you have specific details of what should be added?
<br><br>Sorry not really. The SVG element should look something like this in<br>addition the attributes already there:<br><br><svg width="300px" height="200px" version="1.1"<br> viewBox="0 0 1500 1000" preserveAspectRatio="xMidYMid meet"
<br> xmlns="<a href="http://www.w3.org/2000/svg">http://www.w3.org/2000/svg</a>"><br><br>I do no not know how to get the numbers, or if it is<br>even possible to find them. 300 and 200 is quite obvious what they are. 0
<br>0 1500 1000 is <min-x>, <min-y>, <width> and <height>. I suspect that the<br>best result is by setting both width attributes to the same value and the<br>same for height.</blockquote><div><br>Thanks. This gives me somewhere to start. I'll experiment with these settings.
<br><br>Etienne. <br></div><br></div><br>