-
-
Notifications
You must be signed in to change notification settings - Fork 6k
fixed setOpacity in IE7 and IE8 #1371
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
Conversation
|
forget this pull request from now, looks like native IE8 still fails (compatiblity mode works). Working in the fix |
|
last commit fixes native ie7 and native ie8 |
|
The setOpacity support for old IE has always been a contentious issue :-( These 2 issues have some background on why setOpacity is like it is: I think you could achieve this fix with just the changes to TileLayer? (Haven't tested yet sorry, my IE VMs are hosed) |
|
setOpacity is not working in IE7 and IE8 (both native), you can check it with this simple example: http://bl.ocks.org/d/4942923/ In IE8 opacity worked but only the first time. I've changed only TiledLayer, the other changes were to identify IE8 and to fix setOpacity in DomUtils (was not working neither, check it with the debugger in IE8), but I suppose I could do it. I'm not very familiar with Leaflet source code so maybe there is a better way to do it. |
|
I'll take a look at IE 7/8 opacity today. Thanks heaps for these changes, they are awesome :-) IE7/8 setOpacity works for markers, it should just be TileLayers that are broken. |
|
Yeah, when I wrote setOpacity i was refering to TileLayer setOpacity. Tomorrow I will fix TileLayer.setOpacity and will revert the DomUtil.setOpacity Thansks for your help El 14/02/2013, a las 22:18, Dave Leaver notifications@github.com escribió:
|
|
Awesome, sounds good! I've done a cludge up over here: |
|
@danzel I just tested your branch and it works for IE7 and IE8 (both native) using the map-mobile.html test so i think we could close this and merge yours. |
|
Nice work guys! Dave, pull it in! |
|
Great, have pulled in. |
|
Thanks Dave and Javi :) |
setOpacity is not working in IE7 and IE8
you can check it in the following link (changes the opacity each 2 seconds). It uses the leaflet 0.5 hosted in the CDN (I tested with the current master and i get the same behavior)
example: http://bl.ocks.org/d/4942923/
code: https://gist.github.com/javisantana/4942923
this is the version with the patch applied
example: http://bl.ocks.org/d/4942985/
code: https://gist.github.com/javisantana/4942985
I'm not pretty sure if that is the best way to manage the opacity for IE7 since the opacity for all the tiles should be changed to work.