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

How do i remove every marker at the start up? #337

Closed
moooises opened this issue Jan 28, 2025 · 1 comment
Closed

How do i remove every marker at the start up? #337

moooises opened this issue Jan 28, 2025 · 1 comment

Comments

@moooises
Copy link

Hello,
I have a plugin for ATAK that receive latitude and longitude and place markers in the map with that data. That works fine, but when I close and open the app, the markers are still there. I would like them to be removed everytime I open the app, but I have no clue how to do it.

Anyone has any idea how to achive this? I know you can remove Markers with the removeFromGroup() function, but I don't know where the placed Markers, or MapItems, are stored

@moooises
Copy link
Author

moooises commented Feb 7, 2025

Hello everyone

I discovered how to do it. It wasn't a ATAK issue, but an Android issue. The ATAK plugin API has a method onDestroyImpl that is executed when closing the plugin. It is located in MapComponent.

So, I clear the map there and once I close the App, It deletes everything. There is an equivalent for just the plugin, not the App called onDropDownClose() in DropDownReceiver.

@moooises moooises closed this as completed Feb 7, 2025
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

1 participant