2 things

1- in the map config.projection should be = 900913 not 4326

2- I don't know alot about Strategy but according to documentation, in Fixed strategy all features will be loaded at the begining and never loaded again., maybe that's why nothing happens when you click the features!!

stash wrote:
Hello,

here is the code of my wfs.

        wfs_layer = new OpenLayers.Layer.Vector("WFS",
{
    strategies: [new OpenLayers.Strategy.Fixed()],
    projection: 'EPSG:4326',
    protocol: new OpenLayers.Protocol.WFS
                ({
            url: "http://...:8080/geoserver/wfs";,
                    featureType: "my_shape",
                    featurePrefix: 'topp',
                    featureNS: "http://www.openplans.org/topp";,
                    maxFeatures: 100
                })
});

the rest of the code is nothing special.

I used this config options:

var config = {
           projection : new OpenLayers.Projection("EPSG:4326"),
           displayProjection: new OpenLayers.Projection("EPSG:4326"),
           units : "m",
           numZoomLevels : 18,
           maxResolution : "auto"
       };

Thanks for your help.

Best Regards


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to