MapLibre Native for Qt
Loading...
Searching...
No Matches
QMapLibre::Feature Struct Reference

Map feature helper type. More...

#include <QMapLibre/Types>

Public Types

enum  Type { PointType = 1 , LineStringType , PolygonType }
 Map feature type. More...
 

Public Member Functions

 Feature (Type type_=PointType, CoordinatesCollections geometry_=CoordinatesCollections(), QVariantMap properties_=QVariantMap(), QVariant id_=QVariant())
 

Public Attributes

Type type
 feature type
 
CoordinatesCollections geometry
 feature geometry
 
QVariantMap properties
 feature properties
 
QVariant id
 feature identifier
 

Detailed Description

Map feature helper type.

Represents map features via its type (PointType, LineStringType or PolygonType), geometry, properties map and id (optional).

Member Enumeration Documentation

◆ Type

Map feature type.

This enum is used as basis for geometry disambiguation in Feature.

Enumerator
PointType 

A point geometry type. Means a single or a collection of points.

LineStringType 

A line string geometry type. Means a single or a collection of line strings.

PolygonType 

A polygon geometry type. Means a single or a collection of polygons.

Constructor & Destructor Documentation

◆ Feature()

QMapLibre::Feature::Feature ( Type type_ = PointType,
CoordinatesCollections geometry_ = CoordinatesCollections(),
QVariantMap properties_ = QVariantMap(),
QVariant id_ = QVariant() )
inlineexplicit

Class constructor.