diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-05-31 11:53:04 -0700 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-06-01 15:38:01 -0700 |
commit | 8b37a0704c7c20b1664fee3dfcc79139982a1ce7 (patch) | |
tree | 9c0a50330b7e4f152a3a9ee25685fcbe8b9a4df4 /include/mbgl/style/sources | |
parent | 843da07b28a840fd850056c4b15d492ccc76a646 (diff) | |
download | qtlocation-mapboxgl-8b37a0704c7c20b1664fee3dfcc79139982a1ce7.tar.gz |
[core] Use fixed-size std::array for ImageSource coordinates
Diffstat (limited to 'include/mbgl/style/sources')
-rw-r--r-- | include/mbgl/style/sources/image_source.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/mbgl/style/sources/image_source.hpp b/include/mbgl/style/sources/image_source.hpp index fd67ad38e5..d8a2c45bd8 100644 --- a/include/mbgl/style/sources/image_source.hpp +++ b/include/mbgl/style/sources/image_source.hpp @@ -12,16 +12,16 @@ namespace style { class ImageSource : public Source { public: - ImageSource(std::string id, const std::vector<LatLng>); + ImageSource(std::string id, const std::array<LatLng, 4>); ~ImageSource() override; - const std::string& getURL() const; - void setURL(const std::string& url) ; + optional<std::string> getURL() const; + void setURL(const std::string& url); - void setImage(mbgl::UnassociatedImage&&); + void setImage(UnassociatedImage&&); - void setCoordinates(const std::vector<LatLng>&); - std::vector<LatLng> getCoordinates() const; + void setCoordinates(const std::array<LatLng, 4>&); + std::array<LatLng, 4> getCoordinates() const; class Impl; const Impl& impl() const; |