diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-14 10:57:43 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-14 11:25:45 -0700 |
commit | 5bbcca832660f80c42e8bfdb5d1836ea8113bb19 (patch) | |
tree | 08f46011d920f7abd4c86e16f2040df2355cfdb1 /src/mbgl/style/source.cpp | |
parent | 9d3c4fbbb05d37802ebc15210b041392b4d48f15 (diff) | |
download | qtlocation-mapboxgl-5bbcca832660f80c42e8bfdb5d1836ea8113bb19.tar.gz |
[core] Add virtual Source::getTileSize()
Diffstat (limited to 'src/mbgl/style/source.cpp')
-rw-r--r-- | src/mbgl/style/source.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/source.cpp b/src/mbgl/style/source.cpp index 21fb7fee36..ca0943918b 100644 --- a/src/mbgl/style/source.cpp +++ b/src/mbgl/style/source.cpp @@ -32,10 +32,9 @@ namespace style { static SourceObserver nullObserver; -Source::Source(SourceType type_, std::string id_, uint16_t tileSize_) +Source::Source(SourceType type_, std::string id_) : type(type_), id(std::move(id_)), - tileSize(tileSize_), observer(&nullObserver) { } @@ -94,6 +93,7 @@ bool Source::update(const UpdateParameters& parameters) { return allTilesUpdated; } + const uint16_t tileSize = getTileSize(); const Range<uint8_t> zoomRange = getZoomRange(); // Determine the overzooming/underzooming amounts and required tiles. |