What does the request in firebug looks like when you click the feature?

if you don't define it explicitly, the map will be displayed in 900913 (proj of base layer) I think you need to explicitly define in the map configuration both the projection and display projection
for example:

config = {
          projection : new OpenLayers.Projection("EPSG:900913"),
          displayProjection: new OpenLayers.Projection("EPSG:4326"),
          units : "m",
          numZoomLevels : 18,
          maxResolution : "auto",
          maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
                  20037508.34, 20037508.34)

      };

This maxExtent is for the world
This way you force the map to be displayed in 4326 projection. Because otherwise you click a point say in Germany and is transformed to another point in Argentina :) , or not at all on the map

Good luck
Moataz

stash wrote:
Hi,

I'm not sure, if you understand, what I wrote in in the subject. My problem
is the following situation:

I have an osm base Layer:

 map_2.addLayer(new OpenLayers.Layer.OSM("OpenStreetMap Karte"));

my next layer is a wfs layer with epsg-code:4326

on this layer i can call a getfeature to get some information of the
features displayed in the map.

the problem is now, that the getfeature doesn't work. Nothing happens, when
i click on a feature on the map.

I'm sure that my code is right, because when i use another layer with the
same epsg code than the wfs (4326) as my first layer (base layer) then, the
getfeature works.

but this base layer is a bit boring, so i wanted to include the osm layer.

I don't know what I'm doing wrong, however I have a guess.

The osm layer is using another epsg code than my wfs layer (osmLayer
epsgcode:900913).
Because of that, it could be, that my wfs getfeature doesn't work. The
results of the wfs are displayed correctly, that is not the problem, but the
getfeature on the results don't work, when i use the osm layer as base
layer.

I hope you understand my problem.

Thanks for your help.

Best Regards

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

Reply via email to