Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I debugged through maphilight source code and found that IE8 chokes while adding the rule for newly created stylesheet. When I searched on Google for this particular problem, I found a bug report on OpenLayer’s track. The bug report had a patch and I used this patch on maphilight plugin to fix it.
Here’s what you need to do. Open jquery.maphilight.js (uncompressed source) and go to line 63, you will see something like following:
Replace the above with following:
It should now work in IE8. Here’s the proof, see how Wyoming is highlighted.
I am not sure if this will work in IE6 and IE7. You will have to test it yourself. If this breaks in IE6 and IE7, you will have to put this patch only when browser is IE8.
Once again, credit for the above patch to the original author. I only debugged the issue in maphilight plugin.