diff --git a/CHANGELOG b/CHANGELOG index b5c62d63e..7941594ff 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -11,7 +11,9 @@ Developers: Please commit along with changes. For a complete change history, see the SVN log. -Current Version (0.5.2-dev, SVN trunk): +Current Version (0.6.0-dev, SVN trunk): --------------------------------------- +- python/mapnik_map.cpp: Added ability to resize map and clear all layers and styles from python (r792) + - load_map.cpp and save_map.cpp: Added xml serialization for abstract, title, minzoom, maxzoom, and queryable attributes (r787) \ No newline at end of file diff --git a/bindings/python/mapnik_map.cpp b/bindings/python/mapnik_map.cpp index 84d54cf6c..d819d31e5 100644 --- a/bindings/python/mapnik_map.cpp +++ b/bindings/python/mapnik_map.cpp @@ -132,7 +132,7 @@ void export_map() ">>> m.append_style('Style Name', sty)\n" "False # you can only append styles with unique names\n" ) - + .def("envelope", make_function(&Map::getCurrentExtent, return_value_policy()), @@ -218,6 +218,13 @@ void export_map() ">>> feat.next()\n" ">>> \n" ) + + .def("remove_all",&Map::remove_all, + "Remove all Mapnik Styles and Layers from the Map.\n" + "\n" + "Usage:\n" + ">>> m.remove_all()\n" + ) .def("remove_style",&Map::remove_style, "Remove a Mapnik Style from the map.\n" @@ -225,6 +232,13 @@ void export_map() "Usage:\n" ">>> m.remove_style('Style Name')\n" ) + + .def("resize",&Map::resize, + "Resize a Mapnik Map.\n" + "\n" + "Usage:\n" + ">>> m.resize(64,64)\n" + ) .def("scale", &Map::scale, "Return the Map Scale.\n" @@ -279,6 +293,15 @@ void export_map() "2\n" ) + + .add_property("view_transform",make_function(&Map::getCurrentExtent, + return_value_policy()), + "View the Map CoordinateTransform Envelope.\n" + "\n" + "Usage:\n" + ">>> m.view_transform\n" + ) + .add_property("height", &Map::getHeight, &Map::setHeight,