https://bugs.kde.org/show_bug.cgi?id=423486

            Bug ID: 423486
           Summary: GeoDataPlacemark not visible in coordinates [0; 0]
           Product: marble
           Version: 2.5 (KDE Applications 18.04)
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: marble-b...@kde.org
          Reporter: paolo.dast...@gmail.com
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to