I have been looking at OL3-mobile-viewer as an option to make my maps more accessible. Unfortunately I cannot figure out what I need to change to hook it up with my existing QGIS server and qgis-web-client setup.
Can anybody give some guidance or direct me to a tutorial?
Best Answer
You can install it in a similar way as qgis-web-client. On debian testing/ubuntu 14.04: If you presumably have cloned the repo into /home/web/:
cd /home/web/ol3-mobile-viewer mkdir apache-conf
Create apache-conf/ol3-mobile-viewer.conf:
You should now see the default site by going to http://myserver.ro
For pointing to your qgis server you first need to add a topic in the
data/topics.json
and then the corresponding layers in the 'data/layers_topicname.json'.You can make something like: topics.json:
layers/layers_mymap.json:
As the map is setup for swiss projection, I would recommend you use at first a qgis project using swiss EPSG so that you get it working. If you do that, you only need to configure the right wms server url; So, change
http://myserver.ro/wms/qgis_project_name
to your liking (if you use url rewrite etc.)Good luck.