I've recently tested the openlayers.control.getfeature to do something related to your question but sorry to say this, I didn't understand what you're trying to do.
Sent from my iBath On Feb 14, 2013, at 19:12, "negroscuro" <[email protected]> wrote: Hello, I am trying to do a customized getFeatureInfo, so in order to do the request to the WMS I need to know the I and J defined in the OGC WMS 1.3.0 specification, I mean to do the getFeatureInfo request i need a I and J, being those I and J pixels of the layer. If I am not wrong, when I implemented a control to handle the click on map event, I get a X and Y pixels but those pixels I guess that dont match the layers ones because that x and y from the event are based in the viewport extension and not in a concrete layer extension so my question here is how to get the choosen layer X and Y when I click on it or just get some null value to know that I am clicking outside my concrete layer. I know which layer is selected but I dont know how to convert the vieport x and y clicked in that layer's X and Y pixels. Do I explained myself clearly enough? Sorry for my english. Thank you in advance for helping Cheers. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/custom-getFeatureInfo-control-problem-with-layer-pixels-tp5034389.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 _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
