Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

initial implementation of Map::setView - #1964

Closed
mikemorris wants to merge 9 commits into
masterfrom
map-without-view
Closed

mikemorris wants to merge 9 commits into
masterfrom
map-without-view

Conversation

@mikemorris

Copy link
Copy Markdown
Contributor

I'm not sure if something needs to change in MapContext or if I'm just implementing wrong, but calling context->invokeSync(&MapContext::setView, *view); results in the error field type 'mbgl::View' is an abstract class. Would love a quick review here from @kkaefer or @tmpsantos to check if I'm going in the right direction.

@mikemorris

Copy link
Copy Markdown
Contributor Author

Got past the invoke trouble thanks to @tmpsantos' suggestion to make everything View*!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must call here view->deactivate() before replacing.

@jfirebaugh

Copy link
Copy Markdown
Contributor

@mikemorris

Copy link
Copy Markdown
Contributor Author

-> #2310

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants