blob: 163105d2fa29a4883572d0465718ac05afed9ea5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#import "NSNumber+MGLStyleAttributeAdditions.h"
#include <mbgl/style/property_value.hpp>
@implementation NSNumber (MGLStyleAttributeAdditions)
- (NSNumber *)numberValue
{
return self;
}
- (mbgl::style::PropertyValue<bool>)mbgl_boolPropertyValue
{
return mbgl::style::PropertyValue<bool> { !!self.boolValue };
}
- (mbgl::style::PropertyValue<float>)mbgl_floatPropertyValue
{
return mbgl::style::PropertyValue<float> { self.floatValue };
}
@end
|