mardi 24 février 2015

QGIS web client email link URL problems on windows


I've got QGIS server (2.6) and QGIS web client working on a windows machine. Eventually I'll get it running on linux, but for now I need to get it working on my localhost, because I need to prove this system can work for a bigger rollout on another host.


I'm trying to get the map button that allows you to email a link working. When I click the link, I get the URL:



http://localhost/web/site/qgiswebclient.html?map=/C:OSGEO4W32/apache/htdocs/web/projects/project.qgs&startExtent=18748077.826615%2C-5847068.7041556%2C18748900.718997%2C-5846618.442286&visibleBackgroundLayer=Google%20Satellite&visibleLayers=project&initialLayerOrder=Highways%2CCadastral9%2CStudy_Area_Boundary&selection=


the map gui loads, but the map just sits there "loading". I'm pretty sure it's not working because the URL is being created with this path:



?map=/C:OSGEO4W32/....


instead of



?map=C:/OSGEO4W32/....


I'm assuming this URL is created by the GetUrlParams.js in my web client files. That script is here: GetUrlParams.js


Does anyone know how to edit this script to correct the location of the forward slash from before the C: to after the C:?





Aucun commentaire:

Enregistrer un commentaire