# map-pin Icon

> The map-pin icon from Heroicons as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Heroicons](https://composables.com/icons/icon-libraries/heroicons.md)
- License: MIT (full text in the [Heroicons library page](https://composables.com/icons/icon-libraries/heroicons.md))
- Styles: [Outline](https://composables.com/icons/icon-libraries/heroicons/map-pin.md?v=outline), [Solid](https://composables.com/icons/icon-libraries/heroicons/map-pin.md?v=solid), [Mini](https://composables.com/icons/icon-libraries/heroicons/map-pin.md?v=mini), [Micro](https://composables.com/icons/icon-libraries/heroicons/map-pin.md?v=micro)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/map-pin.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeJoin
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val HeroiconsMapPin: ImageVector
    get() {
        if (_HeroiconsMapPin != null) return _HeroiconsMapPin!!
        
        _HeroiconsMapPin = ImageVector.Builder(
            name = "map-pin",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 1.5f,
                strokeLineJoin = StrokeJoin.Miter
            ) {
                moveTo(15f, 10.5f)
                arcToRelative(3f, 3f, 0f, true, true, -6f, 0f)
                arcToRelative(3f, 3f, 0f, false, true, 6f, 0f)
                close()
            }
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 1.5f,
                strokeLineJoin = StrokeJoin.Miter
            ) {
                moveTo(19.5f, 10.5f)
                curveToRelative(0f, 7.142f, -7.5f, 11.25f, -7.5f, 11.25f)
                reflectiveCurveTo(4.5f, 17.642f, 4.5f, 10.5f)
                arcToRelative(7.5f, 7.5f, 0f, true, true, 15f, 0f)
                close()
            }
        }.build()
        
        return _HeroiconsMapPin!!
    }

private var _HeroiconsMapPin: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/map-pin.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:strokeColor="@android:color/black"
        android:strokeWidth="1.5"
        android:pathData="M15,10.5a3,3 0 1,1 -6,0a3,3 0 0,1 6,0Z" />
    <path
        android:strokeColor="@android:color/black"
        android:strokeWidth="1.5"
        android:pathData="M19.5,10.5c0,7.142 -7.5,11.25 -7.5,11.25S4.5,17.642 4.5,10.5a7.5,7.5 0 1,1 15,0Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/map-pin.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"><path stroke-linecap="round" stroke-linejoin="round" d="M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"/></svg>
```
