create

Create a list of pointAnnotations on the map.

PointAnnotations are going to be created only for features with a matching geometry.

All supported properties are: PointAnnotationOptions.PROPERTY_ICON_ANCHOR - IconAnchor PointAnnotationOptions.PROPERTY_ICON_IMAGE - String PointAnnotationOptions.PROPERTY_ICON_OFFSET - List PointAnnotationOptions.PROPERTY_ICON_ROTATE - Double PointAnnotationOptions.PROPERTY_ICON_SIZE - Double PointAnnotationOptions.PROPERTY_ICON_TEXT_FIT - IconTextFit PointAnnotationOptions.PROPERTY_ICON_TEXT_FIT_PADDING - List PointAnnotationOptions.PROPERTY_SYMBOL_SORT_KEY - Double PointAnnotationOptions.PROPERTY_TEXT_ANCHOR - TextAnchor PointAnnotationOptions.PROPERTY_TEXT_FIELD - String PointAnnotationOptions.PROPERTY_TEXT_JUSTIFY - TextJustify PointAnnotationOptions.PROPERTY_TEXT_LETTER_SPACING - Double PointAnnotationOptions.PROPERTY_TEXT_LINE_HEIGHT - Double PointAnnotationOptions.PROPERTY_TEXT_MAX_WIDTH - Double PointAnnotationOptions.PROPERTY_TEXT_OFFSET - List PointAnnotationOptions.PROPERTY_TEXT_RADIAL_OFFSET - Double PointAnnotationOptions.PROPERTY_TEXT_ROTATE - Double PointAnnotationOptions.PROPERTY_TEXT_SIZE - Double PointAnnotationOptions.PROPERTY_TEXT_TRANSFORM - TextTransform PointAnnotationOptions.PROPERTY_ICON_COLOR - String PointAnnotationOptions.PROPERTY_ICON_EMISSIVE_STRENGTH - Double PointAnnotationOptions.PROPERTY_ICON_HALO_BLUR - Double PointAnnotationOptions.PROPERTY_ICON_HALO_COLOR - String PointAnnotationOptions.PROPERTY_ICON_HALO_WIDTH - Double PointAnnotationOptions.PROPERTY_ICON_IMAGE_CROSS_FADE - Double PointAnnotationOptions.PROPERTY_ICON_OPACITY - Double PointAnnotationOptions.PROPERTY_TEXT_COLOR - String PointAnnotationOptions.PROPERTY_TEXT_EMISSIVE_STRENGTH - Double PointAnnotationOptions.PROPERTY_TEXT_HALO_BLUR - Double PointAnnotationOptions.PROPERTY_TEXT_HALO_COLOR - String PointAnnotationOptions.PROPERTY_TEXT_HALO_WIDTH - Double PointAnnotationOptions.PROPERTY_TEXT_OPACITY - Double Learn more about above properties in the )The online documentation.

Out of spec properties: "is-draggable" - Boolean, true if the pointAnnotation should be draggable, false otherwise

Return

the list of built pointAnnotations

Parameters

json

the GeoJSON defining the list of pointAnnotations to build


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

Create a list of pointAnnotations on the map.

PointAnnotations are going to be created only for features with a matching geometry.

All supported properties are: PointAnnotationOptions.PROPERTY_ICON_ANCHOR - IconAnchor PointAnnotationOptions.PROPERTY_ICON_IMAGE - String PointAnnotationOptions.PROPERTY_ICON_OFFSET - List PointAnnotationOptions.PROPERTY_ICON_ROTATE - Double PointAnnotationOptions.PROPERTY_ICON_SIZE - Double PointAnnotationOptions.PROPERTY_ICON_TEXT_FIT - IconTextFit PointAnnotationOptions.PROPERTY_ICON_TEXT_FIT_PADDING - List PointAnnotationOptions.PROPERTY_SYMBOL_SORT_KEY - Double PointAnnotationOptions.PROPERTY_TEXT_ANCHOR - TextAnchor PointAnnotationOptions.PROPERTY_TEXT_FIELD - String PointAnnotationOptions.PROPERTY_TEXT_JUSTIFY - TextJustify PointAnnotationOptions.PROPERTY_TEXT_LETTER_SPACING - Double PointAnnotationOptions.PROPERTY_TEXT_LINE_HEIGHT - Double PointAnnotationOptions.PROPERTY_TEXT_MAX_WIDTH - Double PointAnnotationOptions.PROPERTY_TEXT_OFFSET - List PointAnnotationOptions.PROPERTY_TEXT_RADIAL_OFFSET - Double PointAnnotationOptions.PROPERTY_TEXT_ROTATE - Double PointAnnotationOptions.PROPERTY_TEXT_SIZE - Double PointAnnotationOptions.PROPERTY_TEXT_TRANSFORM - TextTransform PointAnnotationOptions.PROPERTY_ICON_COLOR - String PointAnnotationOptions.PROPERTY_ICON_EMISSIVE_STRENGTH - Double PointAnnotationOptions.PROPERTY_ICON_HALO_BLUR - Double PointAnnotationOptions.PROPERTY_ICON_HALO_COLOR - String PointAnnotationOptions.PROPERTY_ICON_HALO_WIDTH - Double PointAnnotationOptions.PROPERTY_ICON_IMAGE_CROSS_FADE - Double PointAnnotationOptions.PROPERTY_ICON_OPACITY - Double PointAnnotationOptions.PROPERTY_TEXT_COLOR - String PointAnnotationOptions.PROPERTY_TEXT_EMISSIVE_STRENGTH - Double PointAnnotationOptions.PROPERTY_TEXT_HALO_BLUR - Double PointAnnotationOptions.PROPERTY_TEXT_HALO_COLOR - String PointAnnotationOptions.PROPERTY_TEXT_HALO_WIDTH - Double PointAnnotationOptions.PROPERTY_TEXT_OPACITY - Double Learn more about above properties in the )The online documentation.

Out of spec properties: "is-draggable" - Boolean, true if the pointAnnotation should be draggable, false otherwise

Return

the list of built pointAnnotations

Parameters

featureCollection

the featureCollection defining the list of pointAnnotations to build