forked from organicmaps/organicmaps
[pykmlib] [bookmarks] Add FileData.set_bookmarks_min_zoom to pykmlib. MAPSME-14916
This commit is contained in:
parent
5b4bab3147
commit
554d400958
2 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue