// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #include #include #include namespace mbgl { namespace style { SymbolLayer::SymbolLayer(const std::string& layerID, const std::string& sourceID) : Layer(makeMutable(LayerType::Symbol, layerID, sourceID)) { } SymbolLayer::SymbolLayer(Immutable impl_) : Layer(std::move(impl_)) { } SymbolLayer::~SymbolLayer() = default; const SymbolLayer::Impl& SymbolLayer::impl() const { return static_cast(*baseImpl); } Mutable SymbolLayer::mutableImpl() const { return makeMutable(impl()); } std::unique_ptr SymbolLayer::cloneRef(const std::string& id_) const { auto impl_ = mutableImpl(); impl_->id = id_; impl_->paint = SymbolPaintProperties::Transitionable(); return std::make_unique(std::move(impl_)); } void SymbolLayer::Impl::stringifyLayout(rapidjson::Writer& writer) const { layout.stringify(writer); } // Source const std::string& SymbolLayer::getSourceID() const { return impl().source; } void SymbolLayer::setSourceLayer(const std::string& sourceLayer) { auto impl_ = mutableImpl(); impl_->sourceLayer = sourceLayer; baseImpl = std::move(impl_); } const std::string& SymbolLayer::getSourceLayer() const { return impl().sourceLayer; } // Filter void SymbolLayer::setFilter(const Filter& filter) { auto impl_ = mutableImpl(); impl_->filter = filter; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } const Filter& SymbolLayer::getFilter() const { return impl().filter; } // Visibility void SymbolLayer::setVisibility(VisibilityType value) { if (value == getVisibility()) return; auto impl_ = mutableImpl(); impl_->visibility = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } // Zoom range void SymbolLayer::setMinZoom(float minZoom) { auto impl_ = mutableImpl(); impl_->minZoom = minZoom; baseImpl = std::move(impl_); } void SymbolLayer::setMaxZoom(float maxZoom) { auto impl_ = mutableImpl(); impl_->maxZoom = maxZoom; baseImpl = std::move(impl_); } // Layout properties PropertyValue SymbolLayer::getDefaultSymbolPlacement() { return SymbolPlacement::defaultValue(); } PropertyValue SymbolLayer::getSymbolPlacement() const { return impl().layout.get(); } void SymbolLayer::setSymbolPlacement(PropertyValue value) { if (value == getSymbolPlacement()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultSymbolSpacing() { return SymbolSpacing::defaultValue(); } PropertyValue SymbolLayer::getSymbolSpacing() const { return impl().layout.get(); } void SymbolLayer::setSymbolSpacing(PropertyValue value) { if (value == getSymbolSpacing()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultSymbolAvoidEdges() { return SymbolAvoidEdges::defaultValue(); } PropertyValue SymbolLayer::getSymbolAvoidEdges() const { return impl().layout.get(); } void SymbolLayer::setSymbolAvoidEdges(PropertyValue value) { if (value == getSymbolAvoidEdges()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultIconAllowOverlap() { return IconAllowOverlap::defaultValue(); } PropertyValue SymbolLayer::getIconAllowOverlap() const { return impl().layout.get(); } void SymbolLayer::setIconAllowOverlap(PropertyValue value) { if (value == getIconAllowOverlap()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultIconIgnorePlacement() { return IconIgnorePlacement::defaultValue(); } PropertyValue SymbolLayer::getIconIgnorePlacement() const { return impl().layout.get(); } void SymbolLayer::setIconIgnorePlacement(PropertyValue value) { if (value == getIconIgnorePlacement()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultIconOptional() { return IconOptional::defaultValue(); } PropertyValue SymbolLayer::getIconOptional() const { return impl().layout.get(); } void SymbolLayer::setIconOptional(PropertyValue value) { if (value == getIconOptional()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultIconRotationAlignment() { return IconRotationAlignment::defaultValue(); } PropertyValue SymbolLayer::getIconRotationAlignment() const { return impl().layout.get(); } void SymbolLayer::setIconRotationAlignment(PropertyValue value) { if (value == getIconRotationAlignment()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue SymbolLayer::getDefaultIconSize() { return IconSize::defaultValue(); } DataDrivenPropertyValue SymbolLayer::getIconSize() const { return impl().layout.get(); } void SymbolLayer::setIconSize(DataDrivenPropertyValue value) { if (value == getIconSize()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultIconTextFit() { return IconTextFit::defaultValue(); } PropertyValue SymbolLayer::getIconTextFit() const { return impl().layout.get(); } void SymbolLayer::setIconTextFit(PropertyValue value) { if (value == getIconTextFit()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue> SymbolLayer::getDefaultIconTextFitPadding() { return IconTextFitPadding::defaultValue(); } PropertyValue> SymbolLayer::getIconTextFitPadding() const { return impl().layout.get(); } void SymbolLayer::setIconTextFitPadding(PropertyValue> value) { if (value == getIconTextFitPadding()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue SymbolLayer::getDefaultIconImage() { return IconImage::defaultValue(); } DataDrivenPropertyValue SymbolLayer::getIconImage() const { return impl().layout.get(); } void SymbolLayer::setIconImage(DataDrivenPropertyValue value) { if (value == getIconImage()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue SymbolLayer::getDefaultIconRotate() { return IconRotate::defaultValue(); } DataDrivenPropertyValue SymbolLayer::getIconRotate() const { return impl().layout.get(); } void SymbolLayer::setIconRotate(DataDrivenPropertyValue value) { if (value == getIconRotate()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultIconPadding() { return IconPadding::defaultValue(); } PropertyValue SymbolLayer::getIconPadding() const { return impl().layout.get(); } void SymbolLayer::setIconPadding(PropertyValue value) { if (value == getIconPadding()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultIconKeepUpright() { return IconKeepUpright::defaultValue(); } PropertyValue SymbolLayer::getIconKeepUpright() const { return impl().layout.get(); } void SymbolLayer::setIconKeepUpright(PropertyValue value) { if (value == getIconKeepUpright()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue> SymbolLayer::getDefaultIconOffset() { return IconOffset::defaultValue(); } DataDrivenPropertyValue> SymbolLayer::getIconOffset() const { return impl().layout.get(); } void SymbolLayer::setIconOffset(DataDrivenPropertyValue> value) { if (value == getIconOffset()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue SymbolLayer::getDefaultIconAnchor() { return IconAnchor::defaultValue(); } DataDrivenPropertyValue SymbolLayer::getIconAnchor() const { return impl().layout.get(); } void SymbolLayer::setIconAnchor(DataDrivenPropertyValue value) { if (value == getIconAnchor()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultIconPitchAlignment() { return IconPitchAlignment::defaultValue(); } PropertyValue SymbolLayer::getIconPitchAlignment() const { return impl().layout.get(); } void SymbolLayer::setIconPitchAlignment(PropertyValue value) { if (value == getIconPitchAlignment()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextPitchAlignment() { return TextPitchAlignment::defaultValue(); } PropertyValue SymbolLayer::getTextPitchAlignment() const { return impl().layout.get(); } void SymbolLayer::setTextPitchAlignment(PropertyValue value) { if (value == getTextPitchAlignment()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextRotationAlignment() { return TextRotationAlignment::defaultValue(); } PropertyValue SymbolLayer::getTextRotationAlignment() const { return impl().layout.get(); } void SymbolLayer::setTextRotationAlignment(PropertyValue value) { if (value == getTextRotationAlignment()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue SymbolLayer::getDefaultTextField() { return TextField::defaultValue(); } DataDrivenPropertyValue SymbolLayer::getTextField() const { return impl().layout.get(); } void SymbolLayer::setTextField(DataDrivenPropertyValue value) { if (value == getTextField()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue> SymbolLayer::getDefaultTextFont() { return TextFont::defaultValue(); } PropertyValue> SymbolLayer::getTextFont() const { return impl().layout.get(); } void SymbolLayer::setTextFont(PropertyValue> value) { if (value == getTextFont()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue SymbolLayer::getDefaultTextSize() { return TextSize::defaultValue(); } DataDrivenPropertyValue SymbolLayer::getTextSize() const { return impl().layout.get(); } void SymbolLayer::setTextSize(DataDrivenPropertyValue value) { if (value == getTextSize()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextMaxWidth() { return TextMaxWidth::defaultValue(); } PropertyValue SymbolLayer::getTextMaxWidth() const { return impl().layout.get(); } void SymbolLayer::setTextMaxWidth(PropertyValue value) { if (value == getTextMaxWidth()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextLineHeight() { return TextLineHeight::defaultValue(); } PropertyValue SymbolLayer::getTextLineHeight() const { return impl().layout.get(); } void SymbolLayer::setTextLineHeight(PropertyValue value) { if (value == getTextLineHeight()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextLetterSpacing() { return TextLetterSpacing::defaultValue(); } PropertyValue SymbolLayer::getTextLetterSpacing() const { return impl().layout.get(); } void SymbolLayer::setTextLetterSpacing(PropertyValue value) { if (value == getTextLetterSpacing()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue SymbolLayer::getDefaultTextJustify() { return TextJustify::defaultValue(); } DataDrivenPropertyValue SymbolLayer::getTextJustify() const { return impl().layout.get(); } void SymbolLayer::setTextJustify(DataDrivenPropertyValue value) { if (value == getTextJustify()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue SymbolLayer::getDefaultTextAnchor() { return TextAnchor::defaultValue(); } DataDrivenPropertyValue SymbolLayer::getTextAnchor() const { return impl().layout.get(); } void SymbolLayer::setTextAnchor(DataDrivenPropertyValue value) { if (value == getTextAnchor()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextMaxAngle() { return TextMaxAngle::defaultValue(); } PropertyValue SymbolLayer::getTextMaxAngle() const { return impl().layout.get(); } void SymbolLayer::setTextMaxAngle(PropertyValue value) { if (value == getTextMaxAngle()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue SymbolLayer::getDefaultTextRotate() { return TextRotate::defaultValue(); } DataDrivenPropertyValue SymbolLayer::getTextRotate() const { return impl().layout.get(); } void SymbolLayer::setTextRotate(DataDrivenPropertyValue value) { if (value == getTextRotate()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextPadding() { return TextPadding::defaultValue(); } PropertyValue SymbolLayer::getTextPadding() const { return impl().layout.get(); } void SymbolLayer::setTextPadding(PropertyValue value) { if (value == getTextPadding()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextKeepUpright() { return TextKeepUpright::defaultValue(); } PropertyValue SymbolLayer::getTextKeepUpright() const { return impl().layout.get(); } void SymbolLayer::setTextKeepUpright(PropertyValue value) { if (value == getTextKeepUpright()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue SymbolLayer::getDefaultTextTransform() { return TextTransform::defaultValue(); } DataDrivenPropertyValue SymbolLayer::getTextTransform() const { return impl().layout.get(); } void SymbolLayer::setTextTransform(DataDrivenPropertyValue value) { if (value == getTextTransform()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } DataDrivenPropertyValue> SymbolLayer::getDefaultTextOffset() { return TextOffset::defaultValue(); } DataDrivenPropertyValue> SymbolLayer::getTextOffset() const { return impl().layout.get(); } void SymbolLayer::setTextOffset(DataDrivenPropertyValue> value) { if (value == getTextOffset()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextAllowOverlap() { return TextAllowOverlap::defaultValue(); } PropertyValue SymbolLayer::getTextAllowOverlap() const { return impl().layout.get(); } void SymbolLayer::setTextAllowOverlap(PropertyValue value) { if (value == getTextAllowOverlap()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextIgnorePlacement() { return TextIgnorePlacement::defaultValue(); } PropertyValue SymbolLayer::getTextIgnorePlacement() const { return impl().layout.get(); } void SymbolLayer::setTextIgnorePlacement(PropertyValue value) { if (value == getTextIgnorePlacement()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } PropertyValue SymbolLayer::getDefaultTextOptional() { return TextOptional::defaultValue(); } PropertyValue SymbolLayer::getTextOptional() const { return impl().layout.get(); } void SymbolLayer::setTextOptional(PropertyValue value) { if (value == getTextOptional()) return; auto impl_ = mutableImpl(); impl_->layout.get() = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } // Paint properties DataDrivenPropertyValue SymbolLayer::getDefaultIconOpacity() { return { 1 }; } DataDrivenPropertyValue SymbolLayer::getIconOpacity() const { return impl().paint.template get().value; } void SymbolLayer::setIconOpacity(DataDrivenPropertyValue value) { if (value == getIconOpacity()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setIconOpacityTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getIconOpacityTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue SymbolLayer::getDefaultIconColor() { return { Color::black() }; } DataDrivenPropertyValue SymbolLayer::getIconColor() const { return impl().paint.template get().value; } void SymbolLayer::setIconColor(DataDrivenPropertyValue value) { if (value == getIconColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setIconColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getIconColorTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue SymbolLayer::getDefaultIconHaloColor() { return { {} }; } DataDrivenPropertyValue SymbolLayer::getIconHaloColor() const { return impl().paint.template get().value; } void SymbolLayer::setIconHaloColor(DataDrivenPropertyValue value) { if (value == getIconHaloColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setIconHaloColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getIconHaloColorTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue SymbolLayer::getDefaultIconHaloWidth() { return { 0 }; } DataDrivenPropertyValue SymbolLayer::getIconHaloWidth() const { return impl().paint.template get().value; } void SymbolLayer::setIconHaloWidth(DataDrivenPropertyValue value) { if (value == getIconHaloWidth()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setIconHaloWidthTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getIconHaloWidthTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue SymbolLayer::getDefaultIconHaloBlur() { return { 0 }; } DataDrivenPropertyValue SymbolLayer::getIconHaloBlur() const { return impl().paint.template get().value; } void SymbolLayer::setIconHaloBlur(DataDrivenPropertyValue value) { if (value == getIconHaloBlur()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setIconHaloBlurTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getIconHaloBlurTransition() const { return impl().paint.template get().options; } PropertyValue> SymbolLayer::getDefaultIconTranslate() { return { {{ 0, 0 }} }; } PropertyValue> SymbolLayer::getIconTranslate() const { return impl().paint.template get().value; } void SymbolLayer::setIconTranslate(PropertyValue> value) { if (value == getIconTranslate()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setIconTranslateTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getIconTranslateTransition() const { return impl().paint.template get().options; } PropertyValue SymbolLayer::getDefaultIconTranslateAnchor() { return { TranslateAnchorType::Map }; } PropertyValue SymbolLayer::getIconTranslateAnchor() const { return impl().paint.template get().value; } void SymbolLayer::setIconTranslateAnchor(PropertyValue value) { if (value == getIconTranslateAnchor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setIconTranslateAnchorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getIconTranslateAnchorTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue SymbolLayer::getDefaultTextOpacity() { return { 1 }; } DataDrivenPropertyValue SymbolLayer::getTextOpacity() const { return impl().paint.template get().value; } void SymbolLayer::setTextOpacity(DataDrivenPropertyValue value) { if (value == getTextOpacity()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setTextOpacityTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getTextOpacityTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue SymbolLayer::getDefaultTextColor() { return { Color::black() }; } DataDrivenPropertyValue SymbolLayer::getTextColor() const { return impl().paint.template get().value; } void SymbolLayer::setTextColor(DataDrivenPropertyValue value) { if (value == getTextColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setTextColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getTextColorTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue SymbolLayer::getDefaultTextHaloColor() { return { {} }; } DataDrivenPropertyValue SymbolLayer::getTextHaloColor() const { return impl().paint.template get().value; } void SymbolLayer::setTextHaloColor(DataDrivenPropertyValue value) { if (value == getTextHaloColor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setTextHaloColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getTextHaloColorTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue SymbolLayer::getDefaultTextHaloWidth() { return { 0 }; } DataDrivenPropertyValue SymbolLayer::getTextHaloWidth() const { return impl().paint.template get().value; } void SymbolLayer::setTextHaloWidth(DataDrivenPropertyValue value) { if (value == getTextHaloWidth()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setTextHaloWidthTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getTextHaloWidthTransition() const { return impl().paint.template get().options; } DataDrivenPropertyValue SymbolLayer::getDefaultTextHaloBlur() { return { 0 }; } DataDrivenPropertyValue SymbolLayer::getTextHaloBlur() const { return impl().paint.template get().value; } void SymbolLayer::setTextHaloBlur(DataDrivenPropertyValue value) { if (value == getTextHaloBlur()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setTextHaloBlurTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getTextHaloBlurTransition() const { return impl().paint.template get().options; } PropertyValue> SymbolLayer::getDefaultTextTranslate() { return { {{ 0, 0 }} }; } PropertyValue> SymbolLayer::getTextTranslate() const { return impl().paint.template get().value; } void SymbolLayer::setTextTranslate(PropertyValue> value) { if (value == getTextTranslate()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setTextTranslateTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getTextTranslateTransition() const { return impl().paint.template get().options; } PropertyValue SymbolLayer::getDefaultTextTranslateAnchor() { return { TranslateAnchorType::Map }; } PropertyValue SymbolLayer::getTextTranslateAnchor() const { return impl().paint.template get().value; } void SymbolLayer::setTextTranslateAnchor(PropertyValue value) { if (value == getTextTranslateAnchor()) return; auto impl_ = mutableImpl(); impl_->paint.template get().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); } void SymbolLayer::setTextTranslateAnchorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->paint.template get().options = options; baseImpl = std::move(impl_); } TransitionOptions SymbolLayer::getTextTranslateAnchorTransition() const { return impl().paint.template get().options; } } // namespace style } // namespace mbgl