Hi all
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:
layer3 = new OpenLayers.Layer.Vector("Neighborhoods
passed", {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.WFS({
url:
"http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms101/htdocs/ms101.map&service=wfs",
featureType: "subway_stations2",
//featureNS:
"http://mapserver.gis.umn.edu/mapserver",
//geometryName: "msGeometry",
//featurePrefix: "ms",
srsName: "EPSG:26918", //
Projection to be returned data in it.
//maxFeatures: "300",
// maxFeatures to be returned.
version: "1.1.0",
route: '6'
}),
});
'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.
Any idea? Is it possible at all?
or any better way to meet the same goal?
Regards
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users