function doPlanToggle(){ resetStatusbar(); var current_o = service_IMRO2008.opacity; // load current setting var new_o; switch (current_o) { case 0.00: new_o = 0.25; break; case 0.25: new_o = 0.50; break; case 0.50: new_o = 0.75; break; case 0.75: new_o = 1.00; break; case 1.00: new_o = 0.00; break; default: new_o = 0.50; } service_IMRO2008.setOpacity(new_o); setStatusbar("Dekkingspercentage plan aangepast in: " + parseInt(100 * new_o) + "%"); // interface feedback } // WvI 2010-08-02
<meta http-equiv="x-ua-compatible" content="IE=7"> <!doctype html>
layer.refresh()
layer.setOpacity(newValue)
layer.setOpacity(new_o); if (dojo.isIE <= 8) { layer.refresh(); } // IE fix
It still seems to respond rather slow...
$("#uxOpacitySlider").slider({ min: 0, max: 100, value: 65, slide: function (event, ui) { $("#uxOpacityValue").html("(" + (100 - ui.value) + "%)"); var newOp = (ui.value / 100); Layer.setOpacity(newOp); }, change: function (event, ui) { if (dojo.isIE <= 10) { Layer.refresh(); } // IE fix } });
I'm having what I think is a similar issue to what's described above. I'm viewing my map in IE9 and using version 3.4 of the API. I tried the meta tag solution and the layer.refresh() solution described above, and it still doesn't seem to work quite right. My map uses a horizontal jquery slider to adjust the opacity. Moving the slider to the right is supposed to increase the opacity, but the first move to the right in IE9 seems to actuall decrease it. Then it starts to increase it with subsequent moves the right. Not sure if this is the same issue or not, but if anyone has a suggestion to fix it, I would appreciate it. Thanks in advance.
Here is the map:
http://www.puco.ohio.gov/pucogis/esa/index.cfm