---
title: "itemForMultiLineString(itemCollection, geoJSON)"
framework: mapkitjs
role: symbol
role_heading: Interface Method
path: mapkitjs/geojsondelegate/itemformultilinestring
---

# itemForMultiLineString(itemCollection, geoJSON)

Overrides a multiline string.

## Declaration

```data
itemForMultiLineString?<D extends GeoJSONTypes.MultiLineString>(
    itemCollection: ItemCollection<D>,
    geoJSON: D,
): ItemCollection<D> | Item[] | null;
```

## Parameters

- `itemCollection`: An item collection containing associated overlays.
- `geoJSON`: The original GeoJSON object for the MultiLineString. This contains an array of geometries.

## Return Value

Return Value A map item or an array of map items.

## Discussion

Discussion MapKit JS calls this method for every MultiLineString object. The framework also calls this method after constructing subitems and calling their delegate functions.

## See Also

### Overriding items

- [itemForFeature(item, geoJSON)](mapkitjs/geojsondelegate/itemforfeature.md)
- [itemForFeatureCollection(itemCollection, geoJSON)](mapkitjs/geojsondelegate/itemforfeaturecollection.md)
- [itemForLineString(overlay, geoJSON)](mapkitjs/geojsondelegate/itemforlinestring.md)
- [itemForPoint(coordinate, geoJSON)](mapkitjs/geojsondelegate/itemforpoint.md)
- [itemForMultiPoint(itemCollection, geoJSON)](mapkitjs/geojsondelegate/itemformultipoint.md)
- [itemForPolygon(overlay, geoJSON)](mapkitjs/geojsondelegate/itemforpolygon.md)
- [itemForMultiPolygon(itemCollection, geoJSON)](mapkitjs/geojsondelegate/itemformultipolygon.md)
- [styleForOverlay(overlay, geoJSON)](mapkitjs/geojsondelegate/styleforoverlay.md)
