Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to get the total number of objects (Lines,Points) at a given pixel position in the map?

share|improve this question

You can create Point geometry from given pixel position and calculate number of other geometries of layer's features which intersects this one. See OpenLayers.Geometry.Point.intersects method.

share|improve this answer
But I think this function only determines if the two geometries intersects..I would like to get all the overlapped features at pixel position because SelectFeature only gets the topmost object..There is a function getObjectsAt(x, y) in nokia maps api which returns an array with all the overlapped objects at that pixel position. Do we have something similar in openlayers? – user9685 Aug 28 '12 at 13:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.