diff options
Diffstat (limited to 'src/mbgl/style/sources/raster_source.cpp')
-rw-r--r-- | src/mbgl/style/sources/raster_source.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/style/sources/raster_source.cpp b/src/mbgl/style/sources/raster_source.cpp index c758a7bc8b..851f32573e 100644 --- a/src/mbgl/style/sources/raster_source.cpp +++ b/src/mbgl/style/sources/raster_source.cpp @@ -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 |