简体   繁体   中英

How to disable Marble Kde tiles movement

I load in marble map a.jpg image refered by.kml file:

marbleWidget->model()->addGeoDataFile(kmlpath);

The image is loaded in marble map: with the mouse I can move (drag and drop) and resize the jpg into the map. How can I anchor at specified coordinate or better, disable mouse interaction?

Other data like [this] ( https://techbase.kde.org/Marble/Runners/LoadingKML ) are locked on map.

//disable Annotation rendering in order to lock ground overlay movement
for (auto rp : this->renderPlugins())
{
    if(rp->name() == "Annotation")
        rp->setVisible(false);
    qDebug() << rp->name();
}

where "this" is the instance of your class:

    class Yourclass:  public MarbleWidget

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM