[core] s/Wireframe/Overdraw/g

This commit is contained in:
Bruno de Oliveira Abinader
2016-06-20 13:18:16 +03:00
parent df5a395708
commit 97dffeb03d
20 changed files with 48 additions and 49 deletions

View File

@@ -43,9 +43,8 @@ typedef NS_OPTIONS(NSUInteger, MGLMapDebugMaskOptions) {
/** Edges of glyphs and symbols are shown as faint, green lines to help
diagnose collision and label placement issues. */
MGLMapDebugCollisionBoxesMask = 1 << 4,
/** Line widths, backgrounds, and fill colors are ignored to create a
wireframe effect. */
MGLMapDebugWireframesMask = 1 << 5,
/** Overdraw inspector. */
MGLMapDebugOverdrawsMask = 1 << 5,
};
/**

View File

@@ -1829,9 +1829,9 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
{
mask |= MGLMapDebugCollisionBoxesMask;
}
if (options & mbgl::MapDebugOptions::Wireframe)
if (options & mbgl::MapDebugOptions::Overdraw)
{
mask |= MGLMapDebugWireframesMask;
mask |= MGLMapDebugOverdrawsMask;
}
return mask;
}
@@ -1855,9 +1855,9 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
{
options |= mbgl::MapDebugOptions::Collision;
}
if (debugMask & MGLMapDebugWireframesMask)
if (debugMask & MGLMapDebugOverdrawsMask)
{
options |= mbgl::MapDebugOptions::Wireframe;
options |= mbgl::MapDebugOptions::Overdraw;
}
_mbglMap->setDebug(options);
}