[Qgis-user] QGIS web client on centos

Andreas Neumann a.neumann at carto.net
Mon Apr 22 06:54:47 PDT 2013


Hi,

I just pushed a new OpenLayers.js file from OpenLayers 2.12.

I would not recommend to use the full version - it contains too much
unnecessary stuff that bloats the file size. If you build your own
version, I recommend using the provided
site/libs/openlayers/build/qgis-web-client.cfg file for a custom build.

Can people please test if it works with the current version
https://github.com/qgis/qgis-web-client/blob/master/site/libs/openlayers/OpenLayers.js

Thanks for testing,
Andreas

Am 22.04.2013 10:59, schrieb jandab:
> 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.
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 




More information about the Qgis-user mailing list