Hi all,

 

I am a newer on using OpenLayers :

I want to view data in MapServer (version 2.3.1) using OpenLayers
(version 2.7).

In my OpenLayers JS file, I call my mapfile (in attachment) with
MapServer like this :

var layer1= new OpenLayers.Layer.MapServer( "Audincourt SHP mapserver",

"http://localhost/cgi-bin/mapserv.exe";, { layers: '', map:
'C:/ms4w/geosphere/client1/Carte16_IA.map'}, {singleTile: true} );

map.addLayer(layer1);

 

But in the firefox window, only RASTER layer (with .PNG file in DATA) is
shown. Others layers aren't displayed.

 

With this URL in firefox : 
http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/geosphere/client1/Carte
16_IA.map&mode=map => I see the map I want.

 

Question : why layers (with shape and .ecw files in DATA) are not
displayed in my map ?

 

Thank you for answers

Jean-Daniel

Attachment: Carte16_IA.map
Description: Carte16_IA.map

_______________________________________________
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev

Reply via email to