Letractively / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

viewBox attribute values limited to 4 digits #334

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
hello i am new to svgweb and try to use maps with real world UTM
coordinates in the viewBox. that fails:

set a viewBox with values smaller/greater than -9999 or 9999

svg doesn't load with svgweb-2009-09-16-Umberhulk-B on FF3/win with forceflash

just tried the hello world example in svg_object.html

<svg version="1.1"  viewBox="-11111 -11111 22222 22222"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" 
style="background-color: #D2B48C;">
   <g 
      id="myGroup" 
      fill="blue" 
      style="font-size: 18px; text-anchor: middle; font-family: serif;">
      <circle
         id="myCircle" 
         cx="100" cy="75" r="50"
         stroke="firebrick"
         stroke-width="3" />
      <text x="100" y="155">Hello World</text>
      <text x="100" y="175">From An SVG File!</text>
   </g>
</svg>

cu
andré

Original issue reported on code.google.com by carto....@gmail.com on 2 Oct 2009 at 2:29

GoogleCodeExporter commented 8 years ago
hi andré,

I am not sure this is a valid issue, as I can show you in my mapping
example with the following 6 digit viewbox

viewBox="-305335 -6849296 672667 910385"

that it works without a hitch, see

http://vis.uell.net/btw/09/atlas.html

this also works with the object tag.

Michael

Original comment by mneu...@gmail.com on 3 Oct 2009 at 10:46

GoogleCodeExporter commented 8 years ago
I cannot reproduce this. As Michael said, there is nothing wrong with large 
viewBox
coordinates and the file you provided renders fine for me. 

This is almost certainly a deployment problem and I would recommend reading 
through
the documentation and make sure you can bring up the src/tools/config.html page
without any errors.

Original comment by grick23@gmail.com on 17 Oct 2009 at 5:28