1.added default ctor in polygon_symbolizer (grey fill - RGB (128,128,128)
2.replaced tabs
This commit is contained in:
parent
f59a949464
commit
453b714580
5 changed files with 238 additions and 236 deletions
|
@ -20,7 +20,6 @@
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
//$Id$
|
//$Id$
|
||||||
|
|
||||||
#ifndef FILL_HPP
|
#ifndef FILL_HPP
|
||||||
|
|
|
@ -45,7 +45,7 @@ namespace mapnik
|
||||||
}
|
}
|
||||||
|
|
||||||
static const unsigned MIN_MAPSIZE=16;
|
static const unsigned MIN_MAPSIZE=16;
|
||||||
static const unsigned MAX_MAPSIZE=1024;
|
static const unsigned MAX_MAPSIZE=2048;
|
||||||
unsigned width_;
|
unsigned width_;
|
||||||
unsigned height_;
|
unsigned height_;
|
||||||
int srid_;
|
int srid_;
|
||||||
|
@ -53,12 +53,12 @@ namespace mapnik
|
||||||
std::map<std::string,feature_type_style> styles_;
|
std::map<std::string,feature_type_style> styles_;
|
||||||
std::vector<Layer> layers_;
|
std::vector<Layer> layers_;
|
||||||
Envelope<double> currentExtent_;
|
Envelope<double> currentExtent_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Map();
|
Map();
|
||||||
Map(int width,int height,int srid=-1);
|
Map(int width,int height,int srid=-1);
|
||||||
Map(const Map& rhs);
|
Map(const Map& rhs);
|
||||||
Map& operator=(const Map& rhs);
|
Map& operator=(const Map& rhs);
|
||||||
|
|
||||||
bool insert_style(std::string const& name,feature_type_style const& style);
|
bool insert_style(std::string const& name,feature_type_style const& style);
|
||||||
void remove_style(const std::string& name);
|
void remove_style(const std::string& name);
|
||||||
feature_type_style const& find_style(std::string const& name) const;
|
feature_type_style const& find_style(std::string const& name) const;
|
||||||
|
|
|
@ -31,6 +31,9 @@ namespace mapnik
|
||||||
{
|
{
|
||||||
struct MAPNIK_DECL polygon_symbolizer
|
struct MAPNIK_DECL polygon_symbolizer
|
||||||
{
|
{
|
||||||
|
explicit polygon_symbolizer()
|
||||||
|
: fill_(Color(128,128,128) {}
|
||||||
|
|
||||||
polygon_symbolizer(Color const& fill)
|
polygon_symbolizer(Color const& fill)
|
||||||
: fill_(fill) {}
|
: fill_(fill) {}
|
||||||
Color const& get_fill() const
|
Color const& get_fill() const
|
||||||
|
|
Loading…
Reference in a new issue