[Qgis-user] Help for QGIS-Web-Client

Amandine SCHLOUPT aschloupt at aguram.org
Tue May 13 01:01:12 PDT 2014


Hi, 

OK. The value of "var useGetProjectSettings" is true. 
When I change the value by false, all layers are selected. 
But my problem don't change... 

In my previous version of QWC (after updates of apache2, qgis, python-qgis, libapache2-mod-fcgid, qgis-mapserver), I have the same problem : the map don't load. 
But my error is diferrent : 
"TypeError: y is null " in ext-all.js (line 7) 

Thanks 

Amandine 

----- Mail original -----

De: "Bernhard Ströbl" <bernhard.stroebl at jena.de> 
À: "Amandine SCHLOUPT" <aschloupt at aguram.org>, "Andreas Neumann" <a.neumann at carto.net> 
Cc: qgis-user at lists.osgeo.org 
Envoyé: Mardi 13 Mai 2014 09:25:47 
Objet: Re: [Qgis-user] Help for QGIS-Web-Client 

Hi Amandine, 

Am 13.05.2014 09:18, schrieb Amandine SCHLOUPT: 
> Hi Bernhard and Andreas, 
> 
> I thought that parameters WIDHT, HEIGHT BBOX and CRS were optional... 
> In my browser, my layer appears like an image 
> (http://localhost/cgi-bin/qgis_mapserv.fcgi?map=/usr/lib/cgi-bin/arrondissement.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=adm_arrondissement_bdt&FORMAT=image/png&CRS=EPSG:2154&BBOX=752196,6747898,1125485,6953938&WIDTH=800&HEIGHT=800). 
> In QGIS-desktop, my project appears with my layer and I can load image. 
> So, QGIS-Server run without error? 

If you get a map the server is fine. 
> 
> The CRS is defined in the QGIS project setting and also in QWC in the 
> GlobalOptions.js. I added a file "EPSG2154.js" in 
> ../site/libs/proj4js/defs/. 
> 
> What is the error ? 
> "TypeError: wmsLoader.projectSettings.service is undefined" 
> var thisAbstract = wmsLoader.projectSettings.service.abstractLine 1756 
> in ../site/js/WebgisInit.js 

is Line 15 of your GlobalOptions reading: 
var useGetProjectSettings = true; 

Bernhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140513/d02c439b/attachment.html>


More information about the Qgis-user mailing list