---
title: "new LookAroundPreview(parent, location, options)"
framework: mapkitjs
role: symbol
role_heading: Constructor
path: mapkitjs/lookaroundpreview/lookaroundpreviewconstructor
---

# new LookAroundPreview(parent, location, options)

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

## Declaration

```data
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 doc://com.apple.mapkitjs/documentation/MapKitJS/Coordinate that describes the location the preview shows.
- `options`: Options that doc://com.apple.mapkitjs/documentation/MapKitJS/LookAroundPreviewOptions defines for initializing the properties of the preview.

## Return Value

Return Value A LookAroundPreview instance.

## Discussion

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.
