added accesor to styles

This commit is contained in:
Artem Pavlenko 2007-08-07 12:02:24 +00:00
parent a53fbf2ca3
commit 80566ea1ba
2 changed files with 14 additions and 1 deletions

View file

@ -50,6 +50,9 @@ namespace mapnik
Map(int width, int height, std::string const& srs="+proj=latlong +datum=WGS84");
Map(const Map& rhs);
Map& operator=(const Map& rhs);
std::map<std::string,feature_type_style> const& styles() const;
std::map<std::string,feature_type_style> & styles();
const_style_iterator begin_styles() const;
const_style_iterator end_styles() const;
style_iterator begin_styles();

View file

@ -61,7 +61,17 @@ namespace mapnik
layers_=rhs.layers_;
return *this;
}
std::map<std::string,feature_type_style> const& Map::styles() const
{
return styles_;
}
std::map<std::string,feature_type_style> & Map::styles()
{
return styles_;
}
Map::style_iterator Map::begin_styles()
{
return styles_.begin();