create

Create a list of polygonAnnotations on the map.

<p> PolygonAnnotations are going to be created only for features with a matching geometry. <p> All supported properties are:<br> PolygonAnnotationOptions.PROPERTY_FILL_SORT_KEY - Double<br> PolygonAnnotationOptions.PROPERTY_FILL_COLOR - String<br> PolygonAnnotationOptions.PROPERTY_FILL_OPACITY - Double<br> PolygonAnnotationOptions.PROPERTY_FILL_OUTLINE_COLOR - String<br> PolygonAnnotationOptions.PROPERTY_FILL_PATTERN - String<br> Learn more about above properties in the )[The online documentation](https://www.mapbox.com/mapbox-gl-js/style-spec/). <p> Out of spec properties:<br> "is-draggable" - Boolean, true if the polygonAnnotation should be draggable, false otherwise

Return

the list of built polygonAnnotations

Parameters

json

the GeoJSON defining the list of polygonAnnotations to build

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

Create a list of polygonAnnotations on the map.

<p> PolygonAnnotations are going to be created only for features with a matching geometry. <p> All supported properties are:<br> PolygonAnnotationOptions.PROPERTY_FILL_SORT_KEY - Double<br> PolygonAnnotationOptions.PROPERTY_FILL_COLOR - String<br> PolygonAnnotationOptions.PROPERTY_FILL_OPACITY - Double<br> PolygonAnnotationOptions.PROPERTY_FILL_OUTLINE_COLOR - String<br> PolygonAnnotationOptions.PROPERTY_FILL_PATTERN - String<br> Learn more about above properties in the )[The online documentation](https://www.mapbox.com/mapbox-gl-js/style-spec/). <p> Out of spec properties:<br> "is-draggable" - Boolean, true if the polygonAnnotation should be draggable, false otherwise

Return

the list of built polygonAnnotations

Parameters

featureCollection

the featureCollection defining the list of polygonAnnotations to build

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