Opened 15 years ago
Closed 12 years ago
#388 closed defect (fixed)
Legend: dynamic legend doesn't work in IE
Reported by: | liuar | Owned by: | madair |
---|---|---|---|
Priority: | P2 | Milestone: | 2.3 |
Component: | Widgets | Version: | 2.0.0-RC1 |
Severity: | Critical | Keywords: | |
Cc: | madair@…, Jenny.he@…, Chris.Claydon@… | Browser: | IE8(beta) |
External ID: | 1314446, 1314402, 1313948 | Operating System: | All |
state: | New |
Description
- Add a layer in a collapsed folder.
- Open map in IE and FireFox
Result:
There's a request for the layer's legend image sent by IE.
Expected:
There should not be any requests for invisible layers in legend.
Change History (8)
comment:1 by , 15 years ago
Milestone: | Future → 2.0 |
---|---|
Version: | SVN → 2.0.0-RC1 |
comment:2 by , 15 years ago
Browser: | All → IE8(beta) |
---|---|
Cc: | added |
External ID: | → 1314446 |
comment:3 by , 15 years ago
External ID: | 1314446 → 1314446, 1314402, 1313948 |
---|
The style.backgroundImage also affected FireFox/Chrome/Safari sometimes.
In these browsers, after assigning value for backgroundIamge, its value is still "".
this.domImg.style.backgroundImage = 'url('+this.options.image+')';
That will result some legend icon displayed incorrect.
comment:5 by , 15 years ago
It seems IE alway preload image at line 750 Legend.js
item.domImg.style.backgroundImage = 'url('+opt.image+')';
comment:6 by , 14 years ago
Milestone: | 2.0 → 2.1 |
---|---|
Status: | new → assigned |
there has been a substantial rewrite of Legend in the Jx-3 sandbox so moving this to the 2.1 milestone to see if it's still an issue after that branch is merged back into trunk
comment:7 by , 14 years ago
Milestone: | 2.1 → 2.3 |
---|
comment:8 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Either Jx3 has solved the problem, or my enhancements to support inline data URI legend icons (IE8 and above will use inline data URI icons) has made this issue no longer applicable.
Hi Experts,
This defect means IE will be much slower than other browsers when openning maps with many layers.
IE will send out request when domImg.style.backgroundImage gets value, which cause this defect.
Do we have any fixes or walkarounds?