Global

Methods

addResolutions()

Adds extra resolutions to enable deep zoom
Source:

(async) checkBounds(coordinate, imageItem) → {Object}

Checks if a coordinate is inside or outside the bounding box coordinates of an image
Parameters:
Name Type Description
coordinate Array EPSG:25832 coordinate
imageItem Object image item object from STAC API
Source:
Returns:
Returns a new image object if coordinate falls outside the shape bounds - otherwise returns false.
Type
Object

(async) checkBoundsAll(coordinate, images)

Ensure that a given coordinate fits within a collection of image items
Parameters:
Name Type Description
coordinate Array EPSG:25832 coordinate
images Object Collection of images
Source:

createView()

Create a modified View object with min and max zoom levels
Source:

debounce()

Debounces a function as to not run a lot of times in a short timespan
Source:

findAncestor()

Find nearest ancestor node in a DOM tree
Source:

getAdjustedNadirRotation()

Calculate how much to rotate a nadir image to have it north upwards
Source:

getParam()

Gets a parameter from URL
Source:

getTotalBbox()

Iterates over an array of image items and returns a total bounding box for all the image items
Source:

getYearFromCollection()

Extract the year from a collection id
Source:

(async) refreshItems(position, collection) → {Object}

Reloads all images and terrain data for a given position/collection
Parameters:
Name Type Description
position * EPSG:25832 coordinate
collection * collection ID from STAC API (ie. "skraafotos2023")
Source:
Returns:
Object containing image items and terrain elevation data for the images' total bounding box
Type
Object

(async) updateCenter()

Uses world coordinate and image data to calculate an image coordinate
Source:

(async) updateMap()

Completely update an image map
Source:

updateMapCenterIcon()

Updates the position of the point of interest icon
Source:

updateMapImage()

Updates the image displayed in a map
Source:

(async) updateMapView()

Updates the zoom and placement (center) values of a map
Source:

(async) updateMarker()

Calculates new marker position and updates marker in image map
Source:

(async) updateView()

Calculates new view position and updates image map view
Source:

(async) updateViewport()

Handler to update the relevant parts of the image map when item, view, or marker is updated
Source: