Marble

KmlObjectTagWriter.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Dennis Nienhüser <nienhueser@kde.org>
4//
5
6#include "KmlObjectTagWriter.h"
7
8#include "GeoWriter.h"
9
10namespace Marble {
11
12void KmlObjectTagWriter::writeIdentifiers( GeoWriter &writer, const GeoDataObject *object )
13{
14 if ( object && !object->id().isEmpty() ) {
15 writer.writeAttribute( "id", object->id().toUtf8() );
16 }
17 if ( object && !object->targetId().isEmpty() ) {
18 writer.writeAttribute( "targetId", object->targetId().toUtf8() );
19 }
20}
21
22}
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:00:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.