How to disable Marble Kde tiles movement

117 Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER
//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