Opened 14 years ago

Closed 11 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

  1. Add a layer in a collapsed folder.
  2. 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 liuar, 14 years ago

Milestone: Future2.0
Version: SVN2.0.0-RC1

comment:2 by liuar, 14 years ago

Browser: AllIE8(beta)
Cc: madair@… Jenny.he@… Chris.Claydon@… added
External ID: 1314446

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?

comment:3 by liuar, 14 years ago

External ID: 13144461314446, 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:4 by liuar, 14 years ago

The FireFox/Chrome/Safari problem has been addressed in #390

comment:5 by liuar, 14 years ago

It seems IE alway preload image at line 750 Legend.js

item.domImg.style.backgroundImage = 'url('+opt.image+')';

comment:6 by madair, 14 years ago

Milestone: 2.02.1
Status: newassigned

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 madair, 14 years ago

Milestone: 2.12.3

comment:8 by jng, 11 years ago

Resolution: fixed
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.