File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const keysMap = {
1111 'fill-antialias' : 'fillAntialiased' ,
1212 'fill-translate' : 'fillTranslation' ,
1313 'fill-translate-anchor' : 'fillTranslationAnchor' ,
14+ 'icon-allow-overlap' : 'iconAllowsOverlap' ,
1415 'icon-keep-upright' : 'keepsIconUpright' ,
1516 'icon-ignore-placement' : 'iconIgnoresPlacement' ,
1617 'icon-image' : 'iconImageName' ,
@@ -65,7 +66,12 @@ export class PropertyParser {
6566 if ( propertiesObject ) {
6667 Object . keys ( propertiesObject ) . forEach ( ( k ) => {
6768 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+ }
6975 } ) ;
7076 }
7177
You can’t perform that action at this time.
0 commit comments