<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi all</div><div>I'm using Mapserver + OpenLayers. Now i wanna have a dynamic layer using variable substitution feature available in Mapserver (Is there any other solution?). I'm using following code: <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"> layer3 = new OpenLayers.Layer.Vector("Neighborhoods passed", {<br> strategies: [new OpenLayers.Strategy.Fixed()],<br> protocol: new
OpenLayers.Protocol.WFS({<br> url: "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms101/htdocs/ms101.map&service=wfs",<br> featureType: "subway_stations2",<br> //featureNS: "http://mapserver.gis.umn.edu/mapserver", <br>
//geometryName: "msGeometry",<br> //featurePrefix: "ms",<br> srsName: "EPSG:26918", // Projection to be returned data in it.<br> //maxFeatures: "300", // maxFeatures to be returned.<br>
version: "1.1.0",<br> route: '6'<br> }), <br> });</div><div style="color: rgb(0, 0, 0);
font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">'route' parameter is defined in Data parameter of mapfile and i'm sure it works (I've tested this via GET request and it returns a correct GML). But in don't know how to say to openlayers to add this additional parameter to request. Adding "route: '6'" to the last line before ending parenthesis also doesn't work.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Any idea? Is it possible at all?</div><div
style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">or any better way to meet the same goal? </div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Regards</div></div></body></html>