Class: ImagesManager

bu.street.ImagesManager

This class is required to store metadata ImagesManager for BlomStreet panoramas

Constructor

new ImagesManager(ImagesManager)

Parameters:
Name Type Description
ImagesManager bu.street.ImagesManagerOptions

options

Source:

Extends

  • bu.Object

Methods

addImage(image)

Adds an image to the ImagesManager collection. If an image with same ID exists then it is replaced by the new one.

Parameters:
Name Type Description
image bu.street.Image

The image to add.

Source:

findImageById(imageId) → {number}

Search images in local array. True == image is present

Parameters:
Name Type Description
imageId string

The imageId of the image to search for.

Source:
Returns:

Returns the index of the image in the images array or -1 if image is not stored in the images manager.

Type
number

getImageById(imageId) → {bu.street.image}

If present, returns image object

Parameters:
Name Type Description
imageId string

Image id of the image we want to get.

Source:
Returns:
Type
bu.street.image

getImageCenter(imageId) → {bu.Coordinate|undefined}

Return the bu.Coordinate center of an image. This center is the point where the 360 image is shot. Coordinates are always in WGS84 latlon, first value in the coordinate is longitude and second latitude.

Parameters:
Name Type Description
imageId string

The ID of the image to search the center for.

Source:
Returns:

The image center. If no image is found undefined is returned.

Type
bu.Coordinate | undefined