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

Line no 44 error #10

Closed
Akshay-Hegde opened this issue Nov 13, 2014 · 5 comments
Closed

Line no 44 error #10

Akshay-Hegde opened this issue Nov 13, 2014 · 5 comments

Comments

@Akshay-Hegde
Copy link

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.

@heyman
Copy link
Owner

heyman commented Nov 21, 2014

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?

@Akshay-Hegde
Copy link
Author

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.

@iH8
Copy link

iH8 commented Feb 12, 2015

@heyman heyman closed this as completed in c848a41 Feb 12, 2015
@heyman
Copy link
Owner

heyman commented Feb 12, 2015

@iH8: Thanks a lot for the digging!

@iH8
Copy link

iH8 commented Feb 12, 2015

@heyman, no problem, glad to help out. Good luck with the project

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