added accesor to styles
This commit is contained in:
parent
a53fbf2ca3
commit
80566ea1ba
2 changed files with 14 additions and 1 deletions
|
@ -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();
|
||||
|
|
10
src/map.cpp
10
src/map.cpp
|
@ -62,6 +62,16 @@ namespace mapnik
|
|||
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();
|
||||
|
|
Loading…
Reference in a new issue