This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Layers

Tags: None
(comma "," separated)
stardast
Registered Member
Posts
1
Karma
0

Layers

Sat Jul 25, 2020 9:22 pm
Hi everyone,
I'm looking for information on marble layer management:
  • can I define the transparency of a definitive layer in the DGML?
  • can I show / hide layers at runtime?
  • where can I find the specification of the DGML format?
  • why isn't the GeoSceneDocument.h and other headers available in the include folder? How can I get to use the GeoSceneMap object which has the method:
    QVector <GeoSceneLayer *> layers () const;
Thanks in advance,
Paolo
rabi
Registered Member
Posts
5
Karma
0

Re: Layers

Tue Sep 29, 2020 1:55 pm
Although I have not used DGML extensively, I believe layer visibility should be possible by simply removing/adding said layer.
To change the visibility of a specific GeoDataFeature, there is a setVisible function, and an updateFeature function. (Will post links when the KDS API site is back up).
Be warned, I have encountered issues using this with GeoDataGroundOverlays (incorrect layers' visibility being toggled, crashes).
I posted a question here (viewtopic.php?f=217&t=168009&sid=ba682dd9b834558a87f914ce1b4b51a5#p437792), and will probably submit an issue.
rabi
Registered Member
Posts
5
Karma
0


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]