MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
heatmap_layer.hpp
Go to the documentation of this file.
1 // clang-format off
2 
3 // This file is generated. Do not edit.
4 
5 #pragma once
6 
8 #include <mbgl/style/layer.hpp>
9 #include <mbgl/style/filter.hpp>
11 #include <mbgl/util/color.hpp>
12 
13 namespace mbgl {
14 namespace style {
15 
16 class TransitionOptions;
17 
18 class HeatmapLayer final : public Layer {
19 public:
20  HeatmapLayer(const std::string& layerID, const std::string& sourceID);
21  ~HeatmapLayer() override;
22 
23  // Paint properties
24 
30 
36 
42 
48 
54 
55  // Private implementation
56 
57  class Impl;
58  const Impl& impl() const;
59 
62  std::unique_ptr<Layer> cloneRef(const std::string& id) const final;
63 
64 protected:
65  // Dynamic properties
66  std::optional<conversion::Error> setPropertyInternal(const std::string& name, const conversion::Convertible& value) final;
67 
68  StyleProperty getProperty(const std::string& name) const final;
69  Value serialize() const final;
70 
71  Mutable<Layer::Impl> mutableBaseImpl() const final;
72 };
73 
74 } // namespace style
75 } // namespace mbgl
76 
77 // clang-format on
TransitionOptions getHeatmapWeightTransition() const
const PropertyValue< float > & getHeatmapRadius() const
void setHeatmapOpacityTransition(const TransitionOptions &)
const ColorRampPropertyValue & getHeatmapColor() const
TransitionOptions getHeatmapOpacityTransition() const
std::optional< conversion::Error > setPropertyInternal(const std::string &name, const conversion::Convertible &value) final
Mutable< Layer::Impl > mutableBaseImpl() const final
static PropertyValue< float > getDefaultHeatmapOpacity()
const PropertyValue< float > & getHeatmapWeight() const
void setHeatmapRadiusTransition(const TransitionOptions &)
const Impl & impl() const
Value serialize() const final
const PropertyValue< float > & getHeatmapOpacity() const
HeatmapLayer(const std::string &layerID, const std::string &sourceID)
void setHeatmapWeight(const PropertyValue< float > &)
static PropertyValue< float > getDefaultHeatmapIntensity()
static PropertyValue< float > getDefaultHeatmapRadius()
TransitionOptions getHeatmapRadiusTransition() const
void setHeatmapColor(const ColorRampPropertyValue &)
static ColorRampPropertyValue getDefaultHeatmapColor()
Mutable< Impl > mutableImpl() const
std::unique_ptr< Layer > cloneRef(const std::string &id) const final
HeatmapLayer(Immutable< Impl >)
void setHeatmapRadius(const PropertyValue< float > &)
void setHeatmapOpacity(const PropertyValue< float > &)
static PropertyValue< float > getDefaultHeatmapWeight()
void setHeatmapWeightTransition(const TransitionOptions &)
TransitionOptions getHeatmapColorTransition() const
void setHeatmapIntensityTransition(const TransitionOptions &)
const PropertyValue< float > & getHeatmapIntensity() const
StyleProperty getProperty(const std::string &name) const final
void setHeatmapIntensity(const PropertyValue< float > &)
void setHeatmapColorTransition(const TransitionOptions &)
TransitionOptions getHeatmapIntensityTransition() const
Generic representation of a style property.
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
Definition: actor.hpp:15
mapbox::base::Value Value
Definition: feature.hpp:11