// 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 "MGLFillStyleLayer.h" #include @interface MGLFillStyleLayer () @property (nonatomic) mbgl::style::FillLayer *layer; @property (nonatomic, readwrite) NSString *layerIdentifier; @property (nonatomic, readwrite) NSString *sourceIdentifier; @end @implementation MGLFillStyleLayer @synthesize mapView; - (instancetype)initWithLayerIdentifier:(NSString *)layerIdentifier sourceIdentifier:(NSString *)sourceIdentifier { if (self = [super init]) { _layerIdentifier = layerIdentifier; _sourceIdentifier = sourceIdentifier; _layer = new mbgl::style::FillLayer(layerIdentifier.UTF8String, sourceIdentifier.UTF8String); } return self; } #pragma mark - Accessing the Paint Attributes - (void)setFillAntialias:(id )fillAntialias { self.layer->setFillAntialias(fillAntialias.mbgl_boolPropertyValue); [self update]; } - (id )fillAntialias { return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getFillAntialias()]; } - (void)setFillOpacity:(id )fillOpacity { self.layer->setFillOpacity(fillOpacity.mbgl_floatPropertyValue); [self update]; } - (id )fillOpacity { return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getFillOpacity()]; } - (void)setFillColor:(id )fillColor { self.layer->setFillColor(fillColor.mbgl_colorPropertyValue); [self update]; } - (id )fillColor { return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getFillColor()]; } - (void)setFillOutlineColor:(id )fillOutlineColor { self.layer->setFillOutlineColor(fillOutlineColor.mbgl_colorPropertyValue); [self update]; } - (id )fillOutlineColor { return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getFillOutlineColor()]; } - (void)setFillTranslate:(id )fillTranslate { self.layer->setFillTranslate(fillTranslate.mbgl_offsetPropertyValue); [self update]; } - (id )fillTranslate { return [MGLStyleAttribute mbgl_offsetPropertyValueWith:self.layer->getFillTranslate()]; } - (void)setFillTranslateAnchor:(id )fillTranslateAnchor { MGLSetEnumProperty(fillTranslateAnchor, FillTranslateAnchor, TranslateAnchorType, MGLFillStyleLayerFillTranslateAnchor); [self update]; } - (id )fillTranslateAnchor { MGLGetEnumProperty(FillTranslateAnchor, TranslateAnchorType, MGLFillStyleLayerFillTranslateAnchor); } - (void)setFillPattern:(id )fillPattern { self.layer->setFillPattern(fillPattern.mbgl_stringPropertyValue); [self update]; } - (id )fillPattern { return [MGLStyleAttribute mbgl_stringPropertyValueWith:self.layer->getFillPattern()]; } @end