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" <[email protected]>
À: "Amandine SCHLOUPT" <[email protected]>, "Andreas Neumann"
<[email protected]>
Cc: [email protected]
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
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user