summaryrefslogtreecommitdiff
path: root/include/mbgl/style/layers/raster_layer.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-22 12:31:49 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-24 09:39:15 -0700
commitc4e4cc5081965d03132eea754c27ece3c95961cb (patch)
tree3aa4f722ead3273b1faaed5f30449bb8654cf23d /include/mbgl/style/layers/raster_layer.hpp
parent089c4e413fbe80711ebd874520d3b8fdcb997112 (diff)
downloadqtlocation-mapboxgl-c4e4cc5081965d03132eea754c27ece3c95961cb.tar.gz
[core] Adjust layer source properties to better reflect reality
* Layer source ID is immutable; must be provided to the constructor * Layer source layer is mutable * Layers with GeoJSON sources do not have a source layer While here, make Layer::copy impl-private.
Diffstat (limited to 'include/mbgl/style/layers/raster_layer.hpp')
-rw-r--r--include/mbgl/style/layers/raster_layer.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/mbgl/style/layers/raster_layer.hpp b/include/mbgl/style/layers/raster_layer.hpp
index 6d0c7dd91c..372434e46d 100644
--- a/include/mbgl/style/layers/raster_layer.hpp
+++ b/include/mbgl/style/layers/raster_layer.hpp
@@ -13,12 +13,10 @@ namespace style {
class RasterLayer : public Layer {
public:
- RasterLayer(const std::string& layerID);
+ RasterLayer(const std::string& layerID, const std::string& sourceID);
~RasterLayer() final;
// Source
-
- void setSource(const std::string& sourceID);
const std::string& getSourceID() const;
// Paint properties