new ImagesManager()
- Source:
- mapspace-oblique/imagesmanager.js
Fires:
- ol.events.Event#event:imageadded
Extends
- Mapspace.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
Mapspace.oblique.Image The oblique image to add.
- Source:
- mapspace-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:
- mapspace-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
-
getImageByCoord(coord)
-
If present, returns the first
Mapspace.oblique.Image
object that contains the given coordinate. Coordinates are always in WGS84 latlon, first value in the coordinate is longitude and second latitude. Returns null if no image is found.Parameters:
Name Type Description coord
Mapspace.Coordinate The coordinate.
- Source:
- mapspace-oblique/imagesmanager.js
Returns:
-
getImageById(imageId)
-
If present, returns
Mapspace.oblique.Image
object. If not returns null.Parameters:
Name Type Description imageId
string Image id of the image we want to get.
- Source:
- mapspace-oblique/imagesmanager.js
Returns: