create

Create a list of polylineAnnotations on the map.

<p> PolylineAnnotations are going to be created only for features with a matching geometry. <p> All supported properties are:<br> PolylineAnnotationOptions.PROPERTY_LINE_JOIN - LineJoin<br> PolylineAnnotationOptions.PROPERTY_LINE_SORT_KEY - Double<br> PolylineAnnotationOptions.PROPERTY_LINE_BLUR - Double<br> PolylineAnnotationOptions.PROPERTY_LINE_COLOR - String<br> PolylineAnnotationOptions.PROPERTY_LINE_GAP_WIDTH - Double<br> PolylineAnnotationOptions.PROPERTY_LINE_OFFSET - Double<br> PolylineAnnotationOptions.PROPERTY_LINE_OPACITY - Double<br> PolylineAnnotationOptions.PROPERTY_LINE_PATTERN - String<br> PolylineAnnotationOptions.PROPERTY_LINE_WIDTH - Double<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 polylineAnnotation should be draggable, false otherwise

Return

the list of built polylineAnnotations

Parameters

json

the GeoJSON defining the list of polylineAnnotations to build

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

Create a list of polylineAnnotations on the map.

<p> PolylineAnnotations are going to be created only for features with a matching geometry. <p> All supported properties are:<br> PolylineAnnotationOptions.PROPERTY_LINE_JOIN - LineJoin<br> PolylineAnnotationOptions.PROPERTY_LINE_SORT_KEY - Double<br> PolylineAnnotationOptions.PROPERTY_LINE_BLUR - Double<br> PolylineAnnotationOptions.PROPERTY_LINE_COLOR - String<br> PolylineAnnotationOptions.PROPERTY_LINE_GAP_WIDTH - Double<br> PolylineAnnotationOptions.PROPERTY_LINE_OFFSET - Double<br> PolylineAnnotationOptions.PROPERTY_LINE_OPACITY - Double<br> PolylineAnnotationOptions.PROPERTY_LINE_PATTERN - String<br> PolylineAnnotationOptions.PROPERTY_LINE_WIDTH - Double<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 polylineAnnotation should be draggable, false otherwise

Return

the list of built polylineAnnotations

Parameters

featureCollection

the featureCollection defining the list of polylineAnnotations to build

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