summaryrefslogtreecommitdiff
path: root/include/mbgl/style
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-12-12 16:02:19 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-12-20 21:05:40 -0800
commit117c8ed1d100e2b64841f17714178bd1d9ffc40e (patch)
tree9d0c839442ca17bf749b3a7dae5cf3e43246c6a8 /include/mbgl/style
parent906d700ccd1aedf262b8a29b88203c614c105805 (diff)
downloadqtlocation-mapboxgl-117c8ed1d100e2b64841f17714178bd1d9ffc40e.tar.gz
[core] Added URL accessor for tile sources
Diffstat (limited to 'include/mbgl/style')
-rw-r--r--include/mbgl/style/sources/geojson_source.hpp2
-rw-r--r--include/mbgl/style/sources/raster_source.hpp3
-rw-r--r--include/mbgl/style/sources/vector_source.hpp3
3 files changed, 7 insertions, 1 deletions
diff --git a/include/mbgl/style/sources/geojson_source.hpp b/include/mbgl/style/sources/geojson_source.hpp
index e633e6efba..ede0301725 100644
--- a/include/mbgl/style/sources/geojson_source.hpp
+++ b/include/mbgl/style/sources/geojson_source.hpp
@@ -43,7 +43,7 @@ public:
void setURL(const std::string& url);
void setGeoJSON(const GeoJSON&);
- optional<std::string> getURL();
+ optional<std::string> getURL() const;
// Private implementation
diff --git a/include/mbgl/style/sources/raster_source.hpp b/include/mbgl/style/sources/raster_source.hpp
index 9bb951992c..395f25e51d 100644
--- a/include/mbgl/style/sources/raster_source.hpp
+++ b/include/mbgl/style/sources/raster_source.hpp
@@ -11,9 +11,12 @@ class RasterSource : public Source {
public:
RasterSource(std::string id, variant<std::string, Tileset> urlOrTileset, uint16_t tileSize);
+ optional<std::string> getURL() const;
+
// Private implementation
class Impl;
+ Impl* const impl;
};
template <>
diff --git a/include/mbgl/style/sources/vector_source.hpp b/include/mbgl/style/sources/vector_source.hpp
index e16a6a68af..8626ce160a 100644
--- a/include/mbgl/style/sources/vector_source.hpp
+++ b/include/mbgl/style/sources/vector_source.hpp
@@ -11,9 +11,12 @@ class VectorSource : public Source {
public:
VectorSource(std::string id, variant<std::string, Tileset> urlOrTileset);
+ optional<std::string> getURL() const;
+
// Private implementation
class Impl;
+ Impl* const impl;
};
template <>