Skip to content

Commit 3a944b3

Browse files
author
Chris Vietor
committed
fix: (android) circle-radius of type number used wrong property (caused crash)
1 parent 38728b8 commit 3a944b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapbox.android.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3427,7 +3427,7 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
34273427
// we have two options for a radius. We might have a fixed float or an expression
34283428

34293429
if (typeof style.paint['circle-radius'] == 'number') {
3430-
circleProperties.push(com.mapbox.mapboxsdk.style.layers.PropertyFactory.circleRadius(new java.lang.Float(style.paint.radius)));
3430+
circleProperties.push(com.mapbox.mapboxsdk.style.layers.PropertyFactory.circleRadius(new java.lang.Float(style.paint['circle-radius'])));
34313431
} else {
34323432
if (!style.paint['circle-radius'].stops) {
34333433
reject('No radius or stops provided to addCircleLayer.');

0 commit comments

Comments
 (0)