#include namespace mbgl { namespace style { CustomLayer::Impl::~Impl() { } CustomLayer::Impl::Impl(const std::string& id_, std::unique_ptr context_): Layer::Impl(LayerType::Custom, id_, std::string()), context(std::move(context_)) { } void CustomLayer::Impl::didSetObserver(bool didSet) const { if (!context) return; if (didSet) { context->attach(); } else { context->detach(); } } bool CustomLayer::Impl::hasLayoutDifference(const Layer::Impl&) const { return false; } void CustomLayer::Impl::stringifyLayout(rapidjson::Writer&) const { } } // namespace style } // namespace mbgl