overlay more than 2 layers with georeport

Skip to first unread message

Jeff Berger

Mar 29, 2010, 3:36:55 PM3/29/10
to geobi
I'd like to overlay more than 2 layers in georeport.
So the situation should be something like:
Googlemap: as a base layer,
layer1: used for the analysis,
layer2: Vector layer, should be displayed from "livelli" panel.

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"



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


Reply all
Reply to author
0 new messages