> <svg viewBox="0 0 1024 768" width="100%" height="100%" version="1.1" > xmlns="http://www.w3.org/2000/svg" > xmlns:a3="http://ns.adobe.com/AdobeSVGViewerExtension/3.0/" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:attrib="http://www.carto.net/attrib" > xmlns:batik="http://xml.apache.org/batik/ext" > onload="init(evt);startup(evt);" onresize='myMapApp.resetFactors();' > zoomAndPan="disable"> > > <svg id="mainMap" x="0" y="0" viewBox="30000 20000 800 700" width="553" > height="700" cursor="crosshair">
the inner width and height of the viewBox (800 700) should have the same aspect ratio as the width and height attribute of the svg element, which is not the case in your example. > If u see the above example ...map display from the top left corner of the > browser.. > Instead it is displaying the map in middle of the browser . this is normal behavior - by default, SVG always centers content if the aspectRatio of the browser window does not fit the width and height dimensions specified. Have a look at: http://www.w3.org/TR/SVG11/coords.html#PreserveAspectRatioAttribute where the default (also in your case) being "xMidYMid" Maybe you can try fixing the aspect Ratio things and if it still fails, provide a full (but simple) example. It is hard to debug large examples, but it needs to be a fully working example demonstrating that the coordinate transformation fails. Andreas ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

