Bug 423486 - GeoDataPlacemark not visible in coordinates [0; 0]
Summary: GeoDataPlacemark not visible in coordinates [0; 0]
Status: REPORTED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 2.5 (KDE Applications 18.04)
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-25 10:30 UTC by Paolo Dastoli
Modified: 2020-06-25 10:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Dastoli 2020-06-25 10:30:04 UTC
SUMMARY
The following code displays nothing on the globe:

    auto mark = new Marble::GeoDataPlacemark(QString::number(0));
    mark->setCoordinate(Marble::GeoDataCoordinates(0, 0, 0.0, Marble::GeoDataCoordinates::Degree));

    Marble::GeoDataStyle::Ptr pinStyle(new Marble::GeoDataStyle);
    Marble::GeoDataIconStyle iconStyle;
    iconStyle.setIconPath(QStringLiteral("icon.png"));
    pinStyle->setIconStyle( iconStyle );
    mark->setStyle(pinStyle);

Simply set coordinates other than 0 to correctly display the symbol.

SOFTWARE/OS VERSIONS
Marble: v20.03.80
Qt Version: 5.12.7

ADDITIONAL INFORMATION