[core] Use LayerInfo::tileKind in sources

This commit is contained in:
Mikhail Pozdnyakov
2019-09-18 14:56:21 +03:00
parent 152d4c35fc
commit e3137d86d2
6 changed files with 12 additions and 12 deletions

View File

@@ -5,6 +5,7 @@
#include <mbgl/style/source_observer.hpp>
#include <mbgl/style/sources/raster_source.hpp>
#include <mbgl/style/sources/raster_source_impl.hpp>
#include <mbgl/tile/tile.hpp>
#include <mbgl/util/exception.hpp>
#include <mbgl/util/mapbox.hpp>
@@ -82,7 +83,7 @@ void RasterSource::loadDescription(FileSource& fileSource) {
}
bool RasterSource::supportsLayerType(const mbgl::style::LayerTypeInfo* info) const {
return !std::strcmp(info->type, "raster");
return mbgl::underlying_type(Tile::Kind::Raster) == mbgl::underlying_type(info->tileKind);
}
} // namespace style