openlayers/openlayers — pull request #404 by pgiraud (2012-04-11 09:51:51+00:00)
Title: Let points and lines take precedence (priority) over polygons when selec...

...ting the best matching feature

Let's imagine a user querying a server to get features at a given location. If there is a point as well as a polygon there, we can consider that the user is actually requesting info about the point. With the previous code, it was almost impossible to get info for the point because of the distance comparison.
With this patch, if a point or a linestring is found in the response, it is considered to match better than any polygone.

Please review.