<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/GeoJSONDelegate/itemForMultiLineString",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Method",
  "symbol" : {
    "kind" : "Interface Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structm/mapkit.GeoJSONDelegate/itemForMultiLineString"
  },
  "title" : "itemForMultiLineString(itemCollection, geoJSON)"
}
-->

# itemForMultiLineString(itemCollection, geoJSON)

Overrides a multiline string.

```
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

A map item or an array of map items.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)