Ticket #550 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

new feature handler breaks the openmnnd.html example

Reported by: tschaub Owned by: 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 Download (2.4 KB) - added by tschaub 6 years ago.
updates the example to work with new feature handler behavior

Change History

Changed 6 years ago by tschaub

updates the example to work with new feature handler behavior

Changed 6 years ago by tschaub

  • keywords review added

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

please review

Changed 6 years ago by tschaub

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

fixed with r2847

Changed 6 years ago by euzuro

  • keywords review removed
Note: See TracTickets for help on using tickets.