-
Notifications
You must be signed in to change notification settings - Fork 39
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
Line no 44 error #10
Comments
From just looking at the code, I can't see anything that might be wrong. Could you provide a JSFiddle (http://jsfiddle.net/,) or similar, that reproduces the error? |
Hai! Thanks for reply., I confirmed its browser issue, not working on firefox 10.0.12 on Centos 6.4, 18.0.2 on Ubuntu 12.04, works fine on chrome / firefox 20+ versions. |
@heyman encountered this bug on SO, see: http://stackoverflow.com/questions/28465382/leaflet-areaselect-remove-on-internet-explorer/ |
@iH8: Thanks a lot for the digging! |
@heyman, no problem, glad to help out. Good luck with the project |
this._container.remove is not a function
this._container.remove();
I am just creating button like this
var areaSelect , toggle = true;
$("#button").on("click",function(){
if(toggle)
{
areaSelect = L.areaSelect().addTo(map)
}else{
areaSelect.remove();
}
toggle = !toggle;
})
Let me know if am wrong.
The text was updated successfully, but these errors were encountered: