Contents

new LookAround(parent, location, options)

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

Declaration

constructor(
        parent?: HTMLElement,
        location?: Coordinate | Place | LookAroundScene,
        options?: LookAroundOptions,
    );

Parameters

  • parent:

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

  • location:

    A Coordinate that describes the location the Look Around view shows.

  • options:

    Options that Lookaroundoptions defines for initializing the properties of the preview.

Return Value

A LookAround instance.

Discussion

The Look Around view’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.