[Qgis-user] QGIS web client on centos

jandab jandavid.bendrien at iwes.fraunhofer.de
Mon Apr 22 01:59:46 PDT 2013


Hello everyone,

we came across the same problem. QGIS Server 1.8, current QGIS Web Client
cloned from github.com. The error message in the firefox web console was
"TypeError: OpenLayers.Format.OWSCommon is not a constructor" in line 939.
The problem did not occur with the provided helloworld.qqs-file, only with
our own maps.

We found 2 workarounds:

Workaround 1: Revert to an earlier version of QWC, directly before the
change to OpenLayers 2.12 (git checkout
2c9b61b7818de5dec2d08d9402327c3b194b25a6) from 2/26/2013

Workaround 2: Works with the current QWC:

Update the internal OpenLayers.js file to the most recent one from
openlayers.org (it has a release string "2.13 dev" embedded in the file). To
do this, clone the git repository:

$ git clone 'https://github.com/openlayers/openlayers.git'

Maybe you need to check out a version that works because changes to this git
repostory are made on a daily basis. A version that works for us is
$ git checkout 80a61859478bd1f72c354d77ba76b877b82cf053

  The OpenLayers.js file must be built
$ cd openlayers/build
$ ./build

Overwrite the old OpenLayers.js in qgis-web-client/site/libs/openlayers/
with the one just built. Now it should work!

Hope this works for others as well,

Greetings,
Jan David Bendrien



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-web-client-on-centos-tp5043049p5048695.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.



More information about the Qgis-user mailing list