[Marble-devel] Help with Placemarks on MarbleWidget
Shannon Mackey
solareclectic at fltg.net
Wed Sep 14 02:51:11 UTC 2011
It was suggested, on the KDE Libraries & APIs Forums that I try this list for
assistance.
I believe I've got the correct function to put Placemarks on my MarbleWidget:
@void addGeoDataString (const QString &data, const QString &key="data")@
to put the Point indicated in this kml string onto my MarbleWidget
@<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Placemark>
<name>Houlton International Airport</name>
<description>Weather Station</description>
<Point>
<coordinates>-67.8,46.12,150</coordinates>
</Point>
</Placemark>
</Document>
</kml>@
but I'm getting nothing to appear.
Is my kml correct?
Do I need to call another function on MarbleWidget to display the newly added
Points in the model?
I've left the second parameter empty, as it has a default, and frankly (from
the "documentation":http://api.kde.org/4.6-api/kdeedu-
apidocs/marble/html/classMarble_1_1MarbleWidget.html#a429644198835fbfc15982e552c41cc62)
@Parameters:
data- the string containing the Placemarks.
key- the string needed to identify the data@
I don't know what "data" is supposed to indicate.
I've gone back in MarbleWidget source code, where the parameters flip-flopped
places enough times to tangle me up.
Mostly, I think this is probably a simple thing, and that I'm overlooking
something obvious.
Anyone have a clue for me?
-solareclectic
More information about the Marble-devel
mailing list