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

Sharing MapView between Activities/Fragments or View Controller #517

Open
lasyakoechlin opened this issue Aug 22, 2022 · 1 comment
Open

Comments

@lasyakoechlin
Copy link

Is there a way that we can take the already initialized MapView UI and simply re-apply it to a new fragment or View Controller?

It seems to be slow to constantly re-initialize the map for every Fragment.

One option is to just have a single Activity and put the MapView on that level; However, in some cases, where having separate Activities is desired, I would like to maintain the MapView state and not need to continuously go through the initialization process.

Any suggestions would be greatly appreciated.

@mtehver
Copy link
Contributor

mtehver commented Sep 4, 2022

Currently there is no simple way to move contents from one MapView to another - namely, Layer instances are associated with MapView instances and SDK does not support moving layers between MapView instances.

But lower level objects, like various services and data sources can be shared between multiple MapView instances.

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