Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Map Layers, legend icons/images not showing up when opening project with IE11 and Windows7 #96

Closed
hiroki-c opened this issue Jan 23, 2019 · 9 comments

Comments

@hiroki-c
Copy link

Hi

I successfully set up qgis server3.4 and eqwc 1.8.2 on Ubuntu 18.04.

When I checked the sample hello project with IE11&Windows7 with EQWC,
I noticed that legend images not showing in map layer. * Please check the attachment below.

Firefox 64 and Google Chrome 71 work correctly but when I open my project with IE11,
it gives me an error in console like below

"Unable to get property 'getUI' of undefined or null reference"
at file: eqwc.js, row: 43, column:437

below script is the part that may be giving an error
Ext.DomHelper.insertAfter(b.getUI().getAnchor(),"<div style='overflow-x:hidden; overflow-y:auto; max-height:"+ h+"px;' id='legend_"+c+"'><img style='vertical-align: middle; margin-left: 50px;margin-bottom: 10px;' src=\""+a+'"/></div>');

Any ideas on this issue?
We need to use IE11 because most people in our company are only available to use IE11.

error

@hiroki-c hiroki-c changed the title In MapLayer, Legend not showing up in IE11 and Windows7 In Map Layers, legend icons/images not showing up in IE11 and Windows7 Jan 23, 2019
@hiroki-c hiroki-c changed the title In Map Layers, legend icons/images not showing up in IE11 and Windows7 In Map Layers, legend icons/images not showing up when opening project with IE11 and Windows7 Jan 23, 2019
@uprel
Copy link
Member

uprel commented Jan 23, 2019

I checked, code used here is not implemented in IE11 so a workaround is needed.
Source - https://stackoverflow.com/questions/8056277/how-to-get-response-url-in-xmlhttprequest

Server must provide custom header with data needed (node id and layer) and then it can br requested with xhr.getResponseHeader()

All other major browsers support that, so problem is really IE. If you can't use any other and you really wish to display legend like that, I can provide this fix.

@hiroki-c
Copy link
Author

Thank you for the quick response Uprel.

It would be great if you could provide us the modification for this
if that doesn’t take too much time for you!

Since we have a lot of categories to display, showing legend images is really helpful for us:)

Thank you

Thank you

@hcwk
Copy link

hcwk commented Mar 11, 2019

Hi

Any update for this issue?

Thank you

@uprel
Copy link
Member

uprel commented Mar 11, 2019

A lot of other work, sorry. I could take a look this week and since you are more or less only one requesting this I would appreciate that if after the update you consider some donation to the project.

@hcwk
Copy link

hcwk commented Mar 11, 2019

Thank you Uprel, I will consider about it for sure!

@uprel uprel closed this as completed in 0ee04ce Mar 15, 2019
@uprel
Copy link
Member

uprel commented Mar 15, 2019 via email

@hiroki-c
Copy link
Author

Thank you Uprel for your work!
I will check it today

@uprel
Copy link
Member

uprel commented Mar 21, 2019

I updated also code on test.level2.si so examples using IE11 should show legends

@hiroki-c
Copy link
Author

Hi Uprel, it's working perfectly. Now I can see legends on IE11.
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants