Bug 423486

Summary: GeoDataPlacemark not visible in coordinates [0; 0]
Product: [Applications] marble Reporter: Paolo Dastoli <paolo.dastoli>
Component: generalAssignee: marble-bugs
Status: REPORTED ---    
Severity: major    
Priority: NOR    
Version: 2.5 (KDE Applications 18.04)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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