Opened 13 years ago

Closed 13 years ago

#472 closed defect (fixed)

Values are not consistent while more than one ViewOptions widgets exists

Reported by: liuar Owned by: liuar
Priority: P2 Milestone: Future
Component: Widgets Version: 2.0
Severity: Major Keywords:
Cc: Browser: All
External ID: 1363177.01 Operating System: All
state: Committed

Description

  1. Add one ViewOption widget on the toolbar of MapGuide viewer.
  2. Add another ViewOption widget on context menu of MapGuide

viewer.

  1. Change the value of one widget.
  2. The other widget is unchanged.


Expected: the value of second widget should update according to the first one.

Attachments (1)

viewoptions.patch (1.5 KB ) - added by liuar 13 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by liuar, 13 years ago

To fix this issue, I register a parameter "Unit" in ViewOptions which makes this widget could react to the map unit change event.

The setParameter function works like an event handler to update the value of current unit according to map's unit.

by liuar, 13 years ago

Attachment: viewoptions.patch added

comment:2 by liuar, 13 years ago

state: NewReview

Hello Mike,

Could you please review the attached patch?

-Arthur

comment:3 by madair, 13 years ago

Arthur,

That looks like the correct way to fix this issue. Assuming it fixes it please go ahead an commit.

comment:4 by liuar, 13 years ago

Resolution: fixed
state: ReviewCommitted
Status: newclosed

Thank you Mike.

  • Arthur


Fixed in Changeset [2421]

Note: See TracTickets for help on using tickets.