Merge pull request #1831 from mapbox/set-collision-debug-too
Set collision debug with -[MGLMapView setDebugActive:], too
This commit is contained in:
@@ -1407,11 +1407,12 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
|
||||
- (void)setDebugActive:(BOOL)debugActive
|
||||
{
|
||||
_mbglMap->setDebug(debugActive);
|
||||
_mbglMap->setCollisionDebug(debugActive);
|
||||
}
|
||||
|
||||
- (BOOL)isDebugActive
|
||||
{
|
||||
return _mbglMap->getDebug();
|
||||
return (_mbglMap->getDebug() || _mbglMap->getCollisionDebug());
|
||||
}
|
||||
|
||||
- (void)resetNorth
|
||||
|
||||
Reference in New Issue
Block a user