So i tryed to add the layer2 in MapComponents.js, i'd like to use WFS
services to get those features.
This is the snapshot of code that i've added:
var secondLayer = new OpenLayers.Layer.Vector(second_layer, {
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
url: "http://localhosto:8082/geoserver/wfs",
featureType: second_layer,
featureNS: "http://www.openplans.org/topp"
})
});
map.addLayers([propSymbolLayer,secondLayer]);
When i try to execute the georeport i see from the firebug:
OpenLayers.Protocol.WFS is not a constructor
[Break on this error] featureNS: "http://www.openplans.org/topp"
looking at the source code of this sample: http://openlayers.org/dev/examples/wfs-states.html
that code snippet seems to work with OpenLayers 2.8.
Has anybody else faced this problem?
Any hint will be greatly appreciated!
Ps: i'm working with pentaho 3.5
Jeff