create

Create a list of circles on the map.

<p> Circles are going to be created only for features with a matching geometry. <p> All supported properties are:<br> CircleOptions.PROPERTY_CIRCLE_SORT_KEY - Double<br> CircleOptions.PROPERTY_CIRCLE_RADIUS - Double<br> CircleOptions.PROPERTY_CIRCLE_COLOR - String<br> CircleOptions.PROPERTY_CIRCLE_BLUR - Double<br> CircleOptions.PROPERTY_CIRCLE_OPACITY - Double<br> CircleOptions.PROPERTY_CIRCLE_STROKE_WIDTH - Double<br> CircleOptions.PROPERTY_CIRCLE_STROKE_COLOR - String<br> CircleOptions.PROPERTY_CIRCLE_STROKE_OPACITY - Double<br> Learn more about above properties in the <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/">Style specification</a>. <p> Out of spec properties:<br> "is-draggable" - Boolean, true if the circle should be draggable, false otherwise

Return

the list of built circles

Parameters

json

the GeoJSON defining the list of circles to build

fun create(json: String): List<Circle>

Create a list of circles on the map.

<p> Circles are going to be created only for features with a matching geometry. <p> All supported properties are:<br> CircleOptions.PROPERTY_CIRCLE_SORT_KEY - Double<br> CircleOptions.PROPERTY_CIRCLE_RADIUS - Double<br> CircleOptions.PROPERTY_CIRCLE_COLOR - String<br> CircleOptions.PROPERTY_CIRCLE_BLUR - Double<br> CircleOptions.PROPERTY_CIRCLE_OPACITY - Double<br> CircleOptions.PROPERTY_CIRCLE_STROKE_WIDTH - Double<br> CircleOptions.PROPERTY_CIRCLE_STROKE_COLOR - String<br> CircleOptions.PROPERTY_CIRCLE_STROKE_OPACITY - Double<br> Learn more about above properties in the <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/">Style specification</a>. <p> Out of spec properties:<br> "is-draggable" - Boolean, true if the circle should be draggable, false otherwise

Return

the list of built circles

Parameters

featureCollection

the featureCollection defining the list of circles to build

fun create(featureCollection: FeatureCollection): List<Circle>