[MXD2map-commits] bsh.mxd-konverter: r221:a44d442577ca

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jul 28 11:13:56 CEST 2011


details:   bsh.mxd-konverter/rev/a44d442577ca

changeset: 221:a44d442577ca

user:      Stephan Holl <stephan.holl at intevation.de>

date:      Mon Jul 25 12:33:24 2011 +0200

description:
Fixes correct paths for Browser-output, added target for GROUP-output


diffstat:

 contrib/python/generateHTML.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r fb1ffd385115 -r a44d442577ca contrib/python/generateHTML.py
--- a/contrib/python/generateHTML.py	Mon Jul 25 11:09:52 2011 +0200
+++ b/contrib/python/generateHTML.py	Mon Jul 25 12:33:24 2011 +0200
@@ -46,7 +46,7 @@
     png = mapfile.replace(".map", "_arcpy.png")
     print '''<li>Layer:  <strong>%s</strong></li>
 <br>
-<a target="bild" href="%s"><img witdth="80" height="60" border="" src="%s"></a>
+<a target="bild" href="file://%s"><img witdth="80" height="60" border="" src="file://%s"></a>
 Anzahl der Layer: %s
 ''' % (basename, png, png, len(layers))
     i = 0
@@ -86,7 +86,7 @@
         while i < len(groups):
             urlmapfile  = url + '?map=' + mapfile
             urlmapfile += '&template=openlayers&mode=browse&layers=' + groups[i]
-            print "<li><a href='%s'>%s</a></li>" % (urlmapfile, groups[i]) 
+	    print "<li><a target='_group' href='%s'>%s</a></li>" % (urlmapfile, groups[i]) 
             i=i+1
         print "</ul>"
 


More information about the MXD2map-commits mailing list