proxy:
http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost

On Thu, Jan 20, 2011 at 10:14 AM, Daniel Behr <[email protected]> wrote:

> Hello List,
> I'm trying to get a Layer.Vector into OpenLayers 2.10 but it wont work.
>
> The Data comes from Oracle > Geoserver 1.7.6 and if I call it as Layer.WMS
> [1] it works as expected.
>
> no matter what changes i make to the Layer.Vector call [2], the layer never
> shows up in the map. (not even in the wrong place, but reprojecting is not
> an issue...)
>
> I thought the code from OL example at:
>
> http://openlayers.org/dev/examples/wfs-protocol.html
>
> would do it, but no.
> I also tried to add a format like this
>
> format: new OpenLayers.Format.WFS
>
> but I get an error in firebug that the this.layer is not defined.
>
> Anyone has a clue what I am missing here? I guess its something about
> events or features, but I really dont understand why the OL example works
> then...
>
> thanks
> Dan
>
> [1]
> pLayer = new OpenLayers.Layer.WMS(
>   "Platforms", "http://myserver/geoserver/wms";, {
>        layers: 'pform:PLATFORM',
>        styles: 'polygon',
>        srs: 'EPSG:900913',
>        format: 'image/png',
>        transparent: 'true'
>        },
>        {singleTile: true}
>   );
>
> [2]
> pLayer = new OpenLayers.Layer.Vector("Platforms", {
>        strategies: [new OpenLayers.Strategy.BBOX()],
>        protocol: new OpenLayers.Protocol.WFS({
>                url: "http://myserver/geoserver/wfs";,
>                featureType: "PLATFORM",
>                featureNS: "http://myserver/namespace/gml/pform";,
>                geometryName: 'GEOM'
>                })
>        });
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to