From 5bbc6468bc06ea290d14db366231da837ca51480 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Wed, 10 Feb 2010 15:16:44 +0000 Subject: [PATCH] + add save_map impl --- demo/viewer/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demo/viewer/mainwindow.cpp b/demo/viewer/mainwindow.cpp index da6c065ef..b1a78c36d 100644 --- a/demo/viewer/mainwindow.cpp +++ b/demo/viewer/mainwindow.cpp @@ -34,7 +34,9 @@ // mapnik #include #include +#include +// qt #include "mainwindow.hpp" #include "layerlistmodel.hpp" #include "styles_model.hpp" @@ -157,6 +159,7 @@ void MainWindow::save() if (!filename.isEmpty()) { std::cout<<"saving "<< filename.toStdString() << std::endl; + mapnik::save_map(*mapWidget_->getMap(),filename.toStdString()); } }