Opened 14 years ago

Closed 14 years ago

#338 closed defect (fixed)

Map returned to the default commercial layer after theme operation

Reported by: liuar Owned by: madair
Priority: P2 Milestone: Future
Component: Widgets Version: 1.1.1
Severity: Major Keywords:
Cc: jenny.he@… Browser: All
External ID: 1272741 Operating System: All
state: Committed

Description

Steps:

  1. Open one flexible web layout with commercial layers.
  2. Select None in External Provider list.
  3. Do theme.
  4. the default basemap returned to the defualt commercial layer.

Attachments (1)

patch338.patch (4.3 KB ) - added by liuar 14 years ago.

Download all attachments as: .zip

Change History (3)

by liuar, 14 years ago

Attachment: patch338.patch added

comment:1 by liuar, 14 years ago

That's because those operation like theme and buffer will refresh or reload the map, which will invoke setDefaultBasemap method in BasemapSwitcher. So the default commercia layer will be set to baselayer again. There's a solution, added a event named MAP_MapGroupLoaded and setDefaultBasemap will react to this event rather than MapLoaded. MAP_MapGroupLoaded event will be fired when the whole map group is loaded.

comment:2 by liuar, 14 years ago

Resolution: fixed
state: NewCommitted
Status: newclosed
Note: See TracTickets for help on using tickets.