[core] Added URL accessor for tile sources
This commit is contained in:
committed by
Minh Nguyễn
parent
906d700ccd
commit
117c8ed1d1
@@ -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
|
||||
|
||||
|
||||
@@ -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 <>
|
||||
|
||||
@@ -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 <>
|
||||
|
||||
Reference in New Issue
Block a user