Optimization

This commit is contained in:
Martin Tůma 2018-11-30 10:16:41 +01:00
parent f68573afaf
commit 0d868f2f2a
2 changed files with 4 additions and 8 deletions

View File

@ -522,11 +522,6 @@ bool Style::load(const QString &fileName)
return true; return true;
} }
bool Style::match(int zoom, int layer, const QVariantHash &tags) const
{
return _layers.at(layer).match(zoom, tags);
}
void Style::setupLayer(Tile &tile, int layer) const void Style::setupLayer(Tile &tile, int layer) const
{ {
const Layer &sl = _layers.at(layer); const Layer &sl = _layers.at(layer);

View File

@ -25,10 +25,11 @@ public:
bool load(const QString &fileName); bool load(const QString &fileName);
const QStringList &sourceLayers() const {return _sourceLayers;} const QStringList &sourceLayers() const
{return _sourceLayers;}
bool match(int zoom, int layer, const QVariantHash &tags) const;
bool match(int zoom, int layer, const QVariantHash &tags) const
{return _layers.at(layer).match(zoom, tags);}
void drawBackground(Tile &tile) const; void drawBackground(Tile &tile) const;
void setupLayer(Tile &tile, int layer) const; void setupLayer(Tile &tile, int layer) const;
void drawFeature(Tile &tile, int layer, const QPainterPath &path, void drawFeature(Tile &tile, int layer, const QPainterPath &path,