<!--
{
  "availability" : [
    "MapKit JS: 5.79.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/LookAroundPreview/LookAroundPreviewConstructor",
  "metadataVersion" : "0.1.0",
  "role" : "Constructor",
  "symbol" : {
    "kind" : "Constructor",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instctr/mapkit.LookAroundPreview/LookAroundPreviewConstructor"
  },
  "title" : "new LookAroundPreview(parent, location, options)"
}
-->

# new LookAroundPreview(parent, location, options)

Creates a Look Around preview you embed on a webpage and initializes it with the constructor options you choose.

```
constructor(
    parent?: HTMLElement,
    location?: CoordinateData | Place | LookAroundScene,
    options?: LookAroundPreviewOptions,
);
```

## Parameters

`parent`

A DOM element, or the ID of a DOM element, to use as your view’s container.

`location`

A [`Coordinate`](/documentation/MapKitJS/Coordinate) that describes the location the preview shows.

`options`

Options that [`LookAroundPreviewOptions`](/documentation/MapKitJS/LookAroundPreviewOptions) defines for initializing the properties of the preview.

## Return Value

A [`LookAroundPreview`](/documentation/MapKitJS/LookAroundPreview) instance.

## Discussion

The Look Around preview’s constructor takes an optional `parent` argument and an optional `options` argument. If you specify the `parent` argument, MapKit JS inserts the preview element into the DOM as a descendant of `parent`.

---

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)