camptocamp / cgxp

22 stars 22 forks source link

Edit select best feature #1076

Closed pgiraud closed 8 years ago

pgiraud commented 8 years ago

This idea behind this pull request is to avoid possible errors when selecting feature for editing purpose.

This issue was that the polygons are always taken first into account. If a point layer is on top of a polygon one, it's impossible to select the point unless the polygon layer is set to invisible.

This pull request fixes this issue by taking the first result returned by the service which takes into account the visibility order. The pull request also removes unrequired code. The GetFeature options were not taken into account since we're in a specific case (Editing).

Demo: https://geomapfish-demo.camptocamp.net/pierre/edit

pgiraud commented 8 years ago

Wrong target.