#include <map.hpp>
Public Types | |
typedef std::map< std::string, feature_type_style >::const_iterator | const_style_iterator |
typedef std::map< std::string, feature_type_style >::iterator | style_iterator |
Public Member Functions | |
Map () | |
Map (int width, int height, std::string const &srs="+proj=latlong +datum=WGS84") | |
Map (const Map &rhs) | |
Map & | operator= (const Map &rhs) |
const_style_iterator | begin_styles () const |
const_style_iterator | end_styles () const |
style_iterator | begin_styles () |
style_iterator | end_styles () |
bool | insert_style (std::string const &name, feature_type_style const &style) |
void | remove_style (const std::string &name) |
feature_type_style const & | find_style (std::string const &name) const |
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 |
std::vector< Layer > & | layers () |
void | remove_all () |
unsigned | getWidth () const |
unsigned | getHeight () const |
void | setWidth (unsigned width) |
void | setHeight (unsigned height) |
void | resize (unsigned width, unsigned height) |
std::string const & | srs () const |
void | set_srs (std::string const &srs) |
void | setBackground (const Color &c) |
const Color & | getBackground () const |
void | zoom (double zoom) |
void | zoomToBox (const Envelope< double > &box) |
void | zoom_all () |
void | pan (int x, int y) |
void | pan_and_zoom (int x, int y, double zoom) |
const Envelope< double > & | getCurrentExtent () const |
double | scale () const |
CoordTransform | view_transform () const |
featureset_ptr | query_point (unsigned index, double x, double y) const |
featureset_ptr | query_map_point (unsigned index, double x, double y) const |
~Map () |
typedef std::map<std::string,feature_type_style>::const_iterator mapnik::Map::const_style_iterator |
typedef std::map<std::string,feature_type_style>::iterator mapnik::Map::style_iterator |
mapnik::Map::Map | ( | ) |
mapnik::Map::Map | ( | int | width, | |
int | height, | |||
std::string const & | srs = "+proj=latlong +datum=WGS84" | |||
) |
mapnik::Map::Map | ( | const Map & | rhs | ) |
mapnik::Map::~Map | ( | ) |
void mapnik::Map::addLayer | ( | const Layer & | l | ) |
Map::style_iterator mapnik::Map::begin_styles | ( | ) |
Map::const_style_iterator mapnik::Map::begin_styles | ( | ) | const |
Map::style_iterator mapnik::Map::end_styles | ( | ) |
Map::const_style_iterator mapnik::Map::end_styles | ( | ) | const |
feature_type_style const & mapnik::Map::find_style | ( | std::string const & | name | ) | const |
const Color & mapnik::Map::getBackground | ( | ) | const |
const Envelope< double > & mapnik::Map::getCurrentExtent | ( | ) | const |
unsigned mapnik::Map::getHeight | ( | ) | const |
Layer & mapnik::Map::getLayer | ( | size_t | index | ) |
const Layer & mapnik::Map::getLayer | ( | size_t | index | ) | const |
unsigned mapnik::Map::getWidth | ( | ) | const |
bool mapnik::Map::insert_style | ( | std::string const & | name, | |
feature_type_style const & | style | |||
) |
size_t mapnik::Map::layerCount | ( | ) | const |
std::vector< Layer > & mapnik::Map::layers | ( | ) |
std::vector< Layer > const & mapnik::Map::layers | ( | ) | const |
void mapnik::Map::pan | ( | int | x, | |
int | y | |||
) |
void mapnik::Map::pan_and_zoom | ( | int | x, | |
int | y, | |||
double | zoom | |||
) |
featureset_ptr mapnik::Map::query_map_point | ( | unsigned | index, | |
double | x, | |||
double | y | |||
) | const |
featureset_ptr mapnik::Map::query_point | ( | unsigned | index, | |
double | x, | |||
double | y | |||
) | const |
void mapnik::Map::remove_all | ( | ) |
void mapnik::Map::remove_style | ( | const std::string & | name | ) |
void mapnik::Map::removeLayer | ( | size_t | index | ) |
void mapnik::Map::resize | ( | unsigned | width, | |
unsigned | height | |||
) |
double mapnik::Map::scale | ( | ) | const |
void mapnik::Map::set_srs | ( | std::string const & | srs | ) |
void mapnik::Map::setBackground | ( | const Color & | c | ) |
void mapnik::Map::setHeight | ( | unsigned | height | ) |
void mapnik::Map::setWidth | ( | unsigned | width | ) |
std::string const & mapnik::Map::srs | ( | ) | const |
CoordTransform mapnik::Map::view_transform | ( | ) | const |
void mapnik::Map::zoom | ( | double | zoom | ) |
void mapnik::Map::zoom_all | ( | ) |
void mapnik::Map::zoomToBox | ( | const Envelope< double > & | box | ) |