Skip to content

Commit 5c3f70d

Browse files
committed
fix(ios): icon-allow-overlap fix
1 parent 47dde6f commit 5c3f70d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/layers/parser/property-parser.ios.ts

+7-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)