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(int width, int height, std::string const& srs="+proj=latlong +datum=WGS84");
|
||||||
Map(const Map& rhs);
|
Map(const Map& rhs);
|
||||||
Map& operator=(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 begin_styles() const;
|
||||||
const_style_iterator end_styles() const;
|
const_style_iterator end_styles() const;
|
||||||
style_iterator begin_styles();
|
style_iterator begin_styles();
|
||||||
|
|
12
src/map.cpp
12
src/map.cpp
|
@ -61,7 +61,17 @@ namespace mapnik
|
||||||
layers_=rhs.layers_;
|
layers_=rhs.layers_;
|
||||||
return *this;
|
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()
|
Map::style_iterator Map::begin_styles()
|
||||||
{
|
{
|
||||||
return styles_.begin();
|
return styles_.begin();
|
||||||
|
|
Loading…
Add table
Reference in a new issue