is there a STATUS defined in the mapfile? Is the layer ON in the layerSwitcher?
Gaëtan Palka <palka.gae...@gmail.com>@lists.osgeo.org Envoyé par : openlayers-users-boun...@lists.osgeo.org 2013-11-22 13:12 A openlayers-users <openlayers-users@lists.osgeo.org> cc Objet [OpenLayers-Users] OL 2.13 and WMS from qgis-mapserver hi, I work on Ubuntu 12.04 LTS and I want to show a WMS produced by qgis-mapserver. All is OK want I open my WMS with qgis desktop but when I want to show it with OL my WMS does not appear and firebug does not says that there is an error. Here my .js : function init() { var map = new OpenLayers.Map('map',{controls:[]}); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.Navigation()); var osmLayer = new OpenLayers.Layer.OSM(); var wms = new OpenLayers.Layer.WMS( 'alea', 'http://localhost/cgi-bin/alea37_900913/qgis_mapserv.fcgi ', { layers: 'alea37_900913', format: 'image/png', } ); map.addLayer(osmLayer); map.addLayer(wms); map.setCenter(new OpenLayers.LonLat(71000,6000000),10); } My data (shp and qgis project) is in the folder /usr/lib/cgi-bin/alea37_900913. I used this tutorial : http://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/ Thank you by advance for help. _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users