7#include "KmlStyleMapTagHandler.h"
9#include "MarbleDebug.h"
11#include "GeoDataDocument.h"
12#include "GeoDataFeature.h"
13#include "GeoDataStyleMap.h"
14#include "KmlElementDictionary.h"
15#include "KmlObjectTagHandler.h"
23KML_DEFINE_TAG_HANDLER(StyleMap)
25GeoNode *KmlStyleMapTagHandler::parse(GeoParser &parser)
const
27 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1StringView(kmlTag_StyleMap)));
29 GeoStackItem parentItem = parser.parentElement();
31 if (parentItem.represents(kmlTag_Document)) {
32 GeoDataStyleMap styleMap;
33 KmlObjectTagHandler::parseIdentifiers(parser, &styleMap);
34 parentItem.nodeAs<GeoDataDocument>()->addStyleMap(styleMap);
35 return &parentItem.nodeAs<GeoDataDocument>()->styleMap(styleMap.id());
36 }
else if (parentItem.is<GeoDataFeature>()) {
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 Nov 8 2024 12:02:43 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.