Ticket #550 (closed bug: fixed)
new feature handler breaks the openmnnd.html example
|Reported by:||tschaub||Owned by:||tschaub|
The new feature handler sends the target geometry to the control's callbacks. The old select handler first checked to see if that geometry had a parent, and if so, it sent the parent. It is better that controls get the actual target and then decide what to do with any parent (instead of never knowing there was a targeted child).
So, the openmnnd.html example sends custom callbacks to the SelectFeature control (which uses the new feature handler). These callbacks need to do the right thing if the returned geometry has a parent.
Also, I'm tweaking the layout so the feature info doesn't get overridden by the map on narrow browsers (info div is now floating right with a width equal to the map's right margin).
Patch to follow.