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

Destroy a whole Map? #45

Open
maweo-mathis opened this issue Aug 28, 2021 · 1 comment
Open

Destroy a whole Map? #45

maweo-mathis opened this issue Aug 28, 2021 · 1 comment

Comments

@maweo-mathis
Copy link

Hello,

is it possible to destroy a whole map including the overlay and so on? I have the problem, that I got a little Application, that loads different Charts with P5.js. When I display the Mappa Part, Mappa creates a div arround my canvas and I want to restore the old state, when I change the chart again, so that the wrapping leaflet-div gets removed.

@ChaimStanton
Copy link

I also am in a similar situation.
I used

        let mappaContainer = select('#mappa');
        mappaContainer.remove();
        this.myFunInstance.remove(); // to remove sketch that was overlaying 

The only problem I ran into was that when I went to make another sketch I get an error.

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

2 participants