[pykmlib] [bookmarks] Add FileData.set_bookmarks_min_zoom to pykmlib. MAPSME-14916

This commit is contained in:
Anatoliy Tomilov 2020-10-02 17:59:17 +05:00 committed by mpimenov
parent 5b4bab3147
commit 554d400958
2 changed files with 3 additions and 0 deletions

View file

@ -35,6 +35,7 @@
#include "pyhelpers/vector_list_conversion.hpp"
#include <boost/python.hpp>
#include <boost/python/args.hpp>
#include <boost/python/dict.hpp>
#include <boost/python/enum.hpp>
#include <boost/python/exception_translator.hpp>
@ -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);

View file

@ -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)