Files
MapLibreParticleLab/src/mbgl/annotation/annotation_source.hpp
Bart Louwers 71f6da2722 Add clang-format (#1086)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
2023-05-01 16:57:37 +02:00

33 lines
771 B
C++

#pragma once
#include <mbgl/style/source.hpp>
#include <mbgl/style/source_impl.hpp>
namespace mbgl {
class AnnotationSource final : public style::Source {
public:
AnnotationSource();
class Impl;
const Impl& impl() const;
protected:
Mutable<Source::Impl> createMutable() const noexcept final;
private:
void loadDescription(FileSource&) final;
bool supportsLayerType(const mbgl::style::LayerTypeInfo*) const override;
mapbox::base::WeakPtr<Source> makeWeakPtr() override { return weakFactory.makeWeakPtr(); }
mapbox::base::WeakPtrFactory<Source> weakFactory{this};
};
class AnnotationSource::Impl : public style::Source::Impl {
public:
Impl();
std::optional<std::string> getAttribution() const final;
};
} // namespace mbgl