File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const keysMap = {
11
11
'fill-antialias' : 'fillAntialiased' ,
12
12
'fill-translate' : 'fillTranslation' ,
13
13
'fill-translate-anchor' : 'fillTranslationAnchor' ,
14
+ 'icon-allow-overlap' : 'iconAllowsOverlap' ,
14
15
'icon-keep-upright' : 'keepsIconUpright' ,
15
16
'icon-ignore-placement' : 'iconIgnoresPlacement' ,
16
17
'icon-image' : 'iconImageName' ,
@@ -65,7 +66,12 @@ export class PropertyParser {
65
66
if ( propertiesObject ) {
66
67
Object . keys ( propertiesObject ) . forEach ( ( k ) => {
67
68
const actualKey = keysMap [ k ] || toCamelCase ( k ) ;
68
- nProperties [ actualKey ] = ( NSExpression as any ) . expressionWithMGLJSONObject ( transformValue ( k , propertiesObject [ k ] ) ) ;
69
+ const value = propertiesObject [ k ] ;
70
+ if ( Array . isArray ( value ) ) {
71
+ nProperties [ actualKey ] = ( NSExpression as any ) . expressionWithMGLJSONObject ( transformValue ( k , value ) ) ;
72
+ } else {
73
+ nProperties [ actualKey ] = NSExpression . expressionForConstantValue ( transformValue ( k , value ) ) ;
74
+ }
69
75
} ) ;
70
76
}
71
77
You can’t perform that action at this time.
0 commit comments