added non-const getLayer

This commit is contained in:
Artem Pavlenko 2006-03-28 15:39:38 +00:00
parent 0e53e23ec1
commit bb606d04f5
2 changed files with 8 additions and 0 deletions

View file

@ -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;

View file

@ -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_;