diff options
Diffstat (limited to 'src/mbgl/map/map.cpp')
-rw-r--r-- | src/mbgl/map/map.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 649e0e321e..f747d37b24 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -30,11 +30,17 @@ Map::Map(RendererFrontend& frontend, MapObserver& observer, const MapOptions& mapOptions, const ResourceOptions& resourceOptions) - : impl(std::make_unique<Impl>(frontend, observer, - FileSource::getSharedFileSource(resourceOptions), - mapOptions)) {} + : impl(std::make_unique<Impl>(frontend, observer, FileSource::getSharedFileSource(resourceOptions), mapOptions)) { +#ifndef NDEBUG + setDebug(MapDebugOptions::TileBorders | MapDebugOptions::ParseStatus); +#endif +} -Map::Map(std::unique_ptr<Impl> impl_) : impl(std::move(impl_)) {} +Map::Map(std::unique_ptr<Impl> impl_) : impl(std::move(impl_)) { +#ifndef NDEBUG + setDebug(MapDebugOptions::TileBorders | MapDebugOptions::ParseStatus); +#endif +} Map::~Map() = default; |