Opened 5 years ago

Closed 5 years ago

#2331 closed feature (fixed)

set specific baseLayers radio button name to avoid several layerswitcher conflict

Reported by: pgiraud Owned by: euzuro
Priority: minor Milestone: 2.9 Release
Component: Control.LayerSwitcher Version: 2.8
Keywords: Cc:
State: Complete

Description

Currently, the radio buttons in the LayerSwitcher control always have the same name. We need to make it LayerSwitcher instance dependant so that checking a radio button in one layerSwitcher doesn't uncheck the radio buttons in an other switcher.

Attachments (2)

patch-2331.diff (751 bytes) - added by pgiraud 5 years ago.
patch-2331.2.diff (1.5 KB) - added by pgiraud 5 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by pgiraud

I will gladly add tests in my patch if required.

Changed 5 years ago by pgiraud

comment:2 Changed 5 years ago by pgiraud

  • State set to Review

Changed 5 years ago by pgiraud

comment:3 Changed 5 years ago by bartvde

  • State changed from Review to Commit

Looks good Pierre, please commit.

comment:4 Changed 5 years ago by pgiraud

  • Resolution set to fixed
  • State changed from Commit to Complete
  • Status changed from new to closed

(In [9772]) give the radio buttons for the baselayers in the layer switcher control a name depending on the layerswitcher, this avoids problems with several maps and several layer switchers in the same page, r=bartvde (Closes #2331)

Note: See TracTickets for help on using tickets.