create

Create a list of symbols on the map.

<p> Symbols are going to be created only for features with a matching geometry. <p> All supported properties are:<br> SymbolOptions.PROPERTY_SYMBOL_SORT_KEY - Double<br> SymbolOptions.PROPERTY_ICON_SIZE - Double<br> SymbolOptions.PROPERTY_ICON_IMAGE - String<br> SymbolOptions.PROPERTY_ICON_ROTATE - Double<br> SymbolOptions.PROPERTY_ICON_OFFSET - List<Double><br> SymbolOptions.PROPERTY_ICON_ANCHOR - IconAnchor<br> SymbolOptions.PROPERTY_TEXT_FIELD - String<br> SymbolOptions.PROPERTY_TEXT_FONT - List<String><br> SymbolOptions.PROPERTY_TEXT_SIZE - Double<br> SymbolOptions.PROPERTY_TEXT_MAX_WIDTH - Double<br> SymbolOptions.PROPERTY_TEXT_LETTER_SPACING - Double<br> SymbolOptions.PROPERTY_TEXT_JUSTIFY - TextJustify<br> SymbolOptions.PROPERTY_TEXT_RADIAL_OFFSET - Double<br> SymbolOptions.PROPERTY_TEXT_ANCHOR - TextAnchor<br> SymbolOptions.PROPERTY_TEXT_ROTATE - Double<br> SymbolOptions.PROPERTY_TEXT_TRANSFORM - TextTransform<br> SymbolOptions.PROPERTY_TEXT_OFFSET - List<Double><br> SymbolOptions.PROPERTY_ICON_OPACITY - Double<br> SymbolOptions.PROPERTY_ICON_COLOR - String<br> SymbolOptions.PROPERTY_ICON_HALO_COLOR - String<br> SymbolOptions.PROPERTY_ICON_HALO_WIDTH - Double<br> SymbolOptions.PROPERTY_ICON_HALO_BLUR - Double<br> SymbolOptions.PROPERTY_TEXT_OPACITY - Double<br> SymbolOptions.PROPERTY_TEXT_COLOR - String<br> SymbolOptions.PROPERTY_TEXT_HALO_COLOR - String<br> SymbolOptions.PROPERTY_TEXT_HALO_WIDTH - Double<br> SymbolOptions.PROPERTY_TEXT_HALO_BLUR - 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 symbol should be draggable, false otherwise

Return

the list of built symbols

Parameters

json

the GeoJSON defining the list of symbols to build

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

Create a list of symbols on the map.

<p> Symbols are going to be created only for features with a matching geometry. <p> All supported properties are:<br> SymbolOptions.PROPERTY_SYMBOL_SORT_KEY - Double<br> SymbolOptions.PROPERTY_ICON_SIZE - Double<br> SymbolOptions.PROPERTY_ICON_IMAGE - String<br> SymbolOptions.PROPERTY_ICON_ROTATE - Double<br> SymbolOptions.PROPERTY_ICON_OFFSET - List<Double><br> SymbolOptions.PROPERTY_ICON_ANCHOR - IconAnchor<br> SymbolOptions.PROPERTY_TEXT_FIELD - String<br> SymbolOptions.PROPERTY_TEXT_FONT - List<String><br> SymbolOptions.PROPERTY_TEXT_SIZE - Double<br> SymbolOptions.PROPERTY_TEXT_MAX_WIDTH - Double<br> SymbolOptions.PROPERTY_TEXT_LETTER_SPACING - Double<br> SymbolOptions.PROPERTY_TEXT_JUSTIFY - TextJustify<br> SymbolOptions.PROPERTY_TEXT_RADIAL_OFFSET - Double<br> SymbolOptions.PROPERTY_TEXT_ANCHOR - TextAnchor<br> SymbolOptions.PROPERTY_TEXT_ROTATE - Double<br> SymbolOptions.PROPERTY_TEXT_TRANSFORM - TextTransform<br> SymbolOptions.PROPERTY_TEXT_OFFSET - List<Double><br> SymbolOptions.PROPERTY_ICON_OPACITY - Double<br> SymbolOptions.PROPERTY_ICON_COLOR - String<br> SymbolOptions.PROPERTY_ICON_HALO_COLOR - String<br> SymbolOptions.PROPERTY_ICON_HALO_WIDTH - Double<br> SymbolOptions.PROPERTY_ICON_HALO_BLUR - Double<br> SymbolOptions.PROPERTY_TEXT_OPACITY - Double<br> SymbolOptions.PROPERTY_TEXT_COLOR - String<br> SymbolOptions.PROPERTY_TEXT_HALO_COLOR - String<br> SymbolOptions.PROPERTY_TEXT_HALO_WIDTH - Double<br> SymbolOptions.PROPERTY_TEXT_HALO_BLUR - 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 symbol should be draggable, false otherwise

Return

the list of built symbols

Parameters

featureCollection

the featureCollection defining the list of symbols to build

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