[core] Added URL accessor for tile sources

This commit is contained in:
Minh Nguyễn
2016-12-12 16:02:19 -08:00
committed by Minh Nguyễn
parent 906d700ccd
commit 117c8ed1d1
8 changed files with 32 additions and 6 deletions

View File

@@ -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

View File

@@ -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 <>

View File

@@ -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 <>