Hello,
Thanks for your advices.
You wrote that in my config the projection should be 900913. Of course, you
are right, I already fixed that problem before I had posted the code, sorry.
Unfortunately, I copied some old code (but the rest of the config didn't
change).
You wrote in point 2 that my strategy could be wrong. I don't know a lot
about Strategy, too, I copied the 'strategies: [new
OpenLayers.Strategy.Fixed()]' parameter from an example. But the problem is,
that if I use an other base layer (for example a wms in epsg 4326) the
getfeature works perfect, I didn't change the code of my wfs and of my wfs
getfeature.
According to your question what is happening, when i click a feature, here
is the code. It is nothing special, simply a message box with one parameter,
which is shown on my screen.
//Diese Funktion wird aufgerufen, sobald auf eine Polygongeometrie
geklickt wird
control.events.register("featureselected", this, function(e)
{ alert(e.feature.data.P_Name); });
map_2.addControl(control); //Control added
control.activate(); //... activated
Thanks for your help.
Best Regards
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/GetFeature-of-WFS-Layer-with-EPSG-4326-with-osm-base-layer-EPSG-900913-doesn-t-work-tp5689706p5700329.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users