Opened 15 years ago
Closed 15 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:
- Open one flexible web layout with commercial layers.
- Select None in External Provider list.
- Do theme.
- the default basemap returned to the defualt commercial layer.
Attachments (1)
Change History (3)
by , 15 years ago
Attachment: | patch338.patch added |
---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
state: | New → Committed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.