[OpenLayers-Users] custom getFeatureInfo control / problem with layer pixels

negroscuro mario.nunez at atosresearch.eu
Thu Feb 14 10:12:37 PST 2013


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.


More information about the Users mailing list