mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-23 19:25:55 +01:00
Optimization
This commit is contained in:
parent
f68573afaf
commit
0d868f2f2a
@ -522,11 +522,6 @@ bool Style::load(const QString &fileName)
|
||||
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
|
||||
{
|
||||
const Layer &sl = _layers.at(layer);
|
||||
|
@ -25,10 +25,11 @@ public:
|
||||
|
||||
bool load(const QString &fileName);
|
||||
|
||||
const QStringList &sourceLayers() const {return _sourceLayers;}
|
||||
|
||||
bool match(int zoom, int layer, const QVariantHash &tags) const;
|
||||
const QStringList &sourceLayers() const
|
||||
{return _sourceLayers;}
|
||||
|
||||
bool match(int zoom, int layer, const QVariantHash &tags) const
|
||||
{return _layers.at(layer).match(zoom, tags);}
|
||||
void drawBackground(Tile &tile) const;
|
||||
void setupLayer(Tile &tile, int layer) const;
|
||||
void drawFeature(Tile &tile, int layer, const QPainterPath &path,
|
||||
|
Loading…
Reference in New Issue
Block a user