[Marble-devel] Drawing a box on the map

Thibaut Gridel tgridel at free.fr
Wed Feb 15 21:11:46 UTC 2012


Hello,

On Tuesday 14 February 2012, Kyle Shannon wrote:
>  Also addGeoDataString doesn't have much for documentation.

We welcome patches there!

>  Does it take a kml?  I am getting a seg fault with a string (generated
> from the selection):

Yes it does, however we can improve this because we handle other formats from 
file parsing nowadays.

You need to put the namespace, like:

mapWidget->model()->addGeoDataString(
"<kml xmlns=\"http://earth.google.com/kml/2.0\">"
"<Placemark>"
...
"</Placemark>"
"</kml>"
);

Best Regards,
Thibaut


More information about the Marble-devel mailing list