diff --git a/kml/pykmlib/bindings.cpp b/kml/pykmlib/bindings.cpp index 67320ecf93..8d5b84f677 100644 --- a/kml/pykmlib/bindings.cpp +++ b/kml/pykmlib/bindings.cpp @@ -35,6 +35,7 @@ #include "pyhelpers/vector_list_conversion.hpp" #include +#include #include #include #include @@ -945,6 +946,7 @@ BOOST_PYTHON_MODULE(pykmlib) .def_readwrite("bookmarks", &FileData::m_bookmarksData) .def_readwrite("tracks", &FileData::m_tracksData) .def_readwrite("compilations", &FileData::m_compilationsData) + .def("set_bookmarks_min_zoom", &FileData::SetBookmarksMinZoom) .def("__eq__", &FileData::operator==) .def("__ne__", &FileData::operator!=) .def("__str__", &FileDataToString); diff --git a/kml/pykmlib/bindings_test.py b/kml/pykmlib/bindings_test.py index 6e320254c9..d5d676637a 100644 --- a/kml/pykmlib/bindings_test.py +++ b/kml/pykmlib/bindings_test.py @@ -109,6 +109,7 @@ class PyKmlibAdsTest(unittest.TestCase): file_data.bookmarks.append(bookmark) file_data.tracks.append(track) file_data.compilations = compilations + file_data.set_bookmarks_min_zoom(1.0, 19) s = pykmlib.export_kml(file_data) imported_file_data = pykmlib.import_kml(s)