Class: ImagesManager

bu.oblique. ImagesManager

This class is required to store oblique images.


new ImagesManager()

Source:
bu-oblique/imagesmanager.js
Fires:

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.oblique.Image

The oblique image to add.

Source:
bu-oblique/imagesmanager.js

findImageById(imageId)

Search images in local array and returns the index of the image if is present.

Parameters:
Name Type Description
imageId string

The imageId of the image to search for.

Source:
bu-oblique/imagesmanager.js
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)

If present, returns bu.oblique.Image object. If not returns null.

Parameters:
Name Type Description
imageId string

Image id of the image we want to get.

Source:
bu-oblique/imagesmanager.js
Returns:
Type
bu.oblique.Image | null