#import "NSArray+MGLStyleAttributeAdditions.h" #import "NSArray+MGLStyleAttributeAdditions_Private.h" #import "MGLStyleAttributeValue_Private.h" #include @interface NSArray(Private) @end @implementation NSArray (MGLStyleAttributeAdditions) - (mbgl::style::PropertyValue >)mbgl_stringArrayPropertyValue { std::vectorfonts; for (NSString *font in self) { fonts.emplace_back(font.UTF8String); } return {{fonts}}; } - (mbgl::style::PropertyValue >)mbgl_numberArrayPropertyValue { std::vectorvalues; for (NSNumber *n in self) { values.emplace_back(n.floatValue); } return {{values}}; } @end