Reply to topic

refreshMode not working with Marble KML's? (Centos/MacOS)

micklang
Registered Member
Posts
2
Karma
0
Hey Everyone!

So I'm trying to get an initial kml (test.kml) to launch a different kml (cessna.kml) and control the refreshing of the 2nd file's positional data.

I've tried it on MacOS and CentOS7 and neither work correctly. If I load cessna.kml, it plots the custom icon correctly and displays the correct data on the popup when clicked. The main test.kml plots nothing, but does default the globe to 000,0000 (just off Africa)-- where it shouldn't.

I'm assuming that refreshMode and refreshInterval might be broken for my current release (v1.5.1)?

Here are the two KML's for reference:

test.kml:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<NetworkLink>
<Link>
<href>/home/user/marble/cessna.kml</href>
<refreshMode>onInterval</refreshMode>
<refreshInterval>10</refreshInterval>
</Link>
</NetworkLink>
</Document>
</kml>


cessna.kml:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Style id="icon">
<IconStyle>
<Icon>
<href>/home/user/marble/cessna.png</href>
</icon>
</IconStyle>
</Style>
<Placemark>
<name>Cessna 172</name>
<description>Cessna 172 WKRP is heading to Cardiff, Wales.</description>
<styleUrl>#icon</styleUrl>
<Point>
<coordinates>-6.00715,66.142227</coordinates>
</Point>
</Placemark>
</Document>
</kml>


I really appreciate any help with the above and most of all, thank you for such an amazing project!
User avatar Earthwings
KDE Developer
Posts
172
Karma
1
OS
NetworkLink and related elements are parsed by Marble, but not properly supported otherwise. The feature you are looking for has not been implemented yet, sorry.
micklang
Registered Member
Posts
2
Karma
0
Well, at least I now know. Here's a follow up though-- can you think of a way to 'trigger' a reload of a current kml file as to update the long/lat?

I noticed there are some neat tools to use DBUS (qdbus?) to cause marble to 'do something' (like zoom in/out, etc.). Is there a way to use that utility to reload the kml cache or to re-read it?

That way I can just cron or loop a command to update the location.

Thanks in advance!

 
Reply to topic

Bookmarks



Who is online

Registered users: 4m, abury, Baidu [Spider], Bing [Bot], boudewijn, DaniilDragon, Deevad, Exabot [Bot], Google [Bot], hellozee, Lembritt, m4TZ, mcoudert, Merlimau, rblackwell, Snudl, TheraHedwig, thunder422, Underrr, vishalrao, Yahoo [Bot]