added non-const getLayer
This commit is contained in:
parent
0e53e23ec1
commit
bb606d04f5
2 changed files with 8 additions and 0 deletions
|
@ -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…
Reference in a new issue