This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Enable overdraw debug mode API on Android #5363
Labels
Android
Mapbox Maps SDK for Android
Comments
Note: We're going to modify the internal implementation of wireframe to use JS's |
@brunoabinader 👍 thanks for the heads up. |
brunoabinader
changed the title
Enable wireframe debug mode API on Android
Enable overdraw debug mode API on Android
Jun 20, 2016
We decided to rename this to |
With #5435 fixed, we have cleared the way to enable this in Android. |
Looked into this and we do not expose enabling specific debug options, only integration with Map::cycleDebugOptions. As overdraw was added there we are good to close. void Map::cycleDebugOptions() {
#if not MBGL_USE_GLES2
if (impl->debugOptions & MapDebugOptions::StencilClip)
impl->debugOptions = MapDebugOptions::NoDebug;
else if (impl->debugOptions & MapDebugOptions::Overdraw)
impl->debugOptions = MapDebugOptions::StencilClip;
#else
if (impl->debugOptions & MapDebugOptions::Overdraw)
impl->debugOptions = MapDebugOptions::NoDebug;
#endif // MBGL_USE_GLES2
else if (impl->debugOptions & MapDebugOptions::Collision)
impl->debugOptions = MapDebugOptions::Overdraw;
else if (impl->debugOptions & MapDebugOptions::Timestamps)
impl->debugOptions = impl->debugOptions | MapDebugOptions::Collision;
else if (impl->debugOptions & MapDebugOptions::ParseStatus)
impl->debugOptions = impl->debugOptions | MapDebugOptions::Timestamps;
else if (impl->debugOptions & MapDebugOptions::TileBorders)
impl->debugOptions = impl->debugOptions | MapDebugOptions::ParseStatus;
else
impl->debugOptions = MapDebugOptions::TileBorders;
impl->onUpdate(Update::Repaint);
} |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We now have a wireframe debug mode via #4359 which iOS is now exposing in the iOS and OS X SDKs and their demo applications via 22ef615.
This ticket focuses on bringing this to Android.
/cc: @brunoabinader
The text was updated successfully, but these errors were encountered: