[Qgis-user] QGIS Web Client - QWC Issues loading map (server loads fine)

Bernhard Ströbl bernhard.stroebl at jena.de
Thu Jul 10 00:24:52 PDT 2014


Hi,

I rechecked your GlobalOptions.js and realized in l. 198 you set map 
units to metres, I think, this should be "degrees" for EPSG:4326.
Please be sure to know what each parameter you set in MapOptions and 
LayerOptions means and why you set it the way you do. Check the 
OpenLayers api doc for that purpose. The GlobalOptions.js file is the 
central configuration file for QWC and is not meant to work out-of-the-box.

Bernhard

Am 09.07.2014 18:46, schrieb Carlos da Ponte:
> I did find the QWC bounding box being issued.  It only issues a call for the
> project when you zoom all the way out and when it does I get this (before
> changing the yx arg)
>
> http://gis.idn12.com/qgis/qgis_mapserv.fcgi?map=C:/projects/elements/testshp2.qgs&LAYERS=VIEWS_2%2CCLAB_INRES_4326&OPACITIES=255,255&FORMAT=image%2Fpng&TRANSPARENT=TRUE&DPI=96&VERSION=1.3.0&EXCEPTIONS=INIMAGE&SERVICE=WMS&REQUEST=GetMap&STYLES=&CRS=EPSG%3A4326&BBOX=-257.22907670455,-349.05251704545,17.469076704547,457.30401704545&WIDTH=1682&HEIGHT=573
>
> After adding the change you suggested
> http://gis.idn12.com/qgis/qgis_mapserv.fcgi?map=C:/projects/elements/testshp2.qgs&LAYERS=VIEWS_2%2CCLAB_INRES_4326&OPACITIES=255,255&FORMAT=image%2Fpng&TRANSPARENT=TRUE&DPI=96&VERSION=1.3.0&EXCEPTIONS=INIMAGE&SERVICE=WMS&REQUEST=GetMap&STYLES=&CRS=EPSG%3A4326&BBOX=-188.01920454545,-160.90265909091,-51.740795454548,269.15415909091&WIDTH=1682&HEIGHT=533
>
> It appears to change but its hard to say what the coordinates mean
>
>


__________ Information from ESET Mail Security, version of virus signature database 10073 (20140710) __________

The message was checked by ESET Mail Security.
http://www.eset.com





More information about the Qgis-user mailing list