mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +01:00
Optimization
This commit is contained in:
parent
f68573afaf
commit
0d868f2f2a
@ -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);
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user