mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
added non-const getLayer
This commit is contained in:
parent
0e53e23ec1
commit
bb606d04f5
@ -62,6 +62,7 @@ namespace mapnik
|
||||
size_t layerCount() const;
|
||||
void addLayer(const Layer& l);
|
||||
const Layer& getLayer(size_t index) const;
|
||||
Layer& getLayer(size_t index);
|
||||
void removeLayer(size_t index);
|
||||
std::vector<Layer> const& layers() const;
|
||||
unsigned getWidth() const;
|
||||
|
||||
@ -93,6 +93,13 @@ namespace mapnik
|
||||
{
|
||||
return layers_[index];
|
||||
}
|
||||
|
||||
Layer& Map::getLayer(size_t index)
|
||||
{
|
||||
return layers_[index];
|
||||
}
|
||||
|
||||
|
||||
std::vector<Layer> const& Map::layers() const
|
||||
{
|
||||
return layers_;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user