diff options
Diffstat (limited to 'src/mbgl/style/image.cpp')
-rw-r--r-- | src/mbgl/style/image.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mbgl/style/image.cpp b/src/mbgl/style/image.cpp index 606d9907a4..3b35fa76f1 100644 --- a/src/mbgl/style/image.cpp +++ b/src/mbgl/style/image.cpp @@ -5,10 +5,15 @@ namespace mbgl { namespace style { -Image::Image(PremultipliedImage &&image, +Image::Image(std::string id, + PremultipliedImage &&image, const float pixelRatio, bool sdf) - : impl(makeMutable<Impl>(std::move(image), pixelRatio, sdf)) { + : impl(makeMutable<Impl>(std::move(id), std::move(image), pixelRatio, sdf)) { +} + +std::string Image::getID() const { + return impl->id; } const PremultipliedImage& Image::getImage() const { |