diff options
Diffstat (limited to 'platform/darwin/src/MGLSymbolStyleLayer.mm')
-rw-r--r-- | platform/darwin/src/MGLSymbolStyleLayer.mm | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLSymbolStyleLayer.mm b/platform/darwin/src/MGLSymbolStyleLayer.mm index 335d0bfc6c..030ed81e44 100644 --- a/platform/darwin/src/MGLSymbolStyleLayer.mm +++ b/platform/darwin/src/MGLSymbolStyleLayer.mm @@ -1,6 +1,7 @@ // This file is generated. // Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`. +#import "MGLBaseStyleLayer_Private.hpp" #import "MGLStyleLayer_Private.hpp" #import "MGLStyleAttributeValue.h" #import "MGLSymbolStyleLayer.h" @@ -32,6 +33,7 @@ - (void)setSymbolPlacement:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)symbolPlacement { MGLSetEnumProperty(symbolPlacement, SymbolPlacement, SymbolPlacementType, MGLSymbolStyleLayerSymbolPlacement); + [self update]; } - (id <MGLStyleAttributeValue>)symbolPlacement { @@ -40,6 +42,7 @@ - (void)setSymbolSpacing:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)symbolSpacing { self.layer->setSymbolSpacing(symbolSpacing.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)symbolSpacing { @@ -48,6 +51,7 @@ - (void)setSymbolAvoidEdges:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)symbolAvoidEdges { self.layer->setSymbolAvoidEdges(symbolAvoidEdges.mbgl_boolPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)symbolAvoidEdges { @@ -56,6 +60,7 @@ - (void)setIconAllowOverlap:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconAllowOverlap { self.layer->setIconAllowOverlap(iconAllowOverlap.mbgl_boolPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconAllowOverlap { @@ -64,6 +69,7 @@ - (void)setIconIgnorePlacement:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconIgnorePlacement { self.layer->setIconIgnorePlacement(iconIgnorePlacement.mbgl_boolPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconIgnorePlacement { @@ -72,6 +78,7 @@ - (void)setIconOptional:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconOptional { self.layer->setIconOptional(iconOptional.mbgl_boolPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconOptional { @@ -80,6 +87,7 @@ - (void)setIconRotationAlignment:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconRotationAlignment { MGLSetEnumProperty(iconRotationAlignment, IconRotationAlignment, AlignmentType, MGLSymbolStyleLayerIconRotationAlignment); + [self update]; } - (id <MGLStyleAttributeValue>)iconRotationAlignment { @@ -88,6 +96,7 @@ - (void)setIconSize:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconSize { self.layer->setIconSize(iconSize.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconSize { @@ -96,6 +105,7 @@ - (void)setIconTextFit:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconTextFit { MGLSetEnumProperty(iconTextFit, IconTextFit, IconTextFitType, MGLSymbolStyleLayerIconTextFit); + [self update]; } - (id <MGLStyleAttributeValue>)iconTextFit { @@ -104,6 +114,7 @@ - (void)setIconTextFitPadding:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconTextFitPadding { self.layer->setIconTextFitPadding(iconTextFitPadding.mbgl_paddingPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconTextFitPadding { @@ -112,6 +123,7 @@ - (void)setIconImage:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconImage { self.layer->setIconImage(iconImage.mbgl_stringPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconImage { @@ -120,6 +132,7 @@ - (void)setIconRotate:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconRotate { self.layer->setIconRotate(iconRotate.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconRotate { @@ -128,6 +141,7 @@ - (void)setIconPadding:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconPadding { self.layer->setIconPadding(iconPadding.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconPadding { @@ -136,6 +150,7 @@ - (void)setIconKeepUpright:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconKeepUpright { self.layer->setIconKeepUpright(iconKeepUpright.mbgl_boolPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconKeepUpright { @@ -144,6 +159,7 @@ - (void)setIconOffset:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconOffset { self.layer->setIconOffset(iconOffset.mbgl_offsetPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconOffset { @@ -152,6 +168,7 @@ - (void)setTextPitchAlignment:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textPitchAlignment { MGLSetEnumProperty(textPitchAlignment, TextPitchAlignment, AlignmentType, MGLSymbolStyleLayerTextPitchAlignment); + [self update]; } - (id <MGLStyleAttributeValue>)textPitchAlignment { @@ -160,6 +177,7 @@ - (void)setTextRotationAlignment:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textRotationAlignment { MGLSetEnumProperty(textRotationAlignment, TextRotationAlignment, AlignmentType, MGLSymbolStyleLayerTextRotationAlignment); + [self update]; } - (id <MGLStyleAttributeValue>)textRotationAlignment { @@ -168,6 +186,7 @@ - (void)setTextField:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textField { self.layer->setTextField(textField.mbgl_stringPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textField { @@ -176,6 +195,7 @@ - (void)setTextFont:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textFont { self.layer->setTextFont(textFont.mbgl_stringArrayPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textFont { @@ -184,6 +204,7 @@ - (void)setTextSize:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textSize { self.layer->setTextSize(textSize.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textSize { @@ -192,6 +213,7 @@ - (void)setTextMaxWidth:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textMaxWidth { self.layer->setTextMaxWidth(textMaxWidth.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textMaxWidth { @@ -200,6 +222,7 @@ - (void)setTextLineHeight:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textLineHeight { self.layer->setTextLineHeight(textLineHeight.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textLineHeight { @@ -208,6 +231,7 @@ - (void)setTextLetterSpacing:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textLetterSpacing { self.layer->setTextLetterSpacing(textLetterSpacing.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textLetterSpacing { @@ -216,6 +240,7 @@ - (void)setTextJustify:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textJustify { MGLSetEnumProperty(textJustify, TextJustify, TextJustifyType, MGLSymbolStyleLayerTextJustify); + [self update]; } - (id <MGLStyleAttributeValue>)textJustify { @@ -224,6 +249,7 @@ - (void)setTextAnchor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textAnchor { MGLSetEnumProperty(textAnchor, TextAnchor, TextAnchorType, MGLSymbolStyleLayerTextAnchor); + [self update]; } - (id <MGLStyleAttributeValue>)textAnchor { @@ -232,6 +258,7 @@ - (void)setTextMaxAngle:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textMaxAngle { self.layer->setTextMaxAngle(textMaxAngle.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textMaxAngle { @@ -240,6 +267,7 @@ - (void)setTextRotate:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textRotate { self.layer->setTextRotate(textRotate.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textRotate { @@ -248,6 +276,7 @@ - (void)setTextPadding:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textPadding { self.layer->setTextPadding(textPadding.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textPadding { @@ -256,6 +285,7 @@ - (void)setTextKeepUpright:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textKeepUpright { self.layer->setTextKeepUpright(textKeepUpright.mbgl_boolPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textKeepUpright { @@ -264,6 +294,7 @@ - (void)setTextTransform:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textTransform { MGLSetEnumProperty(textTransform, TextTransform, TextTransformType, MGLSymbolStyleLayerTextTransform); + [self update]; } - (id <MGLStyleAttributeValue>)textTransform { @@ -272,6 +303,7 @@ - (void)setTextOffset:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textOffset { self.layer->setTextOffset(textOffset.mbgl_offsetPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textOffset { @@ -280,6 +312,7 @@ - (void)setTextAllowOverlap:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textAllowOverlap { self.layer->setTextAllowOverlap(textAllowOverlap.mbgl_boolPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textAllowOverlap { @@ -288,6 +321,7 @@ - (void)setTextIgnorePlacement:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textIgnorePlacement { self.layer->setTextIgnorePlacement(textIgnorePlacement.mbgl_boolPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textIgnorePlacement { @@ -296,6 +330,7 @@ - (void)setTextOptional:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textOptional { self.layer->setTextOptional(textOptional.mbgl_boolPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textOptional { @@ -306,6 +341,7 @@ - (void)setIconOpacity:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconOpacity { self.layer->setIconOpacity(iconOpacity.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconOpacity { @@ -314,6 +350,7 @@ - (void)setIconColor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconColor { self.layer->setIconColor(iconColor.mbgl_colorPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconColor { @@ -322,6 +359,7 @@ - (void)setIconHaloColor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconHaloColor { self.layer->setIconHaloColor(iconHaloColor.mbgl_colorPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconHaloColor { @@ -330,6 +368,7 @@ - (void)setIconHaloWidth:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconHaloWidth { self.layer->setIconHaloWidth(iconHaloWidth.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconHaloWidth { @@ -338,6 +377,7 @@ - (void)setIconHaloBlur:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconHaloBlur { self.layer->setIconHaloBlur(iconHaloBlur.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconHaloBlur { @@ -346,6 +386,7 @@ - (void)setIconTranslate:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconTranslate { self.layer->setIconTranslate(iconTranslate.mbgl_offsetPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)iconTranslate { @@ -354,6 +395,7 @@ - (void)setIconTranslateAnchor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconTranslateAnchor { MGLSetEnumProperty(iconTranslateAnchor, IconTranslateAnchor, TranslateAnchorType, MGLSymbolStyleLayerIconTranslateAnchor); + [self update]; } - (id <MGLStyleAttributeValue>)iconTranslateAnchor { @@ -362,6 +404,7 @@ - (void)setTextOpacity:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textOpacity { self.layer->setTextOpacity(textOpacity.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textOpacity { @@ -370,6 +413,7 @@ - (void)setTextColor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textColor { self.layer->setTextColor(textColor.mbgl_colorPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textColor { @@ -378,6 +422,7 @@ - (void)setTextHaloColor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textHaloColor { self.layer->setTextHaloColor(textHaloColor.mbgl_colorPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textHaloColor { @@ -386,6 +431,7 @@ - (void)setTextHaloWidth:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textHaloWidth { self.layer->setTextHaloWidth(textHaloWidth.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textHaloWidth { @@ -394,6 +440,7 @@ - (void)setTextHaloBlur:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textHaloBlur { self.layer->setTextHaloBlur(textHaloBlur.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textHaloBlur { @@ -402,6 +449,7 @@ - (void)setTextTranslate:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textTranslate { self.layer->setTextTranslate(textTranslate.mbgl_offsetPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)textTranslate { @@ -410,6 +458,7 @@ - (void)setTextTranslateAnchor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textTranslateAnchor { MGLSetEnumProperty(textTranslateAnchor, TextTranslateAnchor, TranslateAnchorType, MGLSymbolStyleLayerTextTranslateAnchor); + [self update]; } - (id <MGLStyleAttributeValue>)textTranslateAnchor { |