[core] Add virtual Source::getTileSize()

This commit is contained in:
John Firebaugh
2016-06-14 10:57:43 -07:00
parent 9d3c4fbbb0
commit 5bbcca8326
9 changed files with 18 additions and 12 deletions

View File

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