- Source:
Classes
Members
(static) ViewerProperty :string
Type:
- string
Properties:
Name | Type | Description |
---|---|---|
USERTOKEN |
string | Usertoken to access BlomURBEX services |
ZOOM |
string | Zoom level |
CENTER |
string | Coordinates of the street image |
ROTATION |
string | Rotation |
IMAGEID |
string | Name of the street image loaded |
FOV |
string | Fiel of vision |
PITCH |
string | Pitch |
YAW |
string | Yaw |
TARGET |
string | Div element where viewer is loaded |
- Source:
Methods
(static) calculateDistance(coordinate1, coordinate2) → {number}
Calculates distance in meters from one point to other of Earth. Calculation is aproximated using mean radius spherical Earth.
Parameters:
Name | Type | Description |
---|---|---|
coordinate1 |
bu.Coordinate | Coordinate as longitude and latitude, i.e. an array with longitude as 1st and latitude as 2nd element. |
coordinate2 |
bu.Coordinate | Coordinate as longitude and latitude, i.e. an array with longitude as 1st and latitude as 2nd element. |
- Source:
Returns:
Distance in meters.
- Type
- number
(static) fromLocalCoordsToPhiTheta(coordinates, image) → {Array.<bu.Coordinate>}
Transforms an array of coordinates from a local coordinate XYZ to phi/theta inside an equirectangular panorama 360 image.
Parameters:
Name | Type | Description |
---|---|---|
coordinates |
Array.<bu.Coordinate> | Array of coordinate as XYZ in the local projection defined for the image. |
image |
bu.street.Image | Image object to which transform. |
- Source:
Returns:
Array of coordinate transformed where first value is phi and second value is theta.
- Type
- Array.<bu.Coordinate>
(static) fromLocalCoordToPhiTheta(coordinate, image) → {bu.Coordinate}
Transforms a coordinate from a local coordinate XYZ to phi/theta inside an equirectangular panorama 360 image.
Parameters:
Name | Type | Description |
---|---|---|
coordinate |
bu.Coordinate | Coordinate as XYZ in the local projection defined for the image. |
image |
bu.street.Image | Image object to which transform. |
- Source:
Returns:
Coordinate transformed where first value is phi and second value is theta.
- Type
- bu.Coordinate
(static) fromLonLatToPitchYaw(coordinate, image) → {bu.Coordinate}
Transforms a coordinate from longitude/latitude/z to pitch/yaw inside an equirectangular panorama 360 image.
Parameters:
Name | Type | Description |
---|---|---|
coordinate |
bu.Coordinate | Coordinate as longitude/latitude/z, i.e. an array with longitude as 1st and latitude as 2nd element, and z is elevation in meters. If this value is not known it can be ignored and use only a coordinate of two values to get a good aproximation. |
image |
bu.street.Image | Image object to which transform. |
- Source:
Returns:
Coordinate transformed where first value is pitch and second value is yaw in radians. Yaw is [0, 2PI) value where zero is at initial direction and pitch is [+PI/2,-PI/2].
- Type
- bu.Coordinate
(static) latLon2MercatorSpheric(longitude, latitude) → {bu.Coordinate}
Transforms one coordinate in geographical projection to spherical mercator.
Parameters:
Name | Type | Description |
---|---|---|
longitude |
number | Longitude of the coordinate we want to transform. |
latitude |
number | Longitude of the coordinate we want to transform. |
- Source:
Returns:
Coordinate as longitude and latitude.
- Type
- bu.Coordinate
(static) mercatorSpheric2LatLon(longitude, latitude) → {bu.Coordinate}
Transforms one coordinate in spherical mercator projection to geographical.
Parameters:
Name | Type | Description |
---|---|---|
longitude |
number | Longitude of the coordinate we want to transform. |
latitude |
number | Longitude of the coordinate we want to transform. |
- Source:
Returns:
Coordinate as longitude and latitude.
- Type
- bu.Coordinate
(static) phiThetaToPitchYaw(coordinate, image) → {bu.Coordinate}
Transforms a coordinate from phi/theta to pitch/yaw inside an equirectangular panorama 360 image.
Parameters:
Name | Type | Description |
---|---|---|
coordinate |
bu.Coordinate | Coordinate as [phi, theta]. |
image |
bu.street.Image | Image object to which transform. |
- Source:
Returns:
Coordinate transformed to [pitch, yaw].
- Type
- bu.Coordinate
(static) pitchYawToPhiTheta(coordinate, image) → {bu.Coordinate}
Transforms a coordinate from pitch/yaw to phi/theta inside an equirectangular panorama 360 image.
Parameters:
Name | Type | Description |
---|---|---|
coordinate |
bu.Coordinate | Coordinate as [pitch, yaw]. |
image |
bu.street.Image | Image object to which transform. |
- Source:
Returns:
Coordinate transformed to [phi, theta].
- Type
- bu.Coordinate
Type Definitions
Hotspot
Options for bu.street.Hotspot.
Type:
- Object
- Source:
Image
Options for bu.street.Image.
Type:
- Object
- Source:
ImagesManagerOptions;
Constructor for bu.street.ImagesManager class
- Source:
ServicesOptions
Options for bu.street.Services.
Type:
- Object
- Source:
ViewerOptions
Options for bu.street.Viewer.
Type:
- Object
- Source: