OpenLayers OpenLayers

Ticket #550 (closed bug: fixed)

Opened 2 years ago

Last modified 1 year ago

new feature handler breaks the openmnnd.html example

Reported by: tschaub Assigned to: tschaub
Priority: minor Milestone: 2.4 Release
Component: general Version:
Keywords: Cc:
State:

Description

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.

Attachments

openmnnd.patch (2.4 kB) - added by tschaub on 03/22/07 12:59:02.
updates the example to work with new feature handler behavior

Change History

03/22/07 12:59:02 changed by tschaub

  • attachment openmnnd.patch added.

updates the example to work with new feature handler behavior

03/22/07 13:00:57 changed by tschaub

  • keywords set to review.

innocuous patch for example - fixes example, only listens for 'over' callbacks (instead of every move), and gives it a more fluid layout

please review

03/22/07 13:09:41 changed by tschaub

  • status changed from new to closed.
  • resolution set to fixed.

fixed with r2847

07/05/07 17:06:35 changed by euzuro

  • keywords deleted.