+ don't call zoom_all if bounding box is supplied
This commit is contained in:
parent
68ff49d429
commit
bb6fafad42
1 changed files with 226 additions and 226 deletions
|
@ -179,9 +179,9 @@ void MainWindow::load_map_file(QString const& filename)
|
||||||
{
|
{
|
||||||
std::cout << ex.what() << "\n";
|
std::cout << ex.what() << "\n";
|
||||||
}
|
}
|
||||||
map->zoom_all();
|
//map->zoom_all();
|
||||||
mapnik::box2d<double> const& ext = map->getCurrentExtent();
|
//mapnik::box2d<double> const& ext = map->getCurrentExtent();
|
||||||
mapWidget_->zoomToBox(ext);
|
//mapWidget_->zoomToBox(ext);
|
||||||
layerTab_->setModel(new LayerListModel(map,this));
|
layerTab_->setModel(new LayerListModel(map,this));
|
||||||
styleTab_->setModel(new StyleModel(map,this));
|
styleTab_->setModel(new StyleModel(map,this));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue