[Qgis-user] Very simple webgis in just one single svg file

magerlin MAP at ramboll.dk
Mon Feb 24 09:45:36 PST 2014


Try this! 

1) Export your map from your print composer as svg 
2) Add a link to the saved SVG file in line 69 of this file: 
QGIS_svg_pan_zoom.svg
<http://osgeo-org.1560.x6.nabble.com/file/n5105612/QGIS_svg_pan_zoom.svg>  
(just edit it in a text editor)
3) Adjust the height and width in line 5 and 6 if you like 

Open QGIS_svg_pan_zoom.svg in your browser and you can have something like 
THIS <http://byogtrafik.ramboll.dk/SandBox/QGIS_svg/QGIS_svg_pan_zoom.svg> 
! 
 
Perhaps some kind of pan and zoom function could be added automatically when
exporting as svg from QGIS? As a new plugin? Anybody to take it from here?
 
I am no programmer and I owe all the svg credit to this guy: 
www.petercollingridge.co.uk <http://www.petercollingridge.co.uk>  

Be aware that the svg files can be rather big and perhaps not suitable for
the net. It also seems like IE doesn't like big svg files - it simply leaves
out some of the content! I have not seen this in Google and Firefox.
 









-----
Regards Morten

Qgis 2.0.1 OSGeo,
Windows 7, 64bit
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Very-simple-webgis-in-just-one-single-svg-file-tp5105612.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.



More information about the Qgis-user mailing list