-
Notifications
You must be signed in to change notification settings - Fork 7
api
- Animation
-
Mizar is able to create different types of animation on a globe :
- InertiaAnimation: Animation simulating inertia for camera navigation
- InterpolatedAnimation : Generic animation to interpolate arbitrary values
- PathAnimation : Animation defined with a path
- SegmentedAnimation : Animation defined with segments
In addition to the classes, a factory is available to help for creating animation. Once the animation is created, the client can handle it by the use of its interface.
- Context
-
Mizar is able to handle different types of context.
A context is a concept that brings together :
- a webGL globe
- a coordinate reference system
- a navigation
SkyContext A context representing a sky PlanetContext A context representing a planet The context is automatically instantiated by the method createContext from Mizar.
In addition to the classes, a factory and a context manager are availables to help for creating context. Once the context is created, the client can handle it by the use of its interface. - Crs
-
A coordinate reference system is a coordinate system that is related to an object by a geodetic datum. Mizar currently supports the following coordinates reference systems :
EquatorialCrs Provides an equatorial coordinate reference system GalacticCrs Provides a galactic coordinate reference system Mars2000Crs Provides a coordinate reference system base on the Mars geoide WGS84Crs Provides a coordinate reference system base on the Earth geoide ProjectedCrs Provides a projected coordinate reference system on a map
In addition to the classes, a factory is available to help for creating coordinate reference system. Once the coordinate reference system is created, the client can handle it by the use of its interface. - Globe
-
Provides classes for handling a globe.
The different possible globes in MIZAR are :
- a sky
- a planet
A sky is a globe where the camera is located in it whereas the planet is a globe where the camera is located outside.
In addition to the classes, a factory is available to help for creating globe. Once the globe is created, the client can handle it by the use of its interface. - Layer
-
A layer is an information that can be superimposed on another information. It exists different natures of layer, which are listed as below :
- AtmosphereLayer : A layer to create an atmosphere on a planet.
- BingLayer: The Microsoft service proving a WMTS server.
- CoordinateGridLayer : A layer to create a grid on the sky
- GeoJSONLayer : A layer to add a GeoJSON on the globe
- GroundOverlayLayer : A layer to draw an image overlay draped onto the terrain
- HipsCatLayer : A layer to draw a HIPS catalogue
- HipsFitsLayer : A layer to draw an Hips Fits
- HipsGraphicLayer : A layer to draw a Hips JPEG/PNG
- MocLayer : A layer to draw a multi-order-coverage index
- OpenSearchLayer : A layer to draw the result from an open search service
- OSMLayer : A layer to display data coming from OpenStreetMap server
- PlanetLayer : A layer to save all layers of a planet
- TileWireframeLayer : A layer to draw a grid on the planet
- VectorLayer : A layer to draw a vector
- WCSElevationLayer : A layer to draw the elevation
- WMSElevationLayer : A layer to draw the elevation
- WMSLayer : A layer to draw images coming from the WMS server
- WMTSLayer : A layer to draw predefined tiles coming from a WMTS server
In addition to the classes, a factory is available to help for creating layer. Once the layer is created, the client can handle it by the use of its interface. - Navigation
-
Mizar owns different types of navigation to control the camera on the WebGL scene.
AstroNavigation Provides a camera located at the center of the scene. The camera is inside the globe. It is used to view the sky PlanetNavigation Provides a camera, located outside the globe and looking at the globe. It is used to view a planet FlatNavigation Provides a camera to navigate on a 2D map - Only available in a Planet context The camera is automatically instantiated by the context AbstractContext, which is created by client. Usually, the navigation is in 3D (AstroNavigation or PlanetNavigation). However, in a particular case, when the client selects a Coordinate Reference System with a projection, the FlatNavigation is selected.
Then the client can control the navigation by its interface
In addition, the navigation is controlled by the user with the help of devices : keyboard, touch, mouse. When creating the Mizar instance, the user can define a list of supported devices to be able to control the navigation by these devices. By default, the MouseNavigationHandler and KeyboardNavigationHandler are set up. When the parameter isMobile is set to true in Mizar options, then the TouchNavigationHandler is set up
- Projection
-
Mizar owns different types of projection, which is used to represent a planet on a 2D map.
AitoffProjection Provides a AITOFF projection AugustProjection Provides an august projection AzimuthProjection Provides an azimuth projection MercatorProjection Provides a mercator projection MollweideProjection Provides a mollweide projection PlateProjection Provides a plate carrée projection The projection is automatically instantiated by the ProjectedCrs class.
- Provider
-
Provider
- ReverseNameResolver
-
Reverse Name resolver module : API allowing to retrieve information from a geo picking
- NameResolver
-
Name resolver module : API allowing to search object name and zoom to it
- Mizar
-
Creates an instance of the Mizar API.
- Mizar
-
Creates an instance of the Mizar API.
- AbstractAnimation
-
AbstractAnimation is an abstract class for all animation contexts which allow an application to create an animation of the camera around the globe.
- AbstractContext
-
The active context object can normally be obtained from the ContextManager class of the Mizar instance.
A context is the main webGL object that contains its own coordinate reference system, its own data, its own navigation and its own GUI.
Client implementations should not normally instantiate this class directly. - AbstractCrs
-
Creates an coordinate reference system for a globe and data.
A coordinate reference system is a coordinate system that is related to an object by a geodetic datum.
A coordinate system is a set of mathematical rules for specifying how coordinates are to be assigned to points
- AbstractGlobe
-
Creates a sky or a planet with it own coordinate reference system and renders the globe. According to its coordinate reference system, the globe can be projected on a map.
Client implementations should not normally instantiate this class directly. - AbstractTracker
-
Abstract class for tracker (position, elevation...)
-
ElevationTracker ⇐
AbstractTracker
-
ElevationTracker context constructor
-
PositionTracker ⇐
AbstractTracker
-
PositionTracker constructor
-
AbstractHipsLayer ⇐
AbstractRasterLayer
-
Abstract class for HIPS
-
AbstractLayer ⇐
Event
-
Abstract class for creating layer.
-
AbstractRasterLayer ⇐
AbstractLayer
-
Base class for raster layer
- HipsMetadata
-
Hips data model
- OSData
-
OpenSearch renderable
-
AbstractNavigation ⇐
Event
-
The active navigation object can normally be obtained from the Mizar#getNavigation method of the Mizar instance. Client implementations should not normally instantiate this class directly.
- KMLParser constructor
- ParserFactory
-
Parser Factory
- AbstractProjection
-
Abstract class for projections. A map projection is one of many methods used to represent the 3-dimensional surface of the earth or other round body on a 2-dimensional plane in cartography. The creation of a map projection involves two steps :
- selection of a model for the shape of the body (choosing between a sphere or ellipsoid),
- transform planetographic coordinates to plane coordinates.
- BatchRenderable
-
Base renderable
- BoundingBox
-
Bounding Box
- Bucket
-
Bucket constructor for ConvexPolygonRenderer
- Renderable
-
Renderable constructor Attach to a bucket
-
ConvexPolygonRenderer ⇐
VectorRenderer
-
ConvexPolygonRenderer constructor
- DynamicImage
-
DynamicImage constructor
- FeatureOverlayManager
-
FeatureOverlayManager constructor
- FeatureStyle
-
The style to display a Feature
- Plane
-
Plane constructor
- Frustum
-
Frustum constructor
- GeoBound
-
Geo Bound
- GroundOverlayRenderer
-
GroundOverlayRenderer constructor
- LineRenderer
-
Basic renderer to animate lines with gradient color texture
-
LineRenderable ⇐
BatchRenderable
-
Renderable constructor for Line
- LineBucket
-
Bucket constructor for LineRenderer
-
LineRenderer ⇐
TiledVectorRenderable
-
LineStringRenderable manages lineString data to be rendered on a tile.
-
LineStringRenderer ⇐
TiledVectorRenderer
-
LineStringRenderer manages lineString data to be rendered on a tile.
- LineStringBucket
-
Bucket constructor for LineStringRenderer
-
PlanetPolygonRenderable ⇐
TiledVectorRenderable
-
PlanetPolygonRenderable constructor
-
PlanetPolygonRenderer ⇐
TiledVectorRenderer
-
PlanetPolygonRenderer constructor
-
PlanetPolygonBucket ⇐
TiledVectorRenderer
-
Bucket constructor for PlanetPolygonRenderer
-
PointRenderer ⇐
VectorRenderer
-
POI Renderer constructor
- PointRenderable
-
Renderable constructor for Point
- PointBucket
-
Bucket constructor for PointRenderer
-
PointSpriteRenderer ⇐
VectorRenderer
-
PointSpriteRenderer constructor
- Renderable
-
Renderable constructor for PointSprite
- Bucket
-
Bucket constructor for PointSpriteRenderer
-
PolygonRenderable ⇐
TiledVectorRenderable
-
PolygonRenderable constructor
- PointSet
-
PointSet constructor
-
PolygonRenderer ⇐
TiledVectorRenderer
-
PolygonRenderer constructor
- PolygonBucket
-
PolygonBucket constructor
-
PolygonRenderer ⇐
VectorRenderer
-
Basic renderer for polygon
-
PolygonRenderable ⇐
BatchRenderable
-
Renderable constructor for Polygon
- PolygonBucket
-
Bucket constructor for PolygonRenderer
- Program
-
Program constructor
- RasterOverlayRenderer
-
RasterOverlayRenderer constructor
- RasterOverlayRenderable
-
Create a renderable for the overlay. There is one renderable per overlay and per tile.
- Bucket
-
Bucket constructor for RasterOverlay
- Ray
-
Ray constructor
- RenderContext
-
RenderContext constructor
- RendererTileData
-
RendererTileData constructor Contains a list of renderables for the tiles
- StencilPolygonRenderer
-
Basic renderer for polygon
- PolygonRenderable
-
Renderable constructor for Polygon
- PolygonBucket
-
Bucket constructor for PolygonRenderer
- VectorRenderer
-
VectorRenderer constructor
- VectorRendererManager
-
VectorRendererManager constructor
- MatrixArray
-
System-specific optimal array type
- vec3
-
3 Dimensional Vector
- mat3
-
3x3 Matrix
- mat4
-
4x4 Matrix
- quat4
- AbstractNameResolverer
-
Abstract Wrapper constructor
- init
- Tile constructor
- GeoTiling constructor
- HEALPixTiling
- Tile constructor
- Mesh constructor
- Tile
- TileIndexBuffer TileIndexBuffer
- TilePool constructor
- TileRequest constructor
- TiledVectorRenderable constructor
- TiledVectorRenderer constructor
- AttributionHandler
-
Manage the attributions
- Event
-
A light-weight event object.
- ImageRequest constructor
- Long
-
Long class for only unsigned integers Constructs a 64-bit two's-complement integer, given its low and high 32-bit values as signed integers. See the from* functions below for more convenient ways of constructing Longs.
The internal representation of a long is the two given signed, 32-bit values. We use 32-bit pieces because these are the size of integers on which Javascript performs bit-operations. For operations like addition and multiplication, we split each number into 16-bit pieces, which can easily be multiplied within Javascript's floating-point representation without overflow or change in sign.
In the algorithms below, we frequently reduce the negative case to the positive case by negating the input(s) and then post-processing the result. Note that we must ALWAYS check specially whether those values are MIN_VALUE (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as a positive number, it overflows back into a negative). Not handling this case would often result in infinite recursion.
- Stats
-
Display some rendering statistics in a HTML element
-
GENERAL_WAVELENGTH :
object
-
HIPS_FRAME :
object
-
HIPS_TILE_FORMAT :
object
-
SAMPLING :
object
-
PIXEL_OVERLAY :
object
-
SKY_VAL :
object
-
DATA_PRODUCT_TYPE :
object
-
SUB_TYPE_DATA :
object
-
HIPS_METADATA :
object
-
Hips data model Mandatory, description, isMultiple, default value, distinctvalue, isArray
-
ANIMATION :
object
-
CONTEXT :
object
-
GLOBE :
object
-
LAYER :
object
-
GEOMETRY :
object
-
PROJECTION :
object
-
CRS :
object
-
NAVIGATION :
object
-
SERVICE :
object
-
HANDLER :
object
-
PROVIDER :
object
-
MappingCrsHips2Mizar :
object
-
UTILITY :
object
-
ANIMATION_STATUS :
object
- failCallback()
- handleFeatureCollection(gwLayer, featureCollection)
-
Handles feature collection Recompute geometry from equatorial coordinates to geo for each feature Handle feature services Add gid
- addCustomColormap(name, colors)
-
Create custom colormap with equidistant intervals
- generateColormap()
-
Generate colormap
- sendRequest(geoPick, options)
-
Send request to reverse name resolver service for the given gepoint
- setContext()
-
Set new context
- init(m, configuration)
-
Initialize ImageManagerCore
- hideImage(featureData)
-
Hide image
- showImage(featureData)
-
Show image
- removeImage(featureData)
-
Remove image from renderer
- addImage(featureData)
-
Start download of texture
- init(options)
-
Histogram contructor
- init(options, $dl, $histoElmt, $cutOutElmt)
-
Init ImageProcessingCore
- addPickableLayer(layer)
-
Add pickable layer to the pickableLayers list
- fxyf()
-
Function describing a location on the sphere
- maxPixrad() ⇒
-
Returns the maximum angular distance between a pixel center and its corners.
- nside2order()
-
Static function Convert nside to order (ilog2(nside))
- lonLat2pix(order, lon, lat)
-
Returns pixel index of point on sphere
- getChildren()
-
Create the children of the given pixel
- getPixRes(nside) ⇒
-
calculates angular resolution of the pixel map in arc seconds.
-
serviceRegistryCallback :
function
-
This callback function.
-
toggleContextCallback :
function
-
Callback after the context switches.
-
serviceRegistryCallback :
function
-
This callback function.
-
toggleContextCallback :
function
-
Callback after the context switches.
-
layerCallback :
function
-
This callback allows to transform FeatureCollection from a GeoJson.
-
onreadyCallback :
function
-
Callback when the layer is ready.
-
navigationCallback :
function
-
Callback at the end of animation (when stop method is called).
Mizar is able to create different types of animation on a globe :
- [InertiaAnimation](#module_Animation.InertiaAnimation): Animation simulating inertia for camera navigation
- [InterpolatedAnimation](#module_Animation.InterpolatedAnimation) : Generic animation to interpolate arbitrary values
- [PathAnimation](#module_Animation.PathAnimation) : Animation defined with a path
- [SegmentedAnimation](#module_Animation.SegmentedAnimation) : Animation defined with segments
In addition to the classes, a factory is available to help for creating animation. Once the animation is created, the client can handle it by the use of its interface.
Implements: Animation
Todo
- Describes here and link to the tutos about Animation
- Animation
Factory to create an animation
Kind: static class of Animation
AnimationFactory.create(type, options) ⇒ AbstractAnimation
Factory to create an animation.
Creates an animation based on :
- the animation type [ANIMATION](#ANIMATION),
- the options for the specific animation
Severals animations can be created :
- [InertiaAnimation](#module_Animation.InertiaAnimation)
- [InterpolatedAnimation](#module_Animation.InterpolatedAnimation)
- [PathAnimation](#module_Animation.PathAnimation)
- [SegmentedAnimation](#module_Animation.SegmentedAnimation)
Kind: static method of AnimationFactory
Returns: AbstractAnimation
- - the interface to handle an animation
Throws:
-
RangeError
Type not valid - a valid type is included in the list ANIMATION
See
- InertiaAnimation Animation simulating inertia for camera's navigation
- InterpolatedAnimation Generic animation to interpolate arbitrary values
- PathAnimation Defines an animation based on a path
- SegmentedAnimation Defines an animation based on segments
Param | Type | Description |
---|---|---|
type | ANIMATION |
Type of animation. |
options |
inertia_configuration | interpolated_configuration | path_configuration | segmented_configuration
|
See the options for each animation for further information |
Animation.InertiaAnimation ⇐ AbstractAnimation
Animation simulating inertia for camera's navigation. Inertia is its tendency to retain its velocity: in the absence of external influence, the camera's motion persists in an uniform rectilinear motion.
Kind: static class of Animation
Extends: AbstractAnimation
Param | Type | Description |
---|---|---|
options | inertia_configuration |
Configuration of the Inertia animation |
Kind: instance method of InertiaAnimation
Implements: getRenderContext
Kind: instance method of InertiaAnimation
Implements: getStatus
Kind: instance method of InertiaAnimation
Implements: start
Kind: instance method of InertiaAnimation
Implements: pause
Kind: instance method of InertiaAnimation
Implements: stop
Animation.InterpolatedAnimation ⇐ AbstractAnimation
Generic animation to interpolate arbitrary values The animation will interpolate between startValue and endValue, using the interpolateFunction(t, startValue, endValue) (t [0,1]) The interpolated value is then given to the setFunction(value)
Kind: static class of Animation
Extends: AbstractAnimation
Todo
- Create a tutorial with a simple InterpolatedAnimation on Mars
Param | Type | Description |
---|---|---|
options | interpolated_configuration |
Configuration of the InterpolatedAnimation |
Kind: instance method of InterpolatedAnimation
Implements: getRenderContext
Kind: instance method of InterpolatedAnimation
Implements: getStatus
Kind: instance method of InterpolatedAnimation
Implements: start
Kind: instance method of InterpolatedAnimation
Implements: pause
Kind: instance method of InterpolatedAnimation
Implements: stop
Animation.PathAnimation ⇐ AbstractAnimation
PathAnimation is an animation defined with a path.
Kind: static class of Animation
Extends: AbstractAnimation
Todo
- Create a tutorial with a simple PathAnimation on Mars
Param | Type | Description |
---|---|---|
options | path_configuration |
Configuration of the animation |
Kind: instance method of PathAnimation
Implements: getRenderContext
Kind: instance method of PathAnimation
Implements: getStatus
Kind: instance method of PathAnimation
Implements: start
Kind: instance method of PathAnimation
Implements: pause
Kind: instance method of PathAnimation
Implements: stop
Animation.SegmentedAnimation ⇐ AbstractAnimation
SegmentedAnimation is an animation defined with segments. Each segment has a [start,end] pair of 't' value and a [start,end] pair of values that will be interpolated with the interpolator set on the segment. When the animation runs, a t parameter is mapped to [0,1] according to current time and animation duration. The current segment is then looked up with that 't' value and used to interpolate the animation's current value.
Kind: static class of Animation
Extends: AbstractAnimation
Param | Type | Description |
---|---|---|
options | segmented_configuration |
Configuration of the animation |
Kind: instance method of SegmentedAnimation
Implements: getRenderContext
Kind: instance method of SegmentedAnimation
Implements: getStatus
Kind: instance method of SegmentedAnimation
Implements: start
Kind: instance method of SegmentedAnimation
Implements: pause
Kind: instance method of SegmentedAnimation
Implements: stop
Mizar is able to handle different types of context.
A context is a concept that brings together :
- a webGL [globe](#AbstractGlobe)
- a [coordinate reference system](#AbstractCrs)
- a [navigation](#AbstractNavigation)
[SkyContext](#module_Context.SkyContext) | A context representing a sky | |
[PlanetContext](#module_Context.PlanetContext) | A context representing a planet |
The context is automatically instantiated by the method createContext from Mizar.
In addition to the classes, a factory and a context manager
are availables to help for creating context. Once the context is created, the client can handle it by the use of its
interface.
Implements: Context
-
Context
- .ContextFactory
-
.PlanetContext ⇐
AbstractContext
- new PlanetContext(mizarConfiguration, options)
- ._fillDataProvider(layer, mizarDescription)
- .getTileManager()
- .registerNoStandardDataProvider(type, loadFunc)
- .getContextConfiguration()
- .getMizarConfiguration()
- .getLonLatFromPixel()
- .getPixelFromLonLat()
- .getElevation()
- .getPositionTracker()
- .getElevationTracker()
- .getLayers()
- .getLayerByID()
- .getLayerByName()
- .addLayer()
- .removeLayer()
- .removeAllLayers()
- .addDraw()
- .removeDraw()
- .initTouchNavigation(options)
- .refresh()
- .initCanvas(canvas)
- .iniGlobeEvents(globe)
- .show()
- .showComponents()
- .hideComponents()
- .hide()
- .setComponentVisibility()
- .showAdditionalLayers()
- .hideAdditionalLayers()
- .setBackgroundLayer()
- .setBackgroundLayerByID()
- .getAdditionalLayers()
- .getRenderContext()
- .disbable()
- .enable()
- .setCompassVisible()
- .getMode()
- .setCoordinateSystem()
- .getNavigation()
- .getCoordinateSystem()
- .addAnimation()
- .removeAnimation()
- .render()
- .dispose()
- .destroy()
-
.SkyContext ⇐
AbstractContext
- new SkyContext(mizarConfiguration, options)
- ._fillDataProvider(layer, mizarDescription)
- .getTileManager()
- .registerNoStandardDataProvider(type, loadFunc)
- .getContextConfiguration()
- .getMizarConfiguration()
- .getLonLatFromPixel()
- .getPixelFromLonLat()
- .getElevation()
- .getPositionTracker()
- .getElevationTracker()
- .getLayers()
- .getLayerByID()
- .getLayerByName()
- .addLayer()
- .removeLayer()
- .removeAllLayers()
- .addDraw()
- .removeDraw()
- .initTouchNavigation(options)
- .refresh()
- .initCanvas(canvas)
- .iniGlobeEvents(globe)
- .show()
- .showComponents()
- .hideComponents()
- .hide()
- .setComponentVisibility()
- .showAdditionalLayers()
- .hideAdditionalLayers()
- .setBackgroundLayer()
- .setBackgroundLayerByID()
- .getAdditionalLayers()
- .getRenderContext()
- .disbable()
- .enable()
- .setCompassVisible()
- .getMode()
- .setCoordinateSystem()
- .getNavigation()
- .getCoordinateSystem()
- .addAnimation()
- .removeAnimation()
- .render()
- .dispose()
- .destroy()
Factory to create a context
Kind: static class of Context
ContextFactory.create(type, configuration, options) ⇒ Context
Factory to create a context.
Creates a context based on :
- the context type [CONTEXT](#CONTEXT),
- the global Mizar's configuration,
- the options for the specific context
Kind: static method of ContextFactory
Returns: Context
- - the object to handle an animation
Throws:
-
RangeError
Type not valid - a valid type is included in the list CONTEXT
Param | Type | Description |
---|---|---|
type | CONTEXT |
Type of animation. |
configuration | Object |
see options.configuration for Mizar |
options | Object |
See options.planetContext or options.skyContext configuration for Mizar |
Context.PlanetContext ⇐ AbstractContext
Virtual globe where the camera is outside the globe. When an error happens at the initialisation, a message is displayed
Kind: static class of Context
Extends: AbstractContext
-
.PlanetContext ⇐
AbstractContext
- new PlanetContext(mizarConfiguration, options)
- ._fillDataProvider(layer, mizarDescription)
- .getTileManager()
- .registerNoStandardDataProvider(type, loadFunc)
- .getContextConfiguration()
- .getMizarConfiguration()
- .getLonLatFromPixel()
- .getPixelFromLonLat()
- .getElevation()
- .getPositionTracker()
- .getElevationTracker()
- .getLayers()
- .getLayerByID()
- .getLayerByName()
- .addLayer()
- .removeLayer()
- .removeAllLayers()
- .addDraw()
- .removeDraw()
- .initTouchNavigation(options)
- .refresh()
- .initCanvas(canvas)
- .iniGlobeEvents(globe)
- .show()
- .showComponents()
- .hideComponents()
- .hide()
- .setComponentVisibility()
- .showAdditionalLayers()
- .hideAdditionalLayers()
- .setBackgroundLayer()
- .setBackgroundLayerByID()
- .getAdditionalLayers()
- .getRenderContext()
- .disbable()
- .enable()
- .setCompassVisible()
- .getMode()
- .setCoordinateSystem()
- .getNavigation()
- .getCoordinateSystem()
- .addAnimation()
- .removeAnimation()
- .render()
- .dispose()
- .destroy()
Param | Type | Description |
---|---|---|
mizarConfiguration | configuration |
mizar configuration |
options | planetContext |
planet context configuration |
Fill data-provider-type layer by features coming from data object
Kind: instance method of PlanetContext
Access: protected
Param | Type | Description |
---|---|---|
layer | Layer |
layer in which data should be added. |
mizarDescription | Object |
See the base properties configuration and a specific layer for specific properties |
Kind: instance method of PlanetContext
Implements: getTileManager
Registers no standard data provider and call them in the addLayer method.
Kind: instance method of PlanetContext
Param | Type | Description |
---|---|---|
type | string |
data provider key |
loadFunc | function |
Function |
Example (Registers planets on the sky)
var planetProvider = ProviderFactory.create(Constants.PROVIDER.Planet);
this.registerNoStandardDataProvider("planets", planetProvider.loadFiles);
Kind: instance method of PlanetContext
Implements: getContextConfiguration
Kind: instance method of PlanetContext
Implements: getMizarConfiguration
Kind: instance method of PlanetContext
Implements: getLonLatFromPixel
Kind: instance method of PlanetContext
Implements: getPixelFromLonLat
Kind: instance method of PlanetContext
Implements: getElevation
Kind: instance method of PlanetContext
Implements: getPositionTracker
Kind: instance method of PlanetContext
Implements: getElevationTracker
Kind: instance method of PlanetContext
Implements: getLayers
Kind: instance method of PlanetContext
Implements: getLayerByID
Kind: instance method of PlanetContext
Implements: getLayerByName
Kind: instance method of PlanetContext
Implements: addLayer
Kind: instance method of PlanetContext
Implements: removeLayer
Kind: instance method of PlanetContext
Implements: removeAllLayers
Kind: instance method of PlanetContext
Implements: addDraw
Kind: instance method of PlanetContext
Implements: removeDraw
Initializes the touch navigation handler.
Kind: instance method of PlanetContext
Param | Type | Description |
---|---|---|
options | Object |
to add touch navigation |
options.navigation | Navigation |
Navigation object |
Kind: instance method of PlanetContext
Implements: refresh
Initialization of the canvas element. When no canvas element is provided, sets to full screen.
Kind: instance method of PlanetContext
Param | Type | Description |
---|---|---|
canvas | Object |
Canvas object |
canvas.parentElement | Object |
HTML object |
Initializes the planet or sky events.
Kind: instance method of PlanetContext
Param | Type | Description |
---|---|---|
globe | AbstractGlobe |
Planet or Sky object |
Kind: instance method of PlanetContext
Implements: show
Kind: instance method of PlanetContext
Implements: showComponents
Kind: instance method of PlanetContext
Implements: hideComponents
Kind: instance method of PlanetContext
Implements: hide
Kind: instance method of PlanetContext
Implements: setComponentVisibility
Kind: instance method of PlanetContext
Implements: showAdditionalLayers
Kind: instance method of PlanetContext
Implements: hideAdditionalLayers
Kind: instance method of PlanetContext
Implements: setBackgroundLayer
Kind: instance method of PlanetContext
Implements: setBackgroundLayerByID
Kind: instance method of PlanetContext
Implements: getAdditionalLayers
Kind: instance method of PlanetContext
Implements: getRenderContext
Kind: instance abstract method of PlanetContext
Kind: instance abstract method of PlanetContext
Implements: enable
Kind: instance abstract method of PlanetContext
Implements: setCompassVisible
Kind: instance method of PlanetContext
Implements: getMode
Kind: instance abstract method of PlanetContext
Implements: setCoordinateSystem
Kind: instance method of PlanetContext
Implements: getNavigation
Kind: instance method of PlanetContext
Implements: getCoordinateSystem
Kind: instance method of PlanetContext
Implements: addAnimation
Kind: instance method of PlanetContext
Implements: removeAnimation
Kind: instance method of PlanetContext
Implements: Context#render
Kind: instance method of PlanetContext
Implements: dispose
Kind: instance abstract method of PlanetContext
Implements: destroy
Context.SkyContext ⇐ AbstractContext
Virtual globe where the camera is inside the globe.
When an error happens at the initialisation, a message is displayed
Kind: static class of Context
Extends: AbstractContext
-
.SkyContext ⇐
AbstractContext
- new SkyContext(mizarConfiguration, options)
- ._fillDataProvider(layer, mizarDescription)
- .getTileManager()
- .registerNoStandardDataProvider(type, loadFunc)
- .getContextConfiguration()
- .getMizarConfiguration()
- .getLonLatFromPixel()
- .getPixelFromLonLat()
- .getElevation()
- .getPositionTracker()
- .getElevationTracker()
- .getLayers()
- .getLayerByID()
- .getLayerByName()
- .addLayer()
- .removeLayer()
- .removeAllLayers()
- .addDraw()
- .removeDraw()
- .initTouchNavigation(options)
- .refresh()
- .initCanvas(canvas)
- .iniGlobeEvents(globe)
- .show()
- .showComponents()
- .hideComponents()
- .hide()
- .setComponentVisibility()
- .showAdditionalLayers()
- .hideAdditionalLayers()
- .setBackgroundLayer()
- .setBackgroundLayerByID()
- .getAdditionalLayers()
- .getRenderContext()
- .disbable()
- .enable()
- .setCompassVisible()
- .getMode()
- .setCoordinateSystem()
- .getNavigation()
- .getCoordinateSystem()
- .addAnimation()
- .removeAnimation()
- .render()
- .dispose()
- .destroy()
Param | Type | Description |
---|---|---|
mizarConfiguration | configuration |
mizar configuration |
options | skyContext |
skyContext configuration |
Fill data-provider-type layer by features coming from data object
Kind: instance method of SkyContext
Access: protected
Param | Type | Description |
---|---|---|
layer | Layer |
layer in which data should be added. |
mizarDescription | Object |
See the base properties configuration and a specific layer for specific properties |
Kind: instance method of SkyContext
Implements: getTileManager
Registers no standard data provider and call them in the addLayer method.
Kind: instance method of SkyContext
Param | Type | Description |
---|---|---|
type | string |
data provider key |
loadFunc | function |
Function |
Example (Registers planets on the sky)
var planetProvider = ProviderFactory.create(Constants.PROVIDER.Planet);
this.registerNoStandardDataProvider("planets", planetProvider.loadFiles);
Kind: instance method of SkyContext
Implements: getContextConfiguration
Kind: instance method of SkyContext
Implements: getMizarConfiguration
Kind: instance method of SkyContext
Implements: getLonLatFromPixel
Kind: instance method of SkyContext
Implements: getPixelFromLonLat
Kind: instance method of SkyContext
Implements: getElevation
Kind: instance method of SkyContext
Implements: getPositionTracker
Kind: instance method of SkyContext
Implements: getElevationTracker
Kind: instance method of SkyContext
Implements: getLayers
Kind: instance method of SkyContext
Implements: getLayerByID
Kind: instance method of SkyContext
Implements: getLayerByName
Kind: instance method of SkyContext
Implements: addLayer
Kind: instance method of SkyContext
Implements: removeLayer
Kind: instance method of SkyContext
Implements: removeAllLayers
Kind: instance method of SkyContext
Implements: addDraw
Kind: instance method of SkyContext
Implements: removeDraw
Initializes the touch navigation handler.
Kind: instance method of SkyContext
Param | Type | Description |
---|---|---|
options | Object |
to add touch navigation |
options.navigation | Navigation |
Navigation object |
Kind: instance method of SkyContext
Implements: refresh
Initialization of the canvas element. When no canvas element is provided, sets to full screen.
Kind: instance method of SkyContext
Param | Type | Description |
---|---|---|
canvas | Object |
Canvas object |
canvas.parentElement | Object |
HTML object |
Initializes the planet or sky events.
Kind: instance method of SkyContext
Param | Type | Description |
---|---|---|
globe | AbstractGlobe |
Planet or Sky object |
Kind: instance method of SkyContext
Implements: show
Kind: instance method of SkyContext
Implements: showComponents
Kind: instance method of SkyContext
Implements: hideComponents
Kind: instance method of SkyContext
Implements: hide
Kind: instance method of SkyContext
Implements: setComponentVisibility
Kind: instance method of SkyContext
Implements: showAdditionalLayers
Kind: instance method of SkyContext
Implements: hideAdditionalLayers
Kind: instance method of SkyContext
Implements: setBackgroundLayer
Kind: instance method of SkyContext
Implements: setBackgroundLayerByID
Kind: instance method of SkyContext
Implements: getAdditionalLayers
Kind: instance method of SkyContext
Implements: getRenderContext
Kind: instance abstract method of SkyContext
Kind: instance abstract method of SkyContext
Implements: enable
Kind: instance abstract method of SkyContext
Implements: setCompassVisible
Kind: instance method of SkyContext
Implements: getMode
Kind: instance abstract method of SkyContext
Implements: setCoordinateSystem
Kind: instance method of SkyContext
Implements: getNavigation
Kind: instance method of SkyContext
Implements: getCoordinateSystem
Kind: instance method of SkyContext
Implements: addAnimation
Kind: instance method of SkyContext
Implements: removeAnimation
Kind: instance method of SkyContext
Implements: Context#render
Kind: instance method of SkyContext
Implements: dispose
Kind: instance abstract method of SkyContext
Implements: destroy
A coordinate reference system is a coordinate system that is related to an object by a geodetic datum. Mizar currently supports the following coordinates reference systems :
[EquatorialCrs](#module_Crs.EquatorialCrs) | Provides an equatorial coordinate reference system | |
[GalacticCrs](#module_Crs.GalacticCrs) | Provides a galactic coordinate reference system | |
[Mars2000Crs](#module_Crs.Mars2000Crs) | Provides a coordinate reference system base on the Mars geoide | |
[WGS84Crs](#module_Crs.WGS84Crs) | Provides a coordinate reference system base on the Earth geoide | |
[ProjectedCrs](#module_Crs.ProjectedCrs) | Provides a projected coordinate reference system on a map |
In addition to the classes, a [factory](#module_Crs.CoordinateSystemFactory) is available to help for creating coordinate reference system. Once the coordinate reference system is created, the client can handle it by the use of its [interface](#Crs).
Implements: Crs
-
Crs
- .CoordinateSystemFactory
-
.EquatorialCrs ⇐
AbstractCrs
- new EquatorialCrs(options)
- .isFlat()
- .getVerticalAt3D()
- .fromGeoTo3D()
- .from3DToGeo()
- .getLocalTransform()
- .getLHVTransform()
- .getSideVector()
- .getFrontVector()
- .getUpVector()
- .formatCoordinates()
- .getGeoide()
- .getGeoideName()
- .getType()
- .getElevation()
- .getWorldFrom3D()
- .get3DFromWorld()
- .get3DFromWorldInCrs()
- .getSexagesimalFromDeg()
- .getDecimalDegFromSexagesimal()
- .convert()
- .fromDegreesToHMS()
- .fromDegreesToDMS()
- ._setupPosBeforeTrans()
- ._setupPosAfterTrans()
- .getGeoBound()
-
.GalacticCrs ⇐
AbstractCrs
- new GalacticCrs(options)
- .isFlat()
- .getVerticalAt3D()
- .fromGeoTo3D()
- .from3DToGeo()
- .getLocalTransform()
- .getLHVTransform()
- .getSideVector()
- .getFrontVector()
- .getUpVector()
- .formatCoordinates()
- .getGeoide()
- .getGeoideName()
- .getType()
- .getElevation()
- .getWorldFrom3D()
- .get3DFromWorld()
- .get3DFromWorldInCrs()
- .getSexagesimalFromDeg()
- .getDecimalDegFromSexagesimal()
- .convert()
- .fromDegreesToHMS()
- .fromDegreesToDMS()
- ._setupPosBeforeTrans()
- ._setupPosAfterTrans()
- .getGeoBound()
- .Geoide
-
.Mars2000Crs ⇐
AbstractCrs
- new Mars2000Crs(options)
- .isFlat()
- .getVerticalAt3D()
- .fromGeoTo3D()
- .from3DToGeo()
- .getLocalTransform()
- .getLHVTransform()
- .getSideVector()
- .getFrontVector()
- .getUpVector()
- .formatCoordinates()
- .getGeoide()
- .getGeoideName()
- .getType()
- .getElevation()
- .getWorldFrom3D()
- .get3DFromWorld()
- .get3DFromWorldInCrs()
- .getSexagesimalFromDeg()
- .getDecimalDegFromSexagesimal()
- .convert()
- .fromDegreesToHMS()
- .fromDegreesToDMS()
- ._setupPosBeforeTrans()
- ._setupPosAfterTrans()
- .getGeoBound()
-
.ProjectedCrs ⇐
AbstractCrs
- new ProjectedCrs(cs, options)
- .isFlat()
- .getVerticalAt3D()
- .fromGeoTo3D()
- .from3DToGeo()
- .getLocalTransform()
- .getLHVTransform()
- .getSideVector()
- .getFrontVector()
- .getUpVector()
- .formatCoordinates()
- .getGeoide()
- .getGeoideName()
- .getType()
- .getElevation()
- .getWorldFrom3D()
- .get3DFromWorld()
- .get3DFromWorldInCrs()
- .getSexagesimalFromDeg()
- .getDecimalDegFromSexagesimal()
- .convert()
- .fromDegreesToHMS()
- .fromDegreesToDMS()
- ._setupPosBeforeTrans()
- ._setupPosAfterTrans()
- .getGeoBound()
-
.WGS84Crs ⇐
AbstractCrs
- new WGS84Crs(options)
- .isFlat()
- .getVerticalAt3D()
- .fromGeoTo3D()
- .from3DToGeo()
- .getLocalTransform()
- .getLHVTransform()
- .getSideVector()
- .getFrontVector()
- .getUpVector()
- .formatCoordinates()
- .getGeoide()
- .getGeoideName()
- .getType()
- .getElevation()
- .getWorldFrom3D()
- .get3DFromWorld()
- .get3DFromWorldInCrs()
- .getSexagesimalFromDeg()
- .getDecimalDegFromSexagesimal()
- .convert()
- .fromDegreesToHMS()
- .fromDegreesToDMS()
- ._setupPosBeforeTrans()
- ._setupPosAfterTrans()
- .getGeoBound()
Factory to create a coordinate reference system
Kind: static class of Crs
CoordinateSystemFactory.create(options) ⇒ Crs
Factory for CRS.
Kind: static method of CoordinateSystemFactory
Returns: Crs
- Object to handle CRS
Throws:
-
ReferenceError
Will throw an error when options.geoideName is not defined -
RangeError
Will throw an error when options.geoideName is not part of CRS -
RangeError
Will throw an error when options.projectionName is not part of PROJECTION
Param | Type | Description |
---|---|---|
options | crsFactory |
Options to create a coordinate reference system |
Crs.EquatorialCrs ⇐ AbstractCrs
A system is a system in which a celestial object's position on the celestial
sphere is described in terms of its declination and right ascension, measured with respect to the celestial equator.
Declination and right ascension correspond directly to geographic latitude and longitude as projected outward onto
the celestial sphere. Declination is measured in degrees north or south of the celestial equator but right ascension
is measured in hours, minutes, and seconds eastward along the celestial equator from the point of the vernal equinox.
Because the celestial equator moves among the fixed stars with the precession of the Earth's poles, an object's
declination and right ascension change gradually over time, and coordinates in the equatorial system must be
specified for particular years.
source : equatorial coordinate system. Dictionary.com. The American Heritage® Science Dictionary.
Houghton Mifflin Company. http://www.dictionary.com/browse/equatorial-coordinate-system (accessed: March 5, 2017).
EquatorialCrs is initialized with the following parameters :
- geoideName = Equatorial
- radius = 10.0
- realPlanetRadius = 1.0
- type = Sky
- geoBound = new GeoBound(0, -90, 360, 90)
Kind: static class of Crs
Extends: AbstractCrs
See: Wikipedia
-
.EquatorialCrs ⇐
AbstractCrs
- new EquatorialCrs(options)
- .isFlat()
- .getVerticalAt3D()
- .fromGeoTo3D()
- .from3DToGeo()
- .getLocalTransform()
- .getLHVTransform()
- .getSideVector()
- .getFrontVector()
- .getUpVector()
- .formatCoordinates()
- .getGeoide()
- .getGeoideName()
- .getType()
- .getElevation()
- .getWorldFrom3D()
- .get3DFromWorld()
- .get3DFromWorldInCrs()
- .getSexagesimalFromDeg()
- .getDecimalDegFromSexagesimal()
- .convert()
- .fromDegreesToHMS()
- .fromDegreesToDMS()
- ._setupPosBeforeTrans()
- ._setupPosAfterTrans()
- .getGeoBound()
Param | Type | Description |
---|---|---|
options | Object |
No option to give |
Kind: instance method of EquatorialCrs
Implements: isFlat
Kind: instance method of EquatorialCrs
Implements: getVerticalAt3D
Kind: instance method of EquatorialCrs
Implements: fromGeoTo3D
Kind: instance method of EquatorialCrs
Implements: from3DToGeo
Kind: instance method of EquatorialCrs
Implements: getLocalTransform
Kind: instance method of EquatorialCrs
Implements: getLHVTransform
Kind: instance method of EquatorialCrs
Implements: getSideVector
Kind: instance method of EquatorialCrs
Implements: getFrontVector
Kind: instance method of EquatorialCrs
Implements: getUpVector
Kind: instance abstract method of EquatorialCrs
Implements: formatCoordinates
Kind: instance method of EquatorialCrs
Implements: getGeoide
Kind: instance method of EquatorialCrs
Implements: getGeoideName
Kind: instance method of EquatorialCrs
Implements: getType
Kind: instance method of EquatorialCrs
Implements: getElevation
Kind: instance method of EquatorialCrs
Implements: getWorldFrom3D
Kind: instance method of EquatorialCrs
Implements: get3DFromWorld
Kind: instance method of EquatorialCrs
Implements: get3DFromWorldInCrs
Kind: instance method of EquatorialCrs
Implements: getSexagesimalFromDeg
Kind: instance method of EquatorialCrs
Implements: getDecimalDegFromSexagesimal
Kind: instance method of EquatorialCrs
Implements: convert
Kind: instance method of EquatorialCrs
Implements: fromDegreesToHMS
Kind: instance method of EquatorialCrs
Implements: fromDegreesToDMS
Kind: instance method of EquatorialCrs
Implements: _setupPosBeforeTrans
Bastract:
Kind: instance method of EquatorialCrs
Implements: _setupPosAfterTrans
Bastract:
Kind: instance method of EquatorialCrs
Implements: getGeoBound
Crs.GalacticCrs ⇐ AbstractCrs
A system in which a celestial object's position on the celestial
sphere is described in relation to the structure of the Milky Way galaxy. An object's galactic longitude is measured
along the galactic equator, a great circle on the celestial sphere that follows the band of the Milky Way.
The galactic equator, also called the galactic circle, is inclined at an angle of approximately 62° to the
celestial equator; distances are measured along it beginning at a point in the constellation Sagittarius lying in
the direction of the Milky Way's nucleus. The galactic poles are the two points where a perpendicular line through
the middle of the plane of the galactic equator intersect the celestial sphere. An object's galactic latitude is
measured in degrees north or south of the galactic equator toward the galactic poles.
source : galactic coordinate system. Dictionary.com. The American Heritage® Science Dictionary.
Houghton Mifflin Company. http://www.dictionary.com/browse/galactic-coordinate-system (accessed: March 5, 2017).
GalacticCrs is initialized with the following parameters :
- geoideName = Galactic
- radius = 10.0
- realPlanetRadius = 1.0
- type = Sky
- geoBound = new GeoBound(0, -90, 360, 90)
Kind: static class of Crs
Extends: AbstractCrs
See: Wikipedia
-
.GalacticCrs ⇐
AbstractCrs
- new GalacticCrs(options)
- .isFlat()
- .getVerticalAt3D()
- .fromGeoTo3D()
- .from3DToGeo()
- .getLocalTransform()
- .getLHVTransform()
- .getSideVector()
- .getFrontVector()
- .getUpVector()
- .formatCoordinates()
- .getGeoide()
- .getGeoideName()
- .getType()
- .getElevation()
- .getWorldFrom3D()
- .get3DFromWorld()
- .get3DFromWorldInCrs()
- .getSexagesimalFromDeg()
- .getDecimalDegFromSexagesimal()
- .convert()
- .fromDegreesToHMS()
- .fromDegreesToDMS()
- ._setupPosBeforeTrans()
- ._setupPosAfterTrans()
- .getGeoBound()
Param | Description |
---|---|
options | no option to give. |
Kind: instance method of GalacticCrs
Implements: isFlat
Kind: instance method of GalacticCrs
Implements: getVerticalAt3D
Kind: instance method of GalacticCrs
Implements: fromGeoTo3D
Kind: instance method of GalacticCrs
Implements: from3DToGeo
Kind: instance method of GalacticCrs
Implements: getLocalTransform
Kind: instance method of GalacticCrs
Implements: getLHVTransform
Kind: instance method of GalacticCrs
Implements: getSideVector
Kind: instance method of GalacticCrs
Implements: getFrontVector
Kind: instance method of GalacticCrs
Implements: getUpVector
Kind: instance abstract method of GalacticCrs
Implements: formatCoordinates
Kind: instance method of GalacticCrs
Implements: getGeoide
Kind: instance method of GalacticCrs
Implements: getGeoideName
Kind: instance method of GalacticCrs
Implements: getType
Kind: instance method of GalacticCrs
Implements: getElevation
Kind: instance method of GalacticCrs
Implements: getWorldFrom3D
Kind: instance method of GalacticCrs
Implements: get3DFromWorld
Kind: instance method of GalacticCrs
Implements: get3DFromWorldInCrs
Kind: instance method of GalacticCrs
Implements: getSexagesimalFromDeg
Kind: instance method of GalacticCrs
Implements: getDecimalDegFromSexagesimal
Kind: instance method of GalacticCrs
Implements: convert
Kind: instance method of GalacticCrs
Implements: fromDegreesToHMS
Kind: instance method of GalacticCrs
Implements: fromDegreesToDMS
Kind: instance method of GalacticCrs
Implements: _setupPosBeforeTrans
Bastract:
Kind: instance method of GalacticCrs
Implements: _setupPosAfterTrans
Bastract:
Kind: instance method of GalacticCrs
Implements: getGeoBound
Geodetic datum is a set of parameters that define the position of the origin, the scale, and the orientation of a coordinate system in relationship with the planet.
Kind: static class of Crs
Todo
- add flattening parameter
Throws:
-
ReferenceError
Will throw an error when options.realPlanetRadius or options.radius are not defined
Param | Type | Description |
---|---|---|
options | geoide_configuration |
Options for Geoide |
Crs.Mars2000Crs ⇐ AbstractCrs
Mars 2000 coordinate Reference System is a coordinate system using the Mars geoide and in which the
planetographic longitude increases to the east. The planetographic latitude is measured in degrees north or south
of the Mars equator.
Mars2000Crs is initialized with the following parameters :
- geoideName = IAU2000:49901
- radius = 10.0
- realPlanetRadius = 1
- type = Planet
- geoBound = new GeoBound(-180, -90, 180, 90)
Kind: static class of Crs
Extends: AbstractCrs
-
.Mars2000Crs ⇐
AbstractCrs
- new Mars2000Crs(options)
- .isFlat()
- .getVerticalAt3D()
- .fromGeoTo3D()
- .from3DToGeo()
- .getLocalTransform()
- .getLHVTransform()
- .getSideVector()
- .getFrontVector()
- .getUpVector()
- .formatCoordinates()
- .getGeoide()
- .getGeoideName()
- .getType()
- .getElevation()
- .getWorldFrom3D()
- .get3DFromWorld()
- .get3DFromWorldInCrs()
- .getSexagesimalFromDeg()
- .getDecimalDegFromSexagesimal()
- .convert()
- .fromDegreesToHMS()
- .fromDegreesToDMS()
- ._setupPosBeforeTrans()
- ._setupPosAfterTrans()
- .getGeoBound()
Param | Description |
---|---|
options | No option to give. |
Kind: instance method of Mars2000Crs
Implements: isFlat
Kind: instance method of Mars2000Crs
Implements: getVerticalAt3D
Kind: instance method of Mars2000Crs
Implements: fromGeoTo3D
Kind: instance method of Mars2000Crs
Implements: from3DToGeo
Kind: instance method of Mars2000Crs
Implements: getLocalTransform
Kind: instance method of Mars2000Crs
Implements: getLHVTransform
Kind: instance method of Mars2000Crs
Implements: getSideVector
Kind: instance method of Mars2000Crs
Implements: getFrontVector
Kind: instance method of Mars2000Crs
Implements: getUpVector
Kind: instance abstract method of Mars2000Crs
Implements: formatCoordinates
Kind: instance method of Mars2000Crs
Implements: getGeoide
Kind: instance method of Mars2000Crs
Implements: getGeoideName
Kind: instance method of Mars2000Crs
Implements: getType
Kind: instance method of Mars2000Crs
Implements: getElevation
Kind: instance method of Mars2000Crs
Implements: getWorldFrom3D
Kind: instance method of Mars2000Crs
Implements: get3DFromWorld
Kind: instance method of Mars2000Crs
Implements: get3DFromWorldInCrs
Kind: instance method of Mars2000Crs
Implements: getSexagesimalFromDeg
Kind: instance method of Mars2000Crs
Implements: getDecimalDegFromSexagesimal
Kind: instance method of Mars2000Crs
Implements: convert
Kind: instance method of Mars2000Crs
Implements: fromDegreesToHMS
Kind: instance method of Mars2000Crs
Implements: fromDegreesToDMS
Kind: instance method of Mars2000Crs
Implements: _setupPosBeforeTrans
Bastract:
Kind: instance method of Mars2000Crs
Implements: _setupPosAfterTrans
Bastract:
Kind: instance method of Mars2000Crs
Implements: getGeoBound
Crs.ProjectedCrs ⇐ AbstractCrs
A coordinate reference system projected on a 2D map.
Kind: static class of Crs
Extends: AbstractCrs
-
.ProjectedCrs ⇐
AbstractCrs
- new ProjectedCrs(cs, options)
- .isFlat()
- .getVerticalAt3D()
- .fromGeoTo3D()
- .from3DToGeo()
- .getLocalTransform()
- .getLHVTransform()
- .getSideVector()
- .getFrontVector()
- .getUpVector()
- .formatCoordinates()
- .getGeoide()
- .getGeoideName()
- .getType()
- .getElevation()
- .getWorldFrom3D()
- .get3DFromWorld()
- .get3DFromWorldInCrs()
- .getSexagesimalFromDeg()
- .getDecimalDegFromSexagesimal()
- .convert()
- .fromDegreesToHMS()
- .fromDegreesToDMS()
- ._setupPosBeforeTrans()
- ._setupPosAfterTrans()
- .getGeoBound()
Throws:
-
ReferenceError
Will throw when options.projectionName is not defined -
RangeError
Will throw when options.projectionName is not part of PROJECTION
Param | Type | Description |
---|---|---|
cs | Crs |
coordinate reference system |
options |
configuration | azimuth_configuration | mercator_configuration
|
projection configuration |
Kind: instance method of ProjectedCrs
Implements: isFlat
Kind: instance method of ProjectedCrs
Implements: getVerticalAt3D
Kind: instance method of ProjectedCrs
Implements: fromGeoTo3D
Kind: instance method of ProjectedCrs
Implements: from3DToGeo
Kind: instance method of ProjectedCrs
Implements: getLocalTransform
Kind: instance method of ProjectedCrs
Implements: getLHVTransform
Kind: instance method of ProjectedCrs
Implements: getSideVector
Kind: instance method of ProjectedCrs
Implements: getFrontVector
Kind: instance method of ProjectedCrs
Implements: getUpVector
Kind: instance abstract method of ProjectedCrs
Implements: formatCoordinates
Kind: instance method of ProjectedCrs
Implements: getGeoide
Kind: instance method of ProjectedCrs
Implements: getGeoideName
Kind: instance method of ProjectedCrs
Implements: getType
Kind: instance method of ProjectedCrs
Implements: getElevation
Kind: instance method of ProjectedCrs
Implements: getWorldFrom3D
Kind: instance method of ProjectedCrs
Implements: get3DFromWorld
Kind: instance method of ProjectedCrs
Implements: get3DFromWorldInCrs
Kind: instance method of ProjectedCrs
Implements: getSexagesimalFromDeg
Kind: instance method of ProjectedCrs
Implements: getDecimalDegFromSexagesimal
Kind: instance method of ProjectedCrs
Implements: convert
Kind: instance method of ProjectedCrs
Implements: fromDegreesToHMS
Kind: instance method of ProjectedCrs
Implements: fromDegreesToDMS
Kind: instance method of ProjectedCrs
Implements: _setupPosBeforeTrans
Bastract:
Kind: instance method of ProjectedCrs
Implements: _setupPosAfterTrans
Bastract:
Kind: instance method of ProjectedCrs
Implements: getGeoBound
Crs.WGS84Crs ⇐ AbstractCrs
WGS84 coordinate Reference System is a coordinate system using the Earth geoide and in which the
geographic longitude increases to the east. The geographic latitude is measured in degrees north or south
of the Earth equator.
WGS84Crs is initialized with the following parameters :
- geoideName = EPSG:4326
- radius = 1
- realPlanetRadius = 6378137 meters
- type = Planet
- geoBound = new GeoBound(-180, -90, 180, 90)
Kind: static class of Crs
Extends: AbstractCrs
-
.WGS84Crs ⇐
AbstractCrs
- new WGS84Crs(options)
- .isFlat()
- .getVerticalAt3D()
- .fromGeoTo3D()
- .from3DToGeo()
- .getLocalTransform()
- .getLHVTransform()
- .getSideVector()
- .getFrontVector()
- .getUpVector()
- .formatCoordinates()
- .getGeoide()
- .getGeoideName()
- .getType()
- .getElevation()
- .getWorldFrom3D()
- .get3DFromWorld()
- .get3DFromWorldInCrs()
- .getSexagesimalFromDeg()
- .getDecimalDegFromSexagesimal()
- .convert()
- .fromDegreesToHMS()
- .fromDegreesToDMS()
- ._setupPosBeforeTrans()
- ._setupPosAfterTrans()
- .getGeoBound()
Param | Description |
---|---|
options | No option to give. |
Kind: instance method of WGS84Crs
Implements: isFlat
Kind: instance method of WGS84Crs
Implements: getVerticalAt3D
Kind: instance method of WGS84Crs
Implements: fromGeoTo3D
Kind: instance method of WGS84Crs
Implements: from3DToGeo
Kind: instance method of WGS84Crs
Implements: getLocalTransform
Kind: instance method of WGS84Crs
Implements: getLHVTransform
Kind: instance method of WGS84Crs
Implements: getSideVector
Kind: instance method of WGS84Crs
Implements: getFrontVector
Kind: instance method of WGS84Crs
Implements: getUpVector
Kind: instance abstract method of WGS84Crs
Implements: formatCoordinates
Kind: instance method of WGS84Crs
Implements: getGeoide
Kind: instance method of WGS84Crs
Implements: getGeoideName
Kind: instance method of WGS84Crs
Implements: getType
Kind: instance method of WGS84Crs
Implements: getElevation
Kind: instance method of WGS84Crs
Implements: getWorldFrom3D
Kind: instance method of WGS84Crs
Implements: get3DFromWorld
Kind: instance method of WGS84Crs
Implements: get3DFromWorldInCrs
Kind: instance method of WGS84Crs
Implements: getSexagesimalFromDeg
Kind: instance method of WGS84Crs
Implements: getDecimalDegFromSexagesimal
Kind: instance method of WGS84Crs
Implements: convert
Kind: instance method of WGS84Crs
Implements: fromDegreesToHMS
Kind: instance method of WGS84Crs
Implements: fromDegreesToDMS
Kind: instance method of WGS84Crs
Implements: _setupPosBeforeTrans
Bastract:
Kind: instance method of WGS84Crs
Implements: _setupPosAfterTrans
Bastract:
Kind: instance method of WGS84Crs
Implements: getGeoBound
Provides classes for handling a globe.
The different possible globes in MIZAR are :
- a sky
- a planet
A sky is a globe where the camera is located in it whereas the planet is a globe where the camera
is located outside.
In addition to the classes, a [factory](#module_Globe.GlobeFactory) is available to help for creating globe.
Once the globe is created, the client can handle it by the use of its [interface](#Globe).
Implements: Globe
-
Globe
- .GlobeFactory
-
.Planet ⇐
AbstractGlobe
- new Planet(options)
- .getType()
- .isSky()
- .dispose()
- .destroy()
- .refresh()
- .setBaseImagery()
- .getBaseElevation()
- .addLayer()
- .removeLayer()
- .addAnimation()
- .removeAnimation()
- .getElevation()
- .getViewportGeoBound()
- .getLonLatFromPixel()
- .getPixelFromLonLat()
- .render()
- .setCoordinateSystem()
- .getCoordinateSystem()
- .getRenderStats()
- .getRenderContext()
- .setRenderContext()
- .getTileManager()
- .isEnabled()
-
.Sky ⇐
AbstractGlobe
- new Sky(options)
- .getType()
- .isSky()
- .dispose()
- .destroy()
- .refresh()
- .setBaseImagery()
- .getBaseElevation()
- .addLayer()
- .removeLayer()
- .addAnimation()
- .removeAnimation()
- .getElevation()
- .getViewportGeoBound()
- .getLonLatFromPixel()
- .getPixelFromLonLat()
- .render()
- .setCoordinateSystem()
- .getCoordinateSystem()
- .getRenderStats()
- .getRenderContext()
- .setRenderContext()
- .getTileManager()
- .isEnabled()
Factory to create a globe.
Kind: static class of Globe
GlobeFactory.create(type, options) ⇒ Globe
Creates a specific globe based on its type (e.g sky, planet).
Kind: static method of GlobeFactory
Returns: Globe
- a globe
Throws:
-
RangeError
Will throw an error when the type is not part of GLOBE
See
Param | Type | Description |
---|---|---|
type | GLOBE |
the type of globe |
options | configuration |
options to configure a globe |
Globe.Planet ⇐ AbstractGlobe
Create a virtual planet in a HTML canvas element with its own coordinate reference system.
Kind: static class of Globe
Extends: AbstractGlobe
-
.Planet ⇐
AbstractGlobe
- new Planet(options)
- .getType()
- .isSky()
- .dispose()
- .destroy()
- .refresh()
- .setBaseImagery()
- .getBaseElevation()
- .addLayer()
- .removeLayer()
- .addAnimation()
- .removeAnimation()
- .getElevation()
- .getViewportGeoBound()
- .getLonLatFromPixel()
- .getPixelFromLonLat()
- .render()
- .setCoordinateSystem()
- .getCoordinateSystem()
- .getRenderStats()
- .getRenderContext()
- .setRenderContext()
- .getTileManager()
- .isEnabled()
Param | Type | Description |
---|---|---|
options | configuration |
Planet configuration |
Kind: instance method of Planet
Implements: getType
Kind: instance method of Planet
Implements: isSky
Kind: instance method of Planet
Implements: dispose
Kind: instance method of Planet
Implements: destroy
Kind: instance method of Planet
Implements: refresh
Kind: instance abstract method of Planet
Implements: setBaseImagery
Kind: instance abstract method of Planet
Implements: getBaseElevation
Kind: instance method of Planet
Implements: addLayer
Kind: instance method of Planet
Implements: removeLayer
Kind: instance method of Planet
Implements: addAnimation
Kind: instance method of Planet
Implements: removeAnimation
Kind: instance abstract method of Planet
Implements: getElevation
Kind: instance method of Planet
Implements: getViewportGeoBound
Kind: instance method of Planet
Implements: getLonLatFromPixel
Kind: instance method of Planet
Implements: getPixelFromLonLat
Kind: instance abstract method of Planet
Implements: Globe#render
Overrides: render
Access: protected
Kind: instance method of Planet
Implements: setCoordinateSystem
Kind: instance method of Planet
Implements: getCoordinateSystem
Kind: instance method of Planet
Implements: getRenderStats
Kind: instance method of Planet
Implements: getRenderContext
Kind: instance method of Planet
Implements: setRenderContext
Kind: instance method of Planet
Implements: getTileManager
Kind: instance method of Planet
Implements: isEnabled
Globe.Sky ⇐ AbstractGlobe
Create a virtual sky in a HTML canvas element with its own coordinate reference system.
The sky handles two different grids in the same time in order to display both the galactic and equatorial rasters.
Kind: static class of Globe
Extends: AbstractGlobe
-
.Sky ⇐
AbstractGlobe
- new Sky(options)
- .getType()
- .isSky()
- .dispose()
- .destroy()
- .refresh()
- .setBaseImagery()
- .getBaseElevation()
- .addLayer()
- .removeLayer()
- .addAnimation()
- .removeAnimation()
- .getElevation()
- .getViewportGeoBound()
- .getLonLatFromPixel()
- .getPixelFromLonLat()
- .render()
- .setCoordinateSystem()
- .getCoordinateSystem()
- .getRenderStats()
- .getRenderContext()
- .setRenderContext()
- .getTileManager()
- .isEnabled()
Param | Type | Description |
---|---|---|
options | configuration |
Sky configuration |
Kind: instance method of Sky
Implements: getType
Kind: instance method of Sky
Implements: isSky
Kind: instance method of Sky
Implements: dispose
Kind: instance method of Sky
Implements: destroy
Kind: instance method of Sky
Implements: refresh
Kind: instance abstract method of Sky
Implements: setBaseImagery
Kind: instance abstract method of Sky
Implements: getBaseElevation
Kind: instance method of Sky
Implements: addLayer
Kind: instance method of Sky
Implements: removeLayer
Kind: instance method of Sky
Implements: addAnimation
Kind: instance method of Sky
Implements: removeAnimation
Kind: instance abstract method of Sky
Implements: getElevation
Kind: instance method of Sky
Implements: getViewportGeoBound
Kind: instance method of Sky
Implements: getLonLatFromPixel
Kind: instance method of Sky
Implements: getPixelFromLonLat
Kind: instance abstract method of Sky
Implements: Globe#render
Overrides: render
Access: protected
Kind: instance method of Sky
Implements: setCoordinateSystem
Kind: instance method of Sky
Implements: getCoordinateSystem
Kind: instance method of Sky
Implements: getRenderStats
Kind: instance method of Sky
Implements: getRenderContext
Kind: instance method of Sky
Implements: setRenderContext
Kind: instance method of Sky
Implements: getTileManager
Kind: instance method of Sky
Implements: isEnabled
A layer is an information that can be superimposed on another information. It exists different natures of layer, which are listed as below :
- [AtmosphereLayer](#module_Layer.AtmosphereLayer) : A layer to create an atmosphere on a planet.
- [BingLayer](#module_Layer.BingLayer): The Microsoft service proving a WMTS server.
- [CoordinateGridLayer](#module_Layer.CoordinateGridLayer) : A layer to create a grid on the sky
- [GeoJSONLayer](#module_Layer.GeoJsonLayer) : A layer to add a GeoJSON on the globe
- [GroundOverlayLayer](#module_Layer.GroundOverlayLayer) : A layer to draw an image overlay draped onto the terrain
- [HipsCatLayer](#module_Layer.HipsCatLayer) : A layer to draw a HIPS catalogue
- [HipsFitsLayer](#module_Layer.HipsFitsLayer) : A layer to draw an Hips Fits
- [HipsGraphicLayer](#module_Layer.HipsGraphicLayer) : A layer to draw a Hips JPEG/PNG
- [MocLayer](#module_Layer.MocLayer) : A layer to draw a multi-order-coverage index
- [OpenSearchLayer](#module_Layer.OpenSearchLayer) : A layer to draw the result from an open search service
- [OSMLayer](#module_Layer.OSMLayer) : A layer to display data coming from OpenStreetMap server
- [PlanetLayer](#module_Layer.PlanetLayer) : A layer to save all layers of a planet
- [TileWireframeLayer](#module_Layer.TileWireframeLayer) : A layer to draw a grid on the planet
- [VectorLayer](#module_Layer.VectorLayer) : A layer to draw a vector
- [WCSElevationLayer](#module_Layer.WCSElevationLayer) : A layer to draw the elevation
- [WMSElevationLayer](#module_Layer.WMSElevationLayer) : A layer to draw the elevation
- [WMSLayer](#module_Layer.WMSLayer) : A layer to draw images coming from the WMS server
- [WMTSLayer](#module_Layer.WMTSLayer) : A layer to draw predefined tiles coming from a WMTS server
In addition to the classes, a [factory](#module_Layer.LayerFactory) is available to help for creating layer. Once the layer is created, the client can handle it by the use of its [interface](#Layer).
Implements: Layer
-
Layer
-
.AtmosphereLayer ⇐
AbstractLayer
- new AtmosphereLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.BingLayer ⇐
AbstractRasterLayer
- new BingLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.CoordinateGridLayer ⇐
AbstractLayer
- new CoordinateGridLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.GeoJsonLayer ⇐
AbstractLayer
- new GeoJsonLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.GroundOverlayLayer ⇐
AbstractLayer
- new GroundOverlayLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
- .HipsCatLayer
-
.HipsFitsLayer ⇐
AbstractHipsLayer
- new HipsFitsLayer(hipsMetadata, options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.HipsGraphicLayer ⇐
AbstractHipsLayer
- new HipsGraphicLayer(hipsMetadata, options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
- .LayerFactory
-
.MocLayer ⇐
AbstractLayer
- new MocLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.OSMLayer ⇐
AbstractRasterLayer
- new OSMLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.OpenSearchLayer ⇐
AbstractLayer
- new OpenSearchLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
- .PlanetLayer
-
.TileWireframeLayer ⇐
AbstractLayer
- new TileWireframeLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.VectorLayer ⇐
AbstractLayer
- new VectorLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.WCSElevationLayer ⇐
AbstractRasterLayer
- new WCSElevationLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.WMSElevationLayer ⇐
WMSLayer
-
.WMSLayer ⇐
AbstractRasterLayer
- new WMSLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.WMTSLayer ⇐
AbstractRasterLayer
- new WMTSLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
-
.AtmosphereLayer ⇐
Layer.AtmosphereLayer ⇐ AbstractLayer
Creates an atmosphere on the planet.
Kind: static class of Layer
Extends: AbstractLayer
-
.AtmosphereLayer ⇐
AbstractLayer
- new AtmosphereLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | atmosphere_configuration |
Atmosphere configuration. |
Kind: instance method of AtmosphereLayer
Implements: getGlobe
Kind: instance method of AtmosphereLayer
Implements: getID
Kind: instance method of AtmosphereLayer
Implements: getName
Kind: instance method of AtmosphereLayer
Implements: getAttribution
Kind: instance method of AtmosphereLayer
Implements: getCopyrightUrl
Kind: instance method of AtmosphereLayer
Implements: getAck
Kind: instance method of AtmosphereLayer
Implements: getIcon
Kind: instance method of AtmosphereLayer
Implements: getDescription
Kind: instance method of AtmosphereLayer
Implements: isVisible
Kind: instance method of AtmosphereLayer
Implements: setVisible
Kind: instance method of AtmosphereLayer
Implements: getOpacity
Kind: instance method of AtmosphereLayer
Implements: setOpacity
Kind: instance method of AtmosphereLayer
Implements: getProperties
Kind: instance method of AtmosphereLayer
Implements: getType
Kind: instance method of AtmosphereLayer
Implements: isPickable
Kind: instance method of AtmosphereLayer
Implements: isType
Kind: instance method of AtmosphereLayer
Implements: getServices
Kind: instance method of AtmosphereLayer
Implements: getCoordinateSystem
Kind: instance method of AtmosphereLayer
Implements: _attach
Kind: instance method of AtmosphereLayer
Implements: _detach
Kind: instance method of AtmosphereLayer
Implements: getBaseURl
Kind: instance method of AtmosphereLayer
Implements: getDataType
Kind: instance method of AtmosphereLayer
Implements: getFormat
Kind: instance method of AtmosphereLayer
Implements: isDeletable
Kind: instance method of AtmosphereLayer
Implements: getColor
Kind: instance method of AtmosphereLayer
Implements: getStyle
Kind: instance method of AtmosphereLayer
Implements: getAvailableServices
Layer.BingLayer ⇐ AbstractRasterLayer
Bing Maps is a web mapping service provided as a part of Microsoft's Bing suite of search engines and powered by the Bing Maps for Enterprise framework.
Kind: static class of Layer
Extends: AbstractRasterLayer
See: https://en.wikipedia.org/wiki/Bing_Maps
-
.BingLayer ⇐
AbstractRasterLayer
- new BingLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | bing_configuration |
Bing Layer configuration |
Kind: instance method of BingLayer
Implements: getGlobe
Kind: instance method of BingLayer
Implements: getID
Kind: instance method of BingLayer
Implements: getName
Kind: instance method of BingLayer
Implements: getAttribution
Kind: instance method of BingLayer
Implements: getCopyrightUrl
Kind: instance method of BingLayer
Implements: getAck
Kind: instance method of BingLayer
Implements: getIcon
Kind: instance method of BingLayer
Implements: getDescription
Kind: instance method of BingLayer
Implements: isVisible
Kind: instance method of BingLayer
Implements: setVisible
Kind: instance method of BingLayer
Implements: getOpacity
Kind: instance method of BingLayer
Implements: setOpacity
Kind: instance method of BingLayer
Implements: getProperties
Kind: instance method of BingLayer
Implements: getType
Kind: instance method of BingLayer
Implements: isPickable
Kind: instance method of BingLayer
Implements: isType
Kind: instance method of BingLayer
Implements: getServices
Kind: instance method of BingLayer
Implements: getCoordinateSystem
Kind: instance method of BingLayer
Implements: _detach
Kind: instance method of BingLayer
Implements: getBaseURl
Kind: instance method of BingLayer
Implements: getDataType
Kind: instance method of BingLayer
Implements: getFormat
Kind: instance method of BingLayer
Implements: isDeletable
Kind: instance method of BingLayer
Implements: getColor
Kind: instance method of BingLayer
Implements: getStyle
Kind: instance method of BingLayer
Implements: getAvailableServices
Layer.CoordinateGridLayer ⇐ AbstractLayer
A layer for coordinate grid
Kind: static class of Layer
Extends: AbstractLayer
-
.CoordinateGridLayer ⇐
AbstractLayer
- new CoordinateGridLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | coordinateGrid_configuration |
coordinate grid layer configuration |
Kind: instance method of CoordinateGridLayer
Implements: getGlobe
Kind: instance method of CoordinateGridLayer
Implements: getID
Kind: instance method of CoordinateGridLayer
Implements: getName
Kind: instance method of CoordinateGridLayer
Implements: getAttribution
Kind: instance method of CoordinateGridLayer
Implements: getCopyrightUrl
Kind: instance method of CoordinateGridLayer
Implements: getAck
Kind: instance method of CoordinateGridLayer
Implements: getIcon
Kind: instance method of CoordinateGridLayer
Implements: getDescription
Kind: instance method of CoordinateGridLayer
Implements: isVisible
Kind: instance method of CoordinateGridLayer
Implements: setVisible
Kind: instance method of CoordinateGridLayer
Implements: getOpacity
Kind: instance method of CoordinateGridLayer
Implements: setOpacity
Kind: instance method of CoordinateGridLayer
Implements: getProperties
Kind: instance method of CoordinateGridLayer
Implements: getType
Kind: instance method of CoordinateGridLayer
Implements: isPickable
Kind: instance method of CoordinateGridLayer
Implements: isType
Kind: instance method of CoordinateGridLayer
Implements: getServices
Kind: instance method of CoordinateGridLayer
Implements: getCoordinateSystem
Kind: instance method of CoordinateGridLayer
Implements: _attach
Kind: instance method of CoordinateGridLayer
Implements: _detach
Kind: instance method of CoordinateGridLayer
Implements: getBaseURl
Kind: instance method of CoordinateGridLayer
Implements: getDataType
Kind: instance method of CoordinateGridLayer
Implements: getFormat
Kind: instance method of CoordinateGridLayer
Implements: isDeletable
Kind: instance method of CoordinateGridLayer
Implements: getColor
Kind: instance method of CoordinateGridLayer
Implements: getStyle
Kind: instance method of CoordinateGridLayer
Implements: getAvailableServices
Layer.GeoJsonLayer ⇐ AbstractLayer
Create a layer to display vector data in GeoJSON format.
Kind: static class of Layer
Extends: AbstractLayer
-
.GeoJsonLayer ⇐
AbstractLayer
- new GeoJsonLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | geojson_configuration |
GeoJsonLayer configuration |
Kind: instance method of GeoJsonLayer
Implements: getGlobe
Kind: instance method of GeoJsonLayer
Implements: getID
Kind: instance method of GeoJsonLayer
Implements: getName
Kind: instance method of GeoJsonLayer
Implements: getAttribution
Kind: instance method of GeoJsonLayer
Implements: getCopyrightUrl
Kind: instance method of GeoJsonLayer
Implements: getAck
Kind: instance method of GeoJsonLayer
Implements: getIcon
Kind: instance method of GeoJsonLayer
Implements: getDescription
Kind: instance method of GeoJsonLayer
Implements: isVisible
Kind: instance method of GeoJsonLayer
Implements: setVisible
Kind: instance method of GeoJsonLayer
Implements: getOpacity
Kind: instance method of GeoJsonLayer
Implements: setOpacity
Kind: instance method of GeoJsonLayer
Implements: getProperties
Kind: instance method of GeoJsonLayer
Implements: getType
Kind: instance method of GeoJsonLayer
Implements: isPickable
Kind: instance method of GeoJsonLayer
Implements: isType
Kind: instance method of GeoJsonLayer
Implements: getServices
Kind: instance method of GeoJsonLayer
Implements: getCoordinateSystem
Kind: instance method of GeoJsonLayer
Implements: _attach
Kind: instance method of GeoJsonLayer
Implements: _detach
Kind: instance method of GeoJsonLayer
Implements: getBaseURl
Kind: instance method of GeoJsonLayer
Implements: getDataType
Kind: instance method of GeoJsonLayer
Implements: getFormat
Kind: instance method of GeoJsonLayer
Implements: isDeletable
Kind: instance method of GeoJsonLayer
Implements: getColor
Kind: instance method of GeoJsonLayer
Implements: getStyle
Kind: instance method of GeoJsonLayer
Implements: getAvailableServices
Layer.GroundOverlayLayer ⇐ AbstractLayer
This layer draws an image overlay draped onto the terrain
Kind: static class of Layer
Extends: AbstractLayer
-
.GroundOverlayLayer ⇐
AbstractLayer
- new GroundOverlayLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | groundOverlay_configuration |
Ground overlay configuration |
Kind: instance method of GroundOverlayLayer
Implements: getGlobe
Kind: instance method of GroundOverlayLayer
Implements: getID
Kind: instance method of GroundOverlayLayer
Implements: getName
Kind: instance method of GroundOverlayLayer
Implements: getAttribution
Kind: instance method of GroundOverlayLayer
Implements: getCopyrightUrl
Kind: instance method of GroundOverlayLayer
Implements: getAck
Kind: instance method of GroundOverlayLayer
Implements: getIcon
Kind: instance method of GroundOverlayLayer
Implements: getDescription
Kind: instance method of GroundOverlayLayer
Implements: isVisible
Kind: instance method of GroundOverlayLayer
Implements: setVisible
Kind: instance method of GroundOverlayLayer
Implements: getOpacity
Kind: instance method of GroundOverlayLayer
Implements: setOpacity
Kind: instance method of GroundOverlayLayer
Implements: getProperties
Kind: instance method of GroundOverlayLayer
Implements: getType
Kind: instance method of GroundOverlayLayer
Implements: isPickable
Kind: instance method of GroundOverlayLayer
Implements: isType
Kind: instance method of GroundOverlayLayer
Implements: getServices
Kind: instance method of GroundOverlayLayer
Implements: getCoordinateSystem
Kind: instance method of GroundOverlayLayer
Implements: _attach
Kind: instance method of GroundOverlayLayer
Implements: _detach
Kind: instance method of GroundOverlayLayer
Implements: getBaseURl
Kind: instance method of GroundOverlayLayer
Implements: getDataType
Kind: instance method of GroundOverlayLayer
Implements: getFormat
Kind: instance method of GroundOverlayLayer
Implements: isDeletable
Kind: instance method of GroundOverlayLayer
Implements: getColor
Kind: instance method of GroundOverlayLayer
Implements: getStyle
Kind: instance method of GroundOverlayLayer
Implements: getAvailableServices
Kind: static class of Layer
See: Hips standard
Create a HIPS catalogue
Param | Type | Description |
---|---|---|
options | hipsCat_configuration |
Hip catalogue configuration |
Launches request to the HipsCatLayer service
Kind: instance method of HipsCatLayer
Emits: startLoad
, endLoad
, features:added
Param |
---|
tile |
url |
Adds feature to the layer and to the tile extension
Kind: instance method of HipsCatLayer
Param |
---|
feature |
tile |
Removes feature from Dynamic HipsCatLayer layer
Kind: instance method of HipsCatLayer
Param |
---|
identifier |
tile |
Modifies feature style
Kind: instance method of HipsCatLayer
Param |
---|
feature |
style |
Generates the tile data
Kind: instance method of HipsCatLayer
Param |
---|
tile |
Builds URL
Kind: instance method of HipsCatLayer
Param |
---|
tile |
Get Tile URL.
Kind: instance method of HipsCatLayer
Param |
---|
tile |
Render function
Kind: instance method of HipsCatLayer
Param | Description |
---|---|
tiles | The array of tiles to render |
Layer.HipsFitsLayer ⇐ AbstractHipsLayer
This layer draws an Hips Fits Image
Kind: static class of Layer
Extends: AbstractHipsLayer
See: Hips standard
-
.HipsFitsLayer ⇐
AbstractHipsLayer
- new HipsFitsLayer(hipsMetadata, options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
hipsMetadata | Object |
HIPS Metadata |
options | hipsFits_configuration |
HipsFits configuration |
Kind: instance method of HipsFitsLayer
Implements: getGlobe
Kind: instance method of HipsFitsLayer
Implements: getID
Kind: instance method of HipsFitsLayer
Implements: getName
Kind: instance method of HipsFitsLayer
Implements: getAttribution
Kind: instance method of HipsFitsLayer
Implements: getCopyrightUrl
Kind: instance method of HipsFitsLayer
Implements: getAck
Kind: instance method of HipsFitsLayer
Implements: getIcon
Kind: instance method of HipsFitsLayer
Implements: getDescription
Kind: instance method of HipsFitsLayer
Implements: isVisible
Kind: instance method of HipsFitsLayer
Implements: setVisible
Kind: instance method of HipsFitsLayer
Implements: getOpacity
Kind: instance method of HipsFitsLayer
Implements: setOpacity
Kind: instance method of HipsFitsLayer
Implements: getProperties
Kind: instance method of HipsFitsLayer
Implements: getType
Kind: instance method of HipsFitsLayer
Implements: isPickable
Kind: instance method of HipsFitsLayer
Implements: isType
Kind: instance method of HipsFitsLayer
Implements: getServices
Kind: instance method of HipsFitsLayer
Implements: getCoordinateSystem
Kind: instance method of HipsFitsLayer
Implements: _detach
Kind: instance method of HipsFitsLayer
Implements: getBaseURl
Kind: instance method of HipsFitsLayer
Implements: getDataType
Kind: instance method of HipsFitsLayer
Implements: getFormat
Kind: instance method of HipsFitsLayer
Implements: isDeletable
Kind: instance method of HipsFitsLayer
Implements: getColor
Kind: instance method of HipsFitsLayer
Implements: getStyle
Kind: instance method of HipsFitsLayer
Implements: getAvailableServices
Layer.HipsGraphicLayer ⇐ AbstractHipsLayer
This layer draws an Hips Image
Kind: static class of Layer
Extends: AbstractHipsLayer
Emits: baseLayersError
See: Hips standard
-
.HipsGraphicLayer ⇐
AbstractHipsLayer
- new HipsGraphicLayer(hipsMetadata, options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
hipsMetadata | HipsMetadata |
|
options | graphic_configuration |
HipsGraphic configuration |
Kind: instance method of HipsGraphicLayer
Implements: getGlobe
Kind: instance method of HipsGraphicLayer
Implements: getID
Kind: instance method of HipsGraphicLayer
Implements: getName
Kind: instance method of HipsGraphicLayer
Implements: getAttribution
Kind: instance method of HipsGraphicLayer
Implements: getCopyrightUrl
Kind: instance method of HipsGraphicLayer
Implements: getAck
Kind: instance method of HipsGraphicLayer
Implements: getIcon
Kind: instance method of HipsGraphicLayer
Implements: getDescription
Kind: instance method of HipsGraphicLayer
Implements: isVisible
Kind: instance method of HipsGraphicLayer
Implements: setVisible
Kind: instance method of HipsGraphicLayer
Implements: getOpacity
Kind: instance method of HipsGraphicLayer
Implements: setOpacity
Kind: instance method of HipsGraphicLayer
Implements: getProperties
Kind: instance method of HipsGraphicLayer
Implements: getType
Kind: instance method of HipsGraphicLayer
Implements: isPickable
Kind: instance method of HipsGraphicLayer
Implements: isType
Kind: instance method of HipsGraphicLayer
Implements: getServices
Kind: instance method of HipsGraphicLayer
Implements: getCoordinateSystem
Kind: instance method of HipsGraphicLayer
Implements: _detach
Kind: instance method of HipsGraphicLayer
Implements: getBaseURl
Kind: instance method of HipsGraphicLayer
Implements: getDataType
Kind: instance method of HipsGraphicLayer
Implements: getFormat
Kind: instance method of HipsGraphicLayer
Implements: isDeletable
Kind: instance method of HipsGraphicLayer
Implements: getColor
Kind: instance method of HipsGraphicLayer
Implements: getStyle
Kind: instance method of HipsGraphicLayer
Implements: getAvailableServices
Factory to create a layer
Kind: static class of Layer
LayerFactory.create(options) ⇒ AbstractLayer
Factory for Layer.
Kind: static method of LayerFactory
Returns: AbstractLayer
- - Object to handle Layer
Throw: "Unable to create the layer"
See
- AtmosphereLayer : A layer to create an atmosphere on a planet.
- BingLayer: The Microsoft service proving a WMTS server.
- CoordinateGridLayer : A layer to create a grid on the sky
- GeoJSONLayer : A layer to add a GeoJSON on the globe
- GroundOverlayLayer : A layer to draw an image overlay draped onto the terrain
- HipsCatLayer : A layer to draw a HIPS catalogue
- HipsFitsLayer : A layer to draw an Hips Fits
- HipsGraphicLayer : A layer to draw a Hips JPEG/PNG
- MocLayer : A layer to draw a multi-order-coverage index
- OpenSearchLayer : A layer to draw the result from an open search service
- OSMLayer : A layer to display data coming from OpenStreetMap server
- PlanetLayer : A layer to save all layers of a planet
- TileWireframeLayer : A layer to draw a grid on the planet
- VectorLayer : A layer to draw a vector
- WCSElevationLayer : A layer to draw the elevation
- WMSElevationLayer : A layer to draw the elevation
- WMSLayer : A layer to draw images coming from the WMS server
- WMTSLayer : A layer to draw predefined tiles coming from a WMTS server
Param | Type | Description |
---|---|---|
options | Object |
See the base properties configuration and specific properties for specific layers |
options.type | string |
one of the following value {Constants.Layer} |
Layer.MocLayer ⇐ AbstractLayer
This layer draws a MOC data
Kind: static class of Layer
Extends: AbstractLayer
See: Moc
-
.MocLayer ⇐
AbstractLayer
- new MocLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | moc_configuration |
Moc layer configuration |
Kind: instance method of MocLayer
Implements: getGlobe
Kind: instance method of MocLayer
Implements: getID
Kind: instance method of MocLayer
Implements: getName
Kind: instance method of MocLayer
Implements: getAttribution
Kind: instance method of MocLayer
Implements: getCopyrightUrl
Kind: instance method of MocLayer
Implements: getAck
Kind: instance method of MocLayer
Implements: getIcon
Kind: instance method of MocLayer
Implements: getDescription
Kind: instance method of MocLayer
Implements: isVisible
Kind: instance method of MocLayer
Implements: setVisible
Kind: instance method of MocLayer
Implements: getOpacity
Kind: instance method of MocLayer
Implements: setOpacity
Kind: instance method of MocLayer
Implements: getProperties
Kind: instance method of MocLayer
Implements: getType
Kind: instance method of MocLayer
Implements: isPickable
Kind: instance method of MocLayer
Implements: isType
Kind: instance method of MocLayer
Implements: getServices
Kind: instance method of MocLayer
Implements: getCoordinateSystem
Kind: instance method of MocLayer
Implements: _attach
Kind: instance method of MocLayer
Implements: _detach
Kind: instance method of MocLayer
Implements: getBaseURl
Kind: instance method of MocLayer
Implements: getDataType
Kind: instance method of MocLayer
Implements: getFormat
Kind: instance method of MocLayer
Implements: isDeletable
Kind: instance method of MocLayer
Implements: getColor
Kind: instance method of MocLayer
Implements: getStyle
Kind: instance method of MocLayer
Implements: getAvailableServices
Layer.OSMLayer ⇐ AbstractRasterLayer
A layer to display data coming from OpenStreetMap server. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world
Kind: static class of Layer
Extends: AbstractRasterLayer
-
.OSMLayer ⇐
AbstractRasterLayer
- new OSMLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | osm_configuration |
OSM Configuration |
Kind: instance method of OSMLayer
Implements: getGlobe
Kind: instance method of OSMLayer
Implements: getID
Kind: instance method of OSMLayer
Implements: getName
Kind: instance method of OSMLayer
Implements: getAttribution
Kind: instance method of OSMLayer
Implements: getCopyrightUrl
Kind: instance method of OSMLayer
Implements: getAck
Kind: instance method of OSMLayer
Implements: getIcon
Kind: instance method of OSMLayer
Implements: getDescription
Kind: instance method of OSMLayer
Implements: isVisible
Kind: instance method of OSMLayer
Implements: setVisible
Kind: instance method of OSMLayer
Implements: getOpacity
Kind: instance method of OSMLayer
Implements: setOpacity
Kind: instance method of OSMLayer
Implements: getProperties
Kind: instance method of OSMLayer
Implements: getType
Kind: instance method of OSMLayer
Implements: isPickable
Kind: instance method of OSMLayer
Implements: isType
Kind: instance method of OSMLayer
Implements: getServices
Kind: instance method of OSMLayer
Implements: getCoordinateSystem
Kind: instance method of OSMLayer
Implements: _detach
Kind: instance method of OSMLayer
Implements: getBaseURl
Kind: instance method of OSMLayer
Implements: getDataType
Kind: instance method of OSMLayer
Implements: getFormat
Kind: instance method of OSMLayer
Implements: isDeletable
Kind: instance method of OSMLayer
Implements: getColor
Kind: instance method of OSMLayer
Implements: getStyle
Kind: instance method of OSMLayer
Implements: getAvailableServices
Layer.OpenSearchLayer ⇐ AbstractLayer
This layer draws an OpenSearch dynamic layer
Kind: static class of Layer
Extends: AbstractLayer
-
.OpenSearchLayer ⇐
AbstractLayer
- new OpenSearchLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Default | Description |
---|---|---|---|
options | Object |
Configuration properties for the layer. See AbstractLayer for base properties | |
options.serviceUrl | String |
Url of OpenSearch description XML file | |
[options.minOrder] | int |
5 |
Starting order for OpenSearch requests |
[options.maxRequests] | int |
2 |
Max request |
[options.invertY] | Boolean |
false |
a boolean, if set all the image data of current layer is flipped along the vertical axis |
[options.coordSystemRequired] | Boolean |
true |
|
[options.style] | FeatureStyle |
new FeatureStyle() |
Kind: instance method of OpenSearchLayer
Implements: getGlobe
Kind: instance method of OpenSearchLayer
Implements: getID
Kind: instance method of OpenSearchLayer
Implements: getName
Kind: instance method of OpenSearchLayer
Implements: getAttribution
Kind: instance method of OpenSearchLayer
Implements: getCopyrightUrl
Kind: instance method of OpenSearchLayer
Implements: getAck
Kind: instance method of OpenSearchLayer
Implements: getIcon
Kind: instance method of OpenSearchLayer
Implements: getDescription
Kind: instance method of OpenSearchLayer
Implements: isVisible
Kind: instance method of OpenSearchLayer
Implements: setVisible
Kind: instance method of OpenSearchLayer
Implements: getOpacity
Kind: instance method of OpenSearchLayer
Implements: setOpacity
Kind: instance method of OpenSearchLayer
Implements: getProperties
Kind: instance method of OpenSearchLayer
Implements: getType
Kind: instance method of OpenSearchLayer
Implements: isPickable
Kind: instance method of OpenSearchLayer
Implements: isType
Kind: instance method of OpenSearchLayer
Implements: getServices
Kind: instance method of OpenSearchLayer
Implements: getCoordinateSystem
Kind: instance method of OpenSearchLayer
Implements: _attach
Kind: instance method of OpenSearchLayer
Implements: _detach
Kind: instance method of OpenSearchLayer
Implements: getBaseURl
Kind: instance method of OpenSearchLayer
Implements: getDataType
Kind: instance method of OpenSearchLayer
Implements: getFormat
Kind: instance method of OpenSearchLayer
Implements: isDeletable
Kind: instance method of OpenSearchLayer
Implements: getColor
Kind: instance method of OpenSearchLayer
Implements: getStyle
Kind: instance method of OpenSearchLayer
Implements: getAvailableServices
Kind: static class of Layer
Planet layer.
Param | Type | Description |
---|---|---|
options | AbstractLayer |
See for base properties |
options.elevation | Object |
Layer.TileWireframeLayer ⇐ AbstractLayer
This layer draws an TileWireframe layer
Kind: static class of Layer
Extends: AbstractLayer
-
.TileWireframeLayer ⇐
AbstractLayer
- new TileWireframeLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | tileWireFrame_configuration |
TileWireFrame configuration |
Kind: instance method of TileWireframeLayer
Implements: getGlobe
Kind: instance method of TileWireframeLayer
Implements: getID
Kind: instance method of TileWireframeLayer
Implements: getName
Kind: instance method of TileWireframeLayer
Implements: getAttribution
Kind: instance method of TileWireframeLayer
Implements: getCopyrightUrl
Kind: instance method of TileWireframeLayer
Implements: getAck
Kind: instance method of TileWireframeLayer
Implements: getIcon
Kind: instance method of TileWireframeLayer
Implements: getDescription
Kind: instance method of TileWireframeLayer
Implements: isVisible
Kind: instance method of TileWireframeLayer
Implements: setVisible
Kind: instance method of TileWireframeLayer
Implements: getOpacity
Kind: instance method of TileWireframeLayer
Implements: setOpacity
Kind: instance method of TileWireframeLayer
Implements: getProperties
Kind: instance method of TileWireframeLayer
Implements: getType
Kind: instance method of TileWireframeLayer
Implements: isPickable
Kind: instance method of TileWireframeLayer
Implements: isType
Kind: instance method of TileWireframeLayer
Implements: getServices
Kind: instance method of TileWireframeLayer
Implements: getCoordinateSystem
Kind: instance method of TileWireframeLayer
Implements: _attach
Kind: instance method of TileWireframeLayer
Implements: _detach
Kind: instance method of TileWireframeLayer
Implements: getBaseURl
Kind: instance method of TileWireframeLayer
Implements: getDataType
Kind: instance method of TileWireframeLayer
Implements: getFormat
Kind: instance method of TileWireframeLayer
Implements: isDeletable
Kind: instance method of TileWireframeLayer
Implements: getColor
Kind: instance method of TileWireframeLayer
Implements: getStyle
Kind: instance method of TileWireframeLayer
Implements: getAvailableServices
Layer.VectorLayer ⇐ AbstractLayer
Create a layer to display vector data in GeoJSON format.
Kind: static class of Layer
Extends: AbstractLayer
-
.VectorLayer ⇐
AbstractLayer
- new VectorLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._attach()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | vector_configuration |
Vector configuration |
Kind: instance method of VectorLayer
Implements: getGlobe
Kind: instance method of VectorLayer
Implements: getID
Kind: instance method of VectorLayer
Implements: getName
Kind: instance method of VectorLayer
Implements: getAttribution
Kind: instance method of VectorLayer
Implements: getCopyrightUrl
Kind: instance method of VectorLayer
Implements: getAck
Kind: instance method of VectorLayer
Implements: getIcon
Kind: instance method of VectorLayer
Implements: getDescription
Kind: instance method of VectorLayer
Implements: isVisible
Kind: instance method of VectorLayer
Implements: setVisible
Kind: instance method of VectorLayer
Implements: getOpacity
Kind: instance method of VectorLayer
Implements: setOpacity
Kind: instance method of VectorLayer
Implements: getProperties
Kind: instance method of VectorLayer
Implements: getType
Kind: instance method of VectorLayer
Implements: isPickable
Kind: instance method of VectorLayer
Implements: isType
Kind: instance method of VectorLayer
Implements: getServices
Kind: instance method of VectorLayer
Implements: getCoordinateSystem
Kind: instance method of VectorLayer
Implements: _attach
Kind: instance method of VectorLayer
Implements: _detach
Kind: instance method of VectorLayer
Implements: getBaseURl
Kind: instance method of VectorLayer
Implements: getDataType
Kind: instance method of VectorLayer
Implements: getFormat
Kind: instance method of VectorLayer
Implements: isDeletable
Kind: instance method of VectorLayer
Implements: getColor
Kind: instance method of VectorLayer
Implements: getStyle
Kind: instance method of VectorLayer
Implements: getAvailableServices
Layer.WCSElevationLayer ⇐ AbstractRasterLayer
Create a layer for elevation data using WCS protocol based on a GeoTiling(4, 2) with a pixelSize = 33 by default. The only supported format is right now image/x-aaigrid. It is an ASCII format that is easily parsed in Javascript.
Kind: static class of Layer
Extends: AbstractRasterLayer
-
.WCSElevationLayer ⇐
AbstractRasterLayer
- new WCSElevationLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | AbstractLayer.wcsElevation_configuration |
WCSElevation Configuration |
Kind: instance method of WCSElevationLayer
Implements: getGlobe
Kind: instance method of WCSElevationLayer
Implements: getID
Kind: instance method of WCSElevationLayer
Implements: getName
Kind: instance method of WCSElevationLayer
Implements: getAttribution
Kind: instance method of WCSElevationLayer
Implements: getCopyrightUrl
Kind: instance method of WCSElevationLayer
Implements: getAck
Kind: instance method of WCSElevationLayer
Implements: getIcon
Kind: instance method of WCSElevationLayer
Implements: getDescription
Kind: instance method of WCSElevationLayer
Implements: isVisible
Kind: instance method of WCSElevationLayer
Implements: setVisible
Kind: instance method of WCSElevationLayer
Implements: getOpacity
Kind: instance method of WCSElevationLayer
Implements: setOpacity
Kind: instance method of WCSElevationLayer
Implements: getProperties
Kind: instance method of WCSElevationLayer
Implements: getType
Kind: instance method of WCSElevationLayer
Implements: isPickable
Kind: instance method of WCSElevationLayer
Implements: isType
Kind: instance method of WCSElevationLayer
Implements: getServices
Kind: instance method of WCSElevationLayer
Implements: getCoordinateSystem
Kind: instance method of WCSElevationLayer
Implements: _detach
Kind: instance method of WCSElevationLayer
Implements: getBaseURl
Kind: instance method of WCSElevationLayer
Implements: getDataType
Kind: instance method of WCSElevationLayer
Implements: getFormat
Kind: instance method of WCSElevationLayer
Implements: isDeletable
Kind: instance method of WCSElevationLayer
Implements: getColor
Kind: instance method of WCSElevationLayer
Implements: getStyle
Kind: instance method of WCSElevationLayer
Implements: getAvailableServices
Creates a layer for elevation data using WMS protocol based on a GeoTiling(4, 2) with a pixelSize = 33 by default. The only supported format is currently image/x-aaigrid.
Kind: static class of Layer
Extends: WMSLayer
-
.WMSElevationLayer ⇐
WMSLayer
Param | Type | Description |
---|---|---|
options | AbstractLayer.wmsElevation_configuration |
WMSElevation configuration |
Returns the url for the given tile
Kind: instance method of WMSElevationLayer
Returns: String
- Url
Param | Type | Description |
---|---|---|
tile | Tile |
Tile |
Kind: instance method of WMSElevationLayer
Layer.WMSLayer ⇐ AbstractRasterLayer
Creates a layer for imagery data using WMS (Web Map Service) protocol
based on a GeoTiling(4, 2) with a pixelSize = 256 by default.
WMS provides a standard interface for requesting a geospatial map image.
The standard guarantees that these images can all be overlaid on one another.
Example of a WMS request
http://example.com/wms?request=GetMap&service=WMS&version=1.1.1&layers=MyLayer
&styles=population&srs=EPSG:4326&bbox=-145.15104058007,21.731919794922,-57.154894212888,58.961058642578&
&width=780&height=330&format=image/png
Kind: static class of Layer
Extends: AbstractRasterLayer
See: WMS standard
-
.WMSLayer ⇐
AbstractRasterLayer
- new WMSLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | wms_configuration |
WMS Configuration |
Kind: instance method of WMSLayer
Implements: getGlobe
Kind: instance method of WMSLayer
Implements: getID
Kind: instance method of WMSLayer
Implements: getName
Kind: instance method of WMSLayer
Implements: getAttribution
Kind: instance method of WMSLayer
Implements: getCopyrightUrl
Kind: instance method of WMSLayer
Implements: getAck
Kind: instance method of WMSLayer
Implements: getIcon
Kind: instance method of WMSLayer
Implements: getDescription
Kind: instance method of WMSLayer
Implements: isVisible
Kind: instance method of WMSLayer
Implements: setVisible
Kind: instance method of WMSLayer
Implements: getOpacity
Kind: instance method of WMSLayer
Implements: setOpacity
Kind: instance method of WMSLayer
Implements: getProperties
Kind: instance method of WMSLayer
Implements: getType
Kind: instance method of WMSLayer
Implements: isPickable
Kind: instance method of WMSLayer
Implements: isType
Kind: instance method of WMSLayer
Implements: getServices
Kind: instance method of WMSLayer
Implements: getCoordinateSystem
Kind: instance method of WMSLayer
Implements: _detach
Kind: instance method of WMSLayer
Implements: getBaseURl
Kind: instance method of WMSLayer
Implements: getDataType
Kind: instance method of WMSLayer
Implements: getFormat
Kind: instance method of WMSLayer
Implements: isDeletable
Kind: instance method of WMSLayer
Implements: getColor
Kind: instance method of WMSLayer
Implements: getStyle
Kind: instance method of WMSLayer
Implements: getAvailableServices
Layer.WMTSLayer ⇐ AbstractRasterLayer
Creates a layer for imagery data using WMTS protocol.
WMTS protocol provides tiles with a resolution of tilePixelSize
based on a GeoTiling(4, 2)
<br/
Example of a WMTS request:
http://example.com/wmts?LAYER=MyLayer1,MyLayer2&
EXCEPTIONS=text/xml&FORMAT=image/jpeg&SERVICE=WMTS&
VERSION=1.0.0&REQUEST=GetTile&STYLE=normal&
TILEMATRIXSET=PM&TILEMATRIX=18&TILEROW=90241&TILECOL=132877&
The parameters of a WMTS server are the following:
- TILEMATRIXSET: The name of pyramidal images
- TILEMATRIX: The name of the matrix that contains the tile
- TILEROW: The line number from the top left corner from the tile
- TILECOL: The column number from the top left corner from the tile
Kind: static class of Layer
Extends: AbstractRasterLayer
See
Properties
Name | Type | Default | Description |
---|---|---|---|
tilePixelSize | int |
256 |
tile in pixels |
numberOfLevels | int |
21 |
number of levels |
version | string |
""1.0.0"" |
WMS version |
transparent | string |
||
time | string |
Time dimension | |
format | string |
""image/png"" |
output image format |
-
.WMTSLayer ⇐
AbstractRasterLayer
- new WMTSLayer(options)
- .getGlobe()
- .getID()
- .getName()
- .getAttribution()
- .getCopyrightUrl()
- .getAck()
- .getIcon()
- .getDescription()
- .isVisible()
- .setVisible()
- .getOpacity()
- .setOpacity()
- .getProperties()
- .getType()
- .isPickable()
- .isType()
- .getServices()
- .getCoordinateSystem()
- ._detach()
- .getBaseURl()
- .getDataType()
- .getFormat()
- .isDeletable()
- .getColor()
- .getStyle()
- .getAvailableServices()
Param | Type | Description |
---|---|---|
options | configuration |
WMTS configuration |
Kind: instance method of WMTSLayer
Implements: getGlobe
Kind: instance method of WMTSLayer
Implements: getID
Kind: instance method of WMTSLayer
Implements: getName
Kind: instance method of WMTSLayer
Implements: getAttribution
Kind: instance method of WMTSLayer
Implements: getCopyrightUrl
Kind: instance method of WMTSLayer
Implements: getAck
Kind: instance method of WMTSLayer
Implements: getIcon
Kind: instance method of WMTSLayer
Implements: getDescription
Kind: instance method of WMTSLayer
Implements: isVisible
Kind: instance method of WMTSLayer
Implements: setVisible
Kind: instance method of WMTSLayer
Implements: getOpacity
Kind: instance method of WMTSLayer
Implements: setOpacity
Kind: instance method of WMTSLayer
Implements: getProperties
Kind: instance method of WMTSLayer
Implements: getType
Kind: instance method of WMTSLayer
Implements: isPickable
Kind: instance method of WMTSLayer
Implements: isType
Kind: instance method of WMTSLayer
Implements: getServices
Kind: instance method of WMTSLayer
Implements: getCoordinateSystem
Kind: instance method of WMTSLayer
Implements: _detach
Kind: instance method of WMTSLayer
Implements: getBaseURl
Kind: instance method of WMTSLayer
Implements: getDataType
Kind: instance method of WMTSLayer
Implements: getFormat
Kind: instance method of WMTSLayer
Implements: isDeletable
Kind: instance method of WMTSLayer
Implements: getColor
Kind: instance method of WMTSLayer
Implements: getStyle
Kind: instance method of WMTSLayer
Implements: getAvailableServices
Mizar owns different types of navigation to control the camera on the WebGL scene.
[AstroNavigation](#module_Navigation.AstroNavigation) | Provides a camera located at the center of the scene. The camera is inside the globe. It is used to view the sky | |
[PlanetNavigation](#module_Navigation.PlanetNavigation) | Provides a camera, located outside the globe and looking at the globe. It is used to view a planet | |
[FlatNavigation](#module_Navigation.FlatNavigation) | Provides a camera to navigate on a 2D map - Only available in a Planet context |
The camera is automatically instantiated by the context AbstractContext, which is created by client.
Usually, the navigation is in 3D (AstroNavigation or PlanetNavigation). However, in a particular case, when
the client selects a Coordinate Reference System with a
projection, the FlatNavigation is selected.
Then the client can control the navigation by its interface
In addition, the navigation is controlled by the user with the help of devices : keyboard, touch, mouse. When creating the Mizar instance, the user can define a list of supported devices to be able to control the navigation by these devices. By default, the [MouseNavigationHandler](#module_Navigation.MouseNavigationHandler) and [KeyboardNavigationHandler](#module_Navigation.KeyboardNavigationHandler) are set up. When the parameter isMobile is set to true in [Mizar](#Mizar) options, then the [TouchNavigationHandler](#module_Navigation.TouchNavigationHandler) is set up
Implements: Navigation
Todo
- Créer un tuto pour montrer les principales méthodes de Navigation et le changement de 3D <--> 2D
-
Navigation
-
.AstroNavigation ⇐
AbstractNavigation
- new AstroNavigation(ctx, options)
-
.getType() ⇒
string
-
.getOptions() ⇒
Object
- .start()
- .stop()
- .stopAnimations()
-
.getFov() ⇒
Array.<float>
-
.getCenter() ⇒
Array.<float>
- .rotate(dx, dy)
- .pan(dx, dy)
- .zoom(delta, scale)
- .zoomTo(geoPos, options)
- .computeViewMatrix()
- .toViewMatrix(mat, fov, duration, callback)
-
.getRenderContext() ⇒
RenderContext
- .setRenderContext(renderContext)
-
.FlatNavigation ⇐
AbstractNavigation
- new FlatNavigation(ctx, options)
-
.getType() ⇒
string
-
.getOptions() ⇒
Object
- .start()
- .stop()
- .stopAnimations()
-
.getFov() ⇒
Array.<float>
-
.getCenter() ⇒
Array.<float>
- .rotate(dx, dy)
- .pan(dx, dy)
- .zoom(delta, scale)
- .zoomTo(geoPos, options)
- .computeViewMatrix()
- .toViewMatrix(mat, fov, duration, callback)
-
.getRenderContext() ⇒
RenderContext
- .setRenderContext(renderContext)
- .GoogleMouseNavigationHandler
- .KeyboardNavigationHandler
- .MouseNavigationHandler
- .NavigationFactory
-
.NavigationHandlerFactory
-
.create(type, options) ⇒
Object
-
.create(type, options) ⇒
-
.PlanetNavigation ⇐
AbstractNavigation
- new PlanetNavigation(ctx, options)
-
.getType() ⇒
string
-
.getOptions() ⇒
Object
- .start()
- .stop()
- .stopAnimations()
-
.getFov() ⇒
Array.<float>
-
.getCenter() ⇒
Array.<float>
- .rotate(dx, dy)
- .pan(dx, dy)
- .zoom(delta, scale)
- .zoomTo(geoPos, options)
- .computeViewMatrix()
- .toViewMatrix(mat, fov, duration, callback)
-
.getRenderContext() ⇒
RenderContext
- .setRenderContext(renderContext)
- .TouchNavigationHandler
-
.AstroNavigation ⇐
Navigation.AstroNavigation ⇐ AbstractNavigation
Provides a camera located at the center of the scene. The camera is inside the globe. It is used to view the sky. |
Kind: static class of Navigation
Extends: AbstractNavigation
-
.AstroNavigation ⇐
AbstractNavigation
- new AstroNavigation(ctx, options)
-
.getType() ⇒
string
-
.getOptions() ⇒
Object
- .start()
- .stop()
- .stopAnimations()
-
.getFov() ⇒
Array.<float>
-
.getCenter() ⇒
Array.<float>
- .rotate(dx, dy)
- .pan(dx, dy)
- .zoom(delta, scale)
- .zoomTo(geoPos, options)
- .computeViewMatrix()
- .toViewMatrix(mat, fov, duration, callback)
-
.getRenderContext() ⇒
RenderContext
- .setRenderContext(renderContext)
Param | Type | Description |
---|---|---|
ctx | SkyContext |
Sky context |
options | astro_configuration |
navigation configuration |
Returns the type of navigation. The type can take one of the following value : AstroNavigation, FlatNavigation, PlanetNavigation
Kind: instance method of AstroNavigation
Implements: getType
Returns: string
- the name of the navigation class, which is used
Returns the navigation's options given at the initialisation.
Kind: instance method of AstroNavigation
Implements: getOptions
Returns: Object
- Options
Starts the navigation.
Kind: instance method of AstroNavigation
Implements: start
Stops the navigation.
Kind: instance method of AstroNavigation
Implements: stop
Stops the animations.
Kind: instance method of AstroNavigation
Implements: stopAnimations
Returns the field of view in decimal degree.
Kind: instance method of AstroNavigation
Implements: getFov
Returns: Array.<float>
- the Field of view [fov along width, fov along height]
Returns the center of the field of view.
Kind: instance method of AstroNavigation
Implements: getCenter
Returns: Array.<float>
- the center in decimal degree of the field of view [longitude, latitude]
Rotates the camera.
Kind: instance abstract method of AstroNavigation
Implements: rotate
Param | Type | Description |
---|---|---|
dx | float |
Window delta x |
dy | float |
Window delta y |
Pans the camera to a direction up/down or left/right with the same distance from the object
Kind: instance abstract method of AstroNavigation
Implements: pan
Param | Type | Description |
---|---|---|
dx | float |
Window direction left/right |
dy | float |
Window direction up/down |
Applies zooming.
Kind: instance abstract method of AstroNavigation
Implements: zoom
Param | Type | Description |
---|---|---|
delta | float |
Delta zoom |
scale | float |
Scale |
Zooms to a 2D position (longitude, latitude).
Kind: instance abstract method of AstroNavigation
Implements: zoomTo
Param | Type | Description |
---|---|---|
geoPos | Array.<float> |
spatial position in decimal degree [longitude, latitude] |
options | Object |
options for zoomTo |
Computes the view matrix
Kind: instance abstract method of AstroNavigation
Implements: computeViewMatrix
Basic animation from current view matrix to the given one
Kind: instance method of AstroNavigation
Implements: toViewMatrix
Param | Type | Description |
---|---|---|
mat | Array.<Object> |
Destination view matrix (array of 16) |
fov | int |
Final zooming fov in degrees |
duration | int |
Duration of animation in milliseconds |
callback | navigationCallback |
Callback at the end of animation |
astroNavigation.getRenderContext() ⇒ RenderContext
Returns the rendering context.
Kind: instance method of AstroNavigation
Implements: getRenderContext
Returns: RenderContext
- the rendering context
Sets the rendering context
Kind: instance method of AstroNavigation
Implements: setRenderContext
Param | Type | Description |
---|---|---|
renderContext | RenderContext |
the rendering context to set |
Navigation.FlatNavigation ⇐ AbstractNavigation
Provides a camera to navigate on a 2D map - Only available in a Planet context |
Kind: static class of Navigation
Extends: AbstractNavigation
-
.FlatNavigation ⇐
AbstractNavigation
- new FlatNavigation(ctx, options)
-
.getType() ⇒
string
-
.getOptions() ⇒
Object
- .start()
- .stop()
- .stopAnimations()
-
.getFov() ⇒
Array.<float>
-
.getCenter() ⇒
Array.<float>
- .rotate(dx, dy)
- .pan(dx, dy)
- .zoom(delta, scale)
- .zoomTo(geoPos, options)
- .computeViewMatrix()
- .toViewMatrix(mat, fov, duration, callback)
-
.getRenderContext() ⇒
RenderContext
- .setRenderContext(renderContext)
Param | Type | Description |
---|---|---|
ctx | PlanetContext |
Planet context |
options | flat_configuration |
Flat navigation configuration |
Returns the type of navigation. The type can take one of the following value : AstroNavigation, FlatNavigation, PlanetNavigation
Kind: instance method of FlatNavigation
Implements: getType
Returns: string
- the name of the navigation class, which is used
Returns the navigation's options given at the initialisation.
Kind: instance method of FlatNavigation
Implements: getOptions
Returns: Object
- Options
Starts the navigation.
Kind: instance method of FlatNavigation
Implements: start
Stops the navigation.
Kind: instance method of FlatNavigation
Implements: stop
Stops the animations.
Kind: instance method of FlatNavigation
Implements: stopAnimations
Returns the field of view in decimal degree.
Kind: instance method of FlatNavigation
Implements: getFov
Returns: Array.<float>
- the Field of view [fov along width, fov along height]
Returns the center of the field of view.
Kind: instance method of FlatNavigation
Implements: getCenter
Returns: Array.<float>
- the center in decimal degree of the field of view [longitude, latitude]
Rotates the camera.
Kind: instance abstract method of FlatNavigation
Implements: rotate
Param | Type | Description |
---|---|---|
dx | float |
Window delta x |
dy | float |
Window delta y |
Pans the camera to a direction up/down or left/right with the same distance from the object
Kind: instance abstract method of FlatNavigation
Implements: pan
Param | Type | Description |
---|---|---|
dx | float |
Window direction left/right |
dy | float |
Window direction up/down |
Applies zooming.
Kind: instance abstract method of FlatNavigation
Implements: zoom
Param | Type | Description |
---|---|---|
delta | float |
Delta zoom |
scale | float |
Scale |
Zooms to a 2D position (longitude, latitude).
Kind: instance abstract method of FlatNavigation
Implements: zoomTo
Param | Type | Description |
---|---|---|
geoPos | Array.<float> |
spatial position in decimal degree [longitude, latitude] |
options | Object |
options for zoomTo |
Computes the view matrix
Kind: instance abstract method of FlatNavigation
Implements: computeViewMatrix
Basic animation from current view matrix to the given one
Kind: instance method of FlatNavigation
Implements: toViewMatrix
Param | Type | Description |
---|---|---|
mat | Array.<Object> |
Destination view matrix (array of 16) |
fov | int |
Final zooming fov in degrees |
duration | int |
Duration of animation in milliseconds |
callback | navigationCallback |
Callback at the end of animation |
flatNavigation.getRenderContext() ⇒ RenderContext
Returns the rendering context.
Kind: instance method of FlatNavigation
Implements: getRenderContext
Returns: RenderContext
- the rendering context
Sets the rendering context
Kind: instance method of FlatNavigation
Implements: setRenderContext
Param | Type | Description |
---|---|---|
renderContext | RenderContext |
the rendering context to set |
GoogleMouseNavigationHandler constructor
Kind: static class of Navigation
Param | Type |
---|---|
options | googleMouse_configuration |
KeyboardNavigationHandler constructor.
The keyboard shortcuts are the following :
- space bar : Stop all animations when an event is received
- + : zoom in the camera
- - : zoom out the camera
- Left arrow : pan the camera left
- shift + left arrow : rotate the camera counterclockwise
- Right arrow : pan the camera right
- shift + right arrow : rotate the camera clockwise
- Up arrow : pan the camera up
- shift + up arrow : rotate the camera up
- Down arrow : pan the camera down
- shift + down arrow : rotate the camera down
Kind: static class of Navigation
Param | Type | Description |
---|---|---|
options | keyboard_configuration |
Keyboard navigation configuration |
Mouse_navigationHandler constructor.
The mouse movements are the following :
- Wheel up : zoom in the camera
- Wheel down : zoom out the camera
- Click left+Ri + left mouse : pan the camera right
- Wheel press + left mouse : rotate the camera counterclockwise
- Click left + right mouse : pan the camera left
- Wheel press + right arrow : rotate the camera clockwise
- Click left + up mouse : pan the camera down
- Wheel press + up mouse : rotate the camera down
- Click left + down mouse : pan the camera up
- Wheel press + down mouse : rotate the camera up
Kind: static class of Navigation
Param | Type | Description |
---|---|---|
options | mouse_configuration |
Mouse navigation configuration |
Factory to control the camera.
Kind: static class of Navigation
NavigationFactory.create(type, ctx, options) ⇒ Navigation
Mizar owns different types of navigation to control the camera on the WebGL scene. This class allows to create a navigation based on its type (e.g Astro, Flat, Sky).
[AstroNavigation](#module_Navigation.AstroNavigation) | Provides a camera located at the center of the scene. The camera is inside the globe. It is used to view the sky | |
[PlanetNavigation](#module_Navigation.PlanetNavigation) | Provides a camera, located outside the globe and looking at the globe. It is used to view a planet | |
[FlatNavigation](#module_Navigation.FlatNavigation) | Provides a camera to navigate on a 2D map - Only available in a Planet context |
Kind: static method of NavigationFactory
Returns: Navigation
- navigation
Throws:
-
RangeError
Type not valid - a valid type is included in the list NAVIGATION
See
- PlanetNavigation - Control the camera and turn around the globe, wich is located at the center of the webGL scene.
- AstroNavigation - Control the camera at the center of the scene. The camera is inside the globe
- FlatNavigation - Control the camera. The camera look at the 2D projection
Param | Type | Description |
---|---|---|
type | NAVIGATION |
the type of navigation |
ctx | AbstractContext |
The context where the camera look at |
options |
astro_configuration | planet_configuration | flat_configuration
|
see the navigations. |
Factory to create a device for the control of the camera.
Kind: static class of Navigation
Creates a specific navigation based on its type (e.g Astro, Flat, Sky).
Kind: static method of NavigationHandlerFactory
Returns: Object
- one of the handler
Throws:
-
RangeError
Type not valid - a valid type is included in the list HANDLER
See
- GoogleMouseNavigationHandler - Control the camera with mouse as Google movement
- KeyboardNavigationHandler - Control the camera with the keyboard
- MouseNavigationHandler - Control the camera with the mouse
- TouchNavigationHandler - Control the camera with the smartphone
Param | Type | Description |
---|---|---|
type | HANDLER |
the type of navigation |
options |
touch_configuration | mouse_configuration | googleMouse_configuration | keyboard_configuration
|
see the handlers. |
Navigation.PlanetNavigation ⇐ AbstractNavigation
Provides a camera, located outside the globe and looking at the globe. It is used to view a planet |
Kind: static class of Navigation
Extends: AbstractNavigation
-
.PlanetNavigation ⇐
AbstractNavigation
- new PlanetNavigation(ctx, options)
-
.getType() ⇒
string
-
.getOptions() ⇒
Object
- .start()
- .stop()
- .stopAnimations()
-
.getFov() ⇒
Array.<float>
-
.getCenter() ⇒
Array.<float>
- .rotate(dx, dy)
- .pan(dx, dy)
- .zoom(delta, scale)
- .zoomTo(geoPos, options)
- .computeViewMatrix()
- .toViewMatrix(mat, fov, duration, callback)
-
.getRenderContext() ⇒
RenderContext
- .setRenderContext(renderContext)
Param | Type | Description |
---|---|---|
ctx | PlanetContext |
Planet context |
options | planet_configuration |
Planet navigation configuration |
Returns the type of navigation. The type can take one of the following value : AstroNavigation, FlatNavigation, PlanetNavigation
Kind: instance method of PlanetNavigation
Implements: getType
Returns: string
- the name of the navigation class, which is used
Returns the navigation's options given at the initialisation.
Kind: instance method of PlanetNavigation
Implements: getOptions
Returns: Object
- Options
Starts the navigation.
Kind: instance method of PlanetNavigation
Implements: start
Stops the navigation.
Kind: instance method of PlanetNavigation
Implements: stop
Stops the animations.
Kind: instance method of PlanetNavigation
Implements: stopAnimations
Returns the field of view in decimal degree.
Kind: instance method of PlanetNavigation
Implements: getFov
Returns: Array.<float>
- the Field of view [fov along width, fov along height]
Returns the center of the field of view.
Kind: instance method of PlanetNavigation
Implements: getCenter
Returns: Array.<float>
- the center in decimal degree of the field of view [longitude, latitude]
Rotates the camera.
Kind: instance abstract method of PlanetNavigation
Implements: rotate
Param | Type | Description |
---|---|---|
dx | float |
Window delta x |
dy | float |
Window delta y |
Pans the camera to a direction up/down or left/right with the same distance from the object
Kind: instance abstract method of PlanetNavigation
Implements: pan
Param | Type | Description |
---|---|---|
dx | float |
Window direction left/right |
dy | float |
Window direction up/down |
Applies zooming.
Kind: instance abstract method of PlanetNavigation
Implements: zoom
Param | Type | Description |
---|---|---|
delta | float |
Delta zoom |
scale | float |
Scale |
Zooms to a 2D position (longitude, latitude).
Kind: instance abstract method of PlanetNavigation
Implements: zoomTo
Param | Type | Description |
---|---|---|
geoPos | Array.<float> |
spatial position in decimal degree [longitude, latitude] |
options | Object |
options for zoomTo |
Computes the view matrix
Kind: instance abstract method of PlanetNavigation
Implements: computeViewMatrix
Basic animation from current view matrix to the given one
Kind: instance method of PlanetNavigation
Implements: toViewMatrix
Param | Type | Description |
---|---|---|
mat | Array.<Object> |
Destination view matrix (array of 16) |
fov | int |
Final zooming fov in degrees |
duration | int |
Duration of animation in milliseconds |
callback | navigationCallback |
Callback at the end of animation |
planetNavigation.getRenderContext() ⇒ RenderContext
Returns the rendering context.
Kind: instance method of PlanetNavigation
Implements: getRenderContext
Returns: RenderContext
- the rendering context
Sets the rendering context
Kind: instance method of PlanetNavigation
Implements: setRenderContext
Param | Type | Description |
---|---|---|
renderContext | RenderContext |
the rendering context to set |
TouchNavigationHandler constructor
Kind: static class of Navigation
Param | Type | Description |
---|---|---|
options | touch_configuration |
Touch navigation configuration |
Mizar owns different types of projection, which is used to represent a planet on a 2D map.
[AitoffProjection](#module_Projection.AitoffProjection) | Provides a AITOFF projection | |
[AugustProjection](#module_Projection.AugustProjection) | Provides an august projection | |
[AzimuthProjection](#module_Projection.AzimuthProjection) | Provides an azimuth projection | |
[MercatorProjection](#module_Projection.MercatorProjection) | Provides a mercator projection | |
[MollweideProjection](#module_Projection.MollweideProjection) | Provides a mollweide projection | |
[PlateProjection](#module_Projection.PlateProjection) | Provides a plate carrée projection |
The projection is automatically instantiated by the ProjectedCrs class.
Implements: Projection
- Projection
Projection.AitoffProjection ⇐ AbstractProjection
The Aitoff coordinate system is a coordinate reference system. It is composed of :
- a reference frame : the reference geoid, which is set as parameter of the options object,
- a projection : the Aitoff projection.
The Aitoff projection is a modified azimuthal map projection first proposed by David A. Aitoff in 1889. Based on the equatorial form of the azimuthal equidistant projection, Aitoff halved longitudes from the central meridian, projected by the azimuthal equidistant, and then stretched the result horizontally into a 2:1 ellipse.
Kind: static class of Projection
Extends: AbstractProjection
See: https://en.wikipedia.org/wiki/Aitoff_projection
Param | Type | Description |
---|---|---|
[options] | configuration |
Aitoff projection configuration. |
Kind: instance method of AitoffProjection
Implements: getProjectionCenter
Kind: instance method of AitoffProjection
Implements: getGeoBound
Kind: instance abstract method of AitoffProjection
Implements: unProject
Kind: instance abstract method of AitoffProjection
Implements: project
Projection.AugustProjection ⇐ AbstractProjection
The August coordinate system is a coordinate reference system. It is composed of :
- a reference frame : the reference geoid, which is set as parameter of the options object,
- a projection : the August projection.
Kind: static class of Projection
Extends: AbstractProjection
Param | Type | Description |
---|---|---|
[options] | configuration |
August projection configuration. |
Kind: instance method of AugustProjection
Implements: getProjectionCenter
Kind: instance method of AugustProjection
Implements: getGeoBound
Kind: instance abstract method of AugustProjection
Implements: unProject
Kind: instance abstract method of AugustProjection
Implements: project
Projection.AzimuthProjection ⇐ AbstractProjection
The Azimuth coordinate system is a coordinate reference system. It is composed of :
- a reference frame : the reference geoid, which is set as parameter of the options object,
- a projection : the Azimuth projection.
Kind: static class of Projection
Extends: AbstractProjection
See: https://en.wikipedia.org/wiki/Azimuthal_equidistant_projection
Param | Type | Description |
---|---|---|
[options] | azimuth_configuration |
Azimuthal projection configuration. |
Kind: instance method of AzimuthProjection
Implements: getProjectionCenter
Kind: instance method of AzimuthProjection
Implements: getGeoBound
Kind: instance abstract method of AzimuthProjection
Implements: unProject
Kind: instance abstract method of AzimuthProjection
Implements: project
Projection.MercatorProjection ⇐ AbstractProjection
The Mercator coordinate system is a coordinate reference system. It is composed of :
- a reference frame : the reference geoide, which is set as parameter of the options object,
- a projection : the Mercator projection.
Kind: static class of Projection
Extends: AbstractProjection
See: https://en.wikipedia.org/wiki/Mercator_projection
Param | Type | Description |
---|---|---|
[options] | mercator_configuration |
Mercator projection configuration. |
Kind: instance method of MercatorProjection
Implements: getProjectionCenter
Kind: instance method of MercatorProjection
Implements: getGeoBound
Kind: instance abstract method of MercatorProjection
Implements: unProject
Kind: instance abstract method of MercatorProjection
Implements: project
Projection.MollweideProjection ⇐ AbstractProjection
The Mollweide coordinate system is a coordinate reference system. It is composed of :
- a reference frame : the reference geoid, which is set as parameter of the options object,
- a projection : the Mollweide projection.
Kind: static class of Projection
Extends: AbstractProjection
See: https://en.wikipedia.org/wiki/Mollweide_projection
Param | Type | Description |
---|---|---|
[options] | configuration |
No options. |
Kind: instance method of MollweideProjection
Implements: getProjectionCenter
Kind: instance method of MollweideProjection
Implements: getGeoBound
Kind: instance abstract method of MollweideProjection
Implements: unProject
Kind: instance abstract method of MollweideProjection
Implements: project
Projection.PlateProjection ⇐ AbstractProjection
The Plate coordinate system is a coordinate reference system. It is composed of :
- a reference frame : the reference geoid, which is set as parameter of the options object,
- a projection : the Plate carrée projection.
Kind: static class of Projection
Extends: AbstractProjection
See: https://en.wikipedia.org/wiki/Mollweide_projection
Param | Type | Description |
---|---|---|
[options] | configuration |
No options. |
Kind: instance method of PlateProjection
Implements: getProjectionCenter
Kind: instance method of PlateProjection
Implements: getGeoBound
Kind: instance abstract method of PlateProjection
Implements: unProject
Kind: instance abstract method of PlateProjection
Implements: project
Factory to create a projection
Kind: static class of Projection
ProjectionFactory.create(options) ⇒ Projection
Create a projection
Kind: static method of ProjectionFactory
Throws:
-
RangeError
Will throw when options.projectionName is not part of PROJECTION
Throw: ReferenceError
Will throw when options.projectionName is not defined
Param | Type | Description |
---|---|---|
options |
configuration | azimuth_configuration | mercator_configuration
|
Options. |
Provider
Implements: Provider
-
Provider
- .AbstractProvider
-
.ConstellationProvider ⇐
AbstractProvider
-
.CraterProvider ⇐
AbstractProvider
-
.OpenSearchProvider ⇐
AbstractProvider
-
.PlanetProvider ⇐
AbstractProvider
-
.StarProvider ⇐
AbstractProvider
Abstract Provider constructor
Kind: static class of Provider
Param | Type |
---|---|
options | object |
ConstellationProvider context constructor
Kind: static class of Provider
Extends: AbstractProvider
Param | Type |
---|---|
options | object |
Displays the name of the crater
Kind: static class of Provider
Extends: AbstractProvider
Param | Type |
---|---|
options | object |
OpenSearchProvider context constructor
Kind: static class of Provider
Extends: AbstractProvider
Param | Type |
---|---|
options | object |
Providing planet positions based on ephemeris computations
Kind: static class of Provider
Extends: AbstractProvider
See: http://www.abecedarical.com/javascript/script_planet_orbits.html
Param | Type |
---|---|
options | Object |
Specific star catalogue provider of the Brightest Stars (Ochsenbein+ 1988) from VizieR database
Kind: static class of Provider
Extends: AbstractProvider
See: Search Catalogue of the Brightest Stars (Ochsenbein+ 1988) in VizieR database for more details
Param | Type |
---|---|
options | object |
Reverse Name resolver module : API allowing to retrieve information from a geo picking
Implements: ReverseNameResolver
-
ReverseNameResolver
-
.CDSReverseNameResolver ⇐
AbstractReverseNameResolver
-
.DefaultReverseNameResolver ⇐
AbstractReverseNameResolver
-
.CDSReverseNameResolver ⇐
Plugin to access to CDS reverse name resolver
Kind: static class of ReverseNameResolver
Extends: AbstractReverseNameResolver
-
.CDSReverseNameResolver ⇐
AbstractReverseNameResolver
Param | Type | Description |
---|---|---|
options | Context |
Context |
Kind: instance abstract method of CDSReverseNameResolver
Kind: instance abstract method of CDSReverseNameResolver
Plugin to access to Default reverse name resolver
Kind: static class of ReverseNameResolver
Extends: AbstractReverseNameResolver
-
.DefaultReverseNameResolver ⇐
AbstractReverseNameResolver
Param | Type | Description |
---|---|---|
options | Context |
Context |
Kind: instance abstract method of DefaultReverseNameResolver
Kind: instance abstract method of DefaultReverseNameResolver
Name resolver module : API allowing to search object name and zoom to it
Implements: NameResolver
-
NameResolver
-
.CDSNameResolver ⇐
AbstractNameResolver
-
.DefaultNameResolver ⇐
AbstractNameResolver
-
.DictionaryNameResolver ⇐
AbstractNameResolver
-
.IMCCENameResolver ⇐
AbstractNameResolver
- .NameResolver
-
.CDSNameResolver ⇐
Plugin to access to CDS name resolver
Kind: static class of NameResolver
Extends: AbstractNameResolver
-
.CDSNameResolver ⇐
AbstractNameResolver
Param | Type | Description |
---|---|---|
options | Context |
Context |
Kind: instance abstract method of CDSNameResolver
Kind: instance abstract method of CDSNameResolver
Plugin to access to default name resolver
Kind: static class of NameResolver
Extends: AbstractNameResolver
-
.DefaultNameResolver ⇐
AbstractNameResolver
Param | Type | Description |
---|---|---|
options | Context |
Context |
Kind: instance abstract method of DefaultNameResolver
Kind: instance abstract method of DefaultNameResolver
Plugin to access to the dictionary name resolver
Kind: static class of NameResolver
Extends: AbstractNameResolver
-
.DictionaryNameResolver ⇐
AbstractNameResolver
Param | Type | Description |
---|---|---|
options | Context |
Configuration properties |
Kind: instance abstract method of DictionaryNameResolver
Kind: instance abstract method of DictionaryNameResolver
Plugin to access to IMCCE name resolver
Kind: static class of NameResolver
Extends: AbstractNameResolver
-
.IMCCENameResolver ⇐
AbstractNameResolver
Param | Type | Description |
---|---|---|
options | Context |
Context |
Kind: instance abstract method of IMCCENameResolver
Kind: instance abstract method of IMCCENameResolver
Name resolver
Kind: static class of NameResolver
Search for object name Object name could be:
- Degree in "HMS DMS" or "deg deg"
- Object name as "Mars", "m31", "Mizar"
- For debug : healpix(order,pixelIndex)
Kind: static property of NameResolver
Emits: Mizar#plugin:not_found
Zoom to the given longitude/latitude and add target at the end
Kind: static property of NameResolver
Param | Description |
---|---|
lon | Longitude |
lat | Latitude |
crs | coordinate reference system of the (longitude, latitude) |
callback | Callback once animation is over |
args | Callback arguments |
Init name resolver
Kind: static method of NameResolver
Param | Type | Description |
---|---|---|
m | Mizar |
Mizar API |
Unregisters all event handlers
Kind: static method of NameResolver
Set context
Kind: static method of NameResolver
Animation is an interface to handle animations through a Globe.
Mizar is able to create different types of animation on a globe :
- [InertiaAnimation](#module_Animation.InertiaAnimation) : Animation simulating inertia for camera navigation
- [InterpolatedAnimation](#module_Animation.InterpolatedAnimation) : Generic animation to interpolate arbitrary values
- [PathAnimation](#module_Animation.PathAnimation) : Animation defined with a path
- [SegmentedAnimation](#module_Animation.SegmentedAnimation) : Animation defined with segments
Kind: global interface
See: the animation package
animation.getRenderContext() ⇒ RenderContext
| null
Returns the rendering context.
Kind: instance method of Animation
Returns: RenderContext
| null
- the rendering context
animation.getStatus() ⇒ ANIMATION_STATUS
Returns the status of the animation.
Kind: instance method of Animation
Starts the animation, records the start time in startTime member and registers the animation.
Kind: instance method of Animation
Pauses the animation.
Kind: instance method of Animation
Stops the animation and unregisters the animation.#
Kind: instance method of Animation
Context is an interface to handle a context, which allows Mizar :
- to handle a [Globe](#Globe)
- to handle a [coordinate reference system](#Crs)
- to handle a [Animation](#Animation)
- to handle the graphical components
[SkyContext](#module_Context.SkyContext) | A context representing a sky | |
[PlanetContext](#module_Context.PlanetContext) | A context representing a planet |
- The planet without backgound
- The planet with the sky background
In addition to the classes, a factory is available to help for creating context. Once the context is created, the client can handle it by the use of its interface.
Kind: global interface
See: the context package
-
Context
-
.getContextConfiguration() ⇒
Object
-
.getMizarConfiguration() ⇒
Object
-
.getPositionTracker() ⇒
PositionTracker
-
.getElevationTracker() ⇒
ElevationTracker
- .setCompassVisible(divName, visible)
- .setComponentVisibility(componentId, isVisible)
- .showComponents()
- .show()
- .hideComponents(uiArray)
- .hide()
- .showAdditionalLayers()
- .hideAdditionalLayers()
-
.getLonLatFromPixel(x, y) ⇒
Array.<float>
-
.getPixelFromLonLat(longitude, latitude) ⇒
Array.<int>
-
.getElevation(lon, lat) ⇒
float
-
.getLayers() ⇒
Array.<Layer>
-
.getLayerByID(layerId) ⇒
Layer
|undefined
-
.getLayerByName(layerName) ⇒
Layer
|undefined
-
.setBackgroundLayer(survey) ⇒
Layer
|undefined
-
.setBackgroundLayerByID(surveyID) ⇒
Layer
|undefined
-
.getAdditionalLayers() ⇒
Array.<Layer>
-
.addLayer(mizarDescription) ⇒
Layer
-
.removeLayer(layerID) ⇒
Layer
- .removeAllLayers()
- .addDraw(layer)
- .removeDraw(layer)
-
.getRenderContext() ⇒
RenderContext
-
.getMode() ⇒
CONTEXT
- .setCoordinateSystem(cs)
-
.getCoordinateSystem() ⇒
Crs
-
.getNavigation() ⇒
Navigation
- .addAnimation(anim)
- .removeAnimation(anim)
-
.getTileManager() ⇒
TileManager
- .dispose()
- .refresh()
- .destroy()
- .disable()
- .enable()
- "modifiedNavigation"
- "startNavigation"
- "endNavigation"
- "startLoad"
- "endLoad"
- "backgroundLayer"
- "backgroundSurveyError"
- "baseLayersError"
- "baseLayersReady"
- "startBackgroundLoad"
- "endBackgroundLoad"
- "features:added"
- "layer:add"
- "layer:remove"
- "modifiedCrs"
-
.getContextConfiguration() ⇒
Returns the context Configuration
Kind: instance method of Context
Returns: Object
- - see options.skyContext or options.planetContext for {Mizar}
Returns the mizar Configuration
Kind: instance method of Context
Returns: Object
- - see options.configuration for {Mizar}
context.getPositionTracker() ⇒ PositionTracker
Returns the position tracker.
Kind: instance method of Context
context.getElevationTracker() ⇒ ElevationTracker
Returns the elevation tracker.
Kind: instance method of Context
Sets the compass to visible or not.
Kind: instance method of Context
Param | Type | Description |
---|---|---|
divName | string |
Name of the compass div |
visible | boolean |
Visible or not |
Sets the UI component visibility.
Kind: instance method of Context
Param | Type | Description |
---|---|---|
componentId | string |
Id of the component |
isVisible | boolean |
Sets to True when the component must be visible |
Shows components in the current state given by this.components.
Kind: instance method of Context
Start Navigation and "Show" sky or planet component.
Kind: instance method of Context
Hide components
Kind: instance method of Context
Param | Description |
---|---|
uiArray | Array of components,which must not be hide. |
Stop navigation and hide sky or planet components.
Kind: instance method of Context
Shows the additional layers.
Kind: instance method of Context
Hides the additional layers.
Kind: instance method of Context
Returns the lon-lat from a pixel. The pixel is expressed in the canvas frame, i.e. (0,0) corresponds to the lower-left corner of the pixel
Kind: instance method of Context
Returns: Array.<float>
- an array of two numbers [lon,lat] or null if the pixel is not on the globe
Param | Type | Description |
---|---|---|
x | int |
the x pixel coordinate |
y | int |
the y pixel coordinate |
Returns the pixel coordinates from longitude/latitude in decimal degree.
Kind: instance method of Context
Returns: Array.<int>
- pixels coordinates in the canvas
Param | Type | Description |
---|---|---|
longitude | float |
lonitude in decimal degree in the current coordinate reference system |
latitude | float |
latitude in decimal degree in the current coordinate reference system |
Returns the elevation at a geo position.
Kind: instance method of Context
Returns: float
- the elevation in meter at the position [lon,lat]
Param | Type | Description |
---|---|---|
lon | float |
the longitude in degree |
lat | float |
the latitude in degree |
context.getLayers() ⇒ Array.<Layer>
Returns the layers of a specific context.
Kind: instance method of Context
Returns: Array.<Layer>
- an array of layers
context.getLayerByID(layerId) ⇒ Layer
| undefined
Returns the layer based on its ID. Looks through each value in the layer list, returning the first one that matches the ID, or undefined if no value passes the test. The function returns as soon as it finds an acceptable element, and doesn't traverse the entire list.
Kind: instance method of Context
Returns: Layer
| undefined
- the layer
Param | Type | Description |
---|---|---|
layerId | string |
the layer identifier |
context.getLayerByName(layerName) ⇒ Layer
| undefined
Returns the layer based on its name. Looks through the list of layers and returns the first value that matches the name of the layer. If no match is found, undefined will be returned.
Kind: instance method of Context
Returns: Layer
| undefined
- the layer
Param | Type | Description |
---|---|---|
layerName | string |
Name of the layer |
context.setBackgroundLayer(survey) ⇒ Layer
| undefined
Sets the background survey.
Kind: instance method of Context
Returns: Layer
| undefined
- the layer which has been added to the background
Emits: Context#backgroundLayer:change
, backgroundSurveyError
Param | Type | Description |
---|---|---|
survey | string |
The name of the layer |
context.setBackgroundLayerByID(surveyID) ⇒ Layer
| undefined
Sets the background survey by layer ID.
Kind: instance method of Context
Returns: Layer
| undefined
- the layer which has been added to the background
Param | Type | Description |
---|---|---|
surveyID | string |
The name of the layer |
context.getAdditionalLayers() ⇒ Array.<Layer>
Returns the additional layers.
Kind: instance method of Context
Returns: Array.<Layer>
- the additional layers by opposition to the background layers
context.addLayer(mizarDescription) ⇒ Layer
Registers a new layer to globe to be visualized on the globe.
When layerPlanet is defined, the layer is added to the layerPlanet otherwise the layer is added to the globe. According to the attributes of the layer, the layer is either added as background or as additional layer.
Kind: instance method of Context
Returns: Layer
- the created layer
Emits: Context#backgroundLayer:add
, Context#additionalLayer:add
Param | Type | Description |
---|---|---|
mizarDescription | Object |
See the base properties configuration and specific properties for specific layers |
context.removeLayer(layerID) ⇒ Layer
Removes a layer based on its identifier
Kind: instance method of Context
Returns: Layer
- the removed layer
Param | Type | Description |
---|---|---|
layerID | string |
the layer identifier |
Removes all layers.
Kind: instance method of Context
Adds a temporary draw as a layer on the globe.
A temporary draw is used to create a subLayer or a simple draw. This added layer is not searchable and does not
subscribe to "visibility:changed" by configuration
Kind: instance method of Context
Param | Type |
---|---|
layer | Layer |
Removes the temporary draw on the globe.
Kind: instance method of Context
Param | Type |
---|---|
layer | Layer |
context.getRenderContext() ⇒ RenderContext
Returns the rendering context.
Kind: instance method of Context
Returns: RenderContext
- The rendering context
context.getMode() ⇒ CONTEXT
Returns the mode of the globe
Kind: instance method of Context
Returns: CONTEXT
- the mode of the globe
Sets the coordinate reference system.
Kind: instance method of Context
Throws:
- "incompatible coordinate reference system with globe context (e.g : sky, planet)"
Emits: modifiedCrs
Param | Description |
---|---|
cs | the coordinate reference system |
context.getCoordinateSystem() ⇒ Crs
Returns the reference coordinate system.
Kind: instance method of Context
Returns: Crs
- the coordinate reference system
context.getNavigation() ⇒ Navigation
Returns the navigation.
Kind: instance method of Context
Returns: Navigation
- navigation
Adds an animation.
Kind: instance method of Context
Param | Type | Description |
---|---|---|
anim | Animation |
the animation to add |
Removes an animation.
Kind: instance method of Context
Param | Type | Description |
---|---|---|
anim | Animation |
the animation to remove |
Returns the tile manager.
Kind: instance method of Context
Cleans up every reference to gl objects and unloads all tiles of the current context.
Kind: instance method of Context
Refreshes rendering, must be called when canvas size is modified.
Kind: instance method of Context
Destroys the globe of the current context. The globe is destroyed by :
- cleaning up every reference to gl objects and unloads all tiles
- Removing the renderer from all the tiles
Kind: instance method of Context
Disables the globe of the current context.
Kind: instance method of Context
Enables the globe of the current context.
Kind: instance method of Context
Camera view event.
Called when the view of the camera has changed (pan, rotate, ...)
Kind: event emitted by Context
Start navigation.
Called when navigation is started (by the user or through animation)
Kind: event emitted by Context
End navigation.
Called when navigation is ended (by the user or through animation)
Kind: event emitted by Context
startLoad.
Called when a layer start to be loaded
Kind: event emitted by Context
endLoad.
Called when layer end loading
Kind: event emitted by Context
backgroundLayer.
Called when a layer is loaded as background
Kind: event emitted by Context
backgroundSurveyError.
Called when a layer could not be loaded as background
Kind: event emitted by Context
baseLayersError.
Kind: event emitted by Context
baseLayersReady.
Kind: event emitted by Context
startBackgroundLoad.
Called when background layers (imagery and/or elevation) start to be loaded
Kind: event emitted by Context
endBackgroundLoad.
Called when background layers (imagery and/or elevation) end loading
Kind: event emitted by Context
features:added.
Called when data coming from a GeoJSON are added
Kind: event emitted by Context
Properties
Name | Type |
---|---|
layer | Layer |
features | Object |
layer:add.
Called when a layer is added
Kind: event emitted by Context
See: Layer
layer:remove.
Called when a layer is removed
Kind: event emitted by Context
See: Layer
modifiedCrs.
Called when a CRS changes
Kind: event emitted by Context
CRS is an interface to handle the coordinate reference system, which allows a Context :
- to convert 3D position from/to world coordinates
- to compute the local transformation matrix and vectors from this matrix
[EquatorialCrs](#module_Crs.EquatorialCrs) | Provides an equatorial coordinate reference system | |
[GalacticCrs](#module_Crs.GalacticCrs) | Provides a galactic coordinate reference system | |
[Mars2000Crs](#module_Crs.Mars2000Crs) | Provides a coordinate reference system base on the Mars geoide | |
[WGS84Crs](#module_Crs.WGS84Crs) | Provides a coordinate reference system base on the Earth geoide | |
[ProjectedCrs](#module_Crs.ProjectedCrs) | Provides a projected coordinate reference system on a map |
In addition to the classes, a factory is available to help for creating animation. Once the crs is created, the client can handle it by the use of its interface.
Kind: global interface
See: the coordinate reference system package
-
Crs
- .isFlat() ⇒
- .getVerticalAt3D(pos, dest)
-
.fromGeoTo3D(geo, dest) ⇒
Array.<float>
-
.from3DToGeo(position3d, dest) ⇒
Array.<float>
-
.getLocalTransform(geo, dest) ⇒
Array.<float>
-
.getLHVTransform(geo, dest) ⇒
Array.<float>
-
.getSideVector(matrix, v) ⇒
Array.<float>
-
.getFrontVector(matrix, v) ⇒
Array.<float>
-
.getUpVector(matrix, v) ⇒
Array.<float>
- .formatCoordinates(geo)
-
.getGeoide() ⇒
Geoide
-
.getGeoideName() ⇒
string
-
.getType() ⇒
CRS
-
.getElevation(globe, geoPos) ⇒
float
-
.getWorldFrom3D(position3d, dest) ⇒
Array.<float>
-
.get3DFromWorld(posWorld, dest) ⇒
Array.<float>
-
.get3DFromWorldInCrs(posWorld, posCrsID, dest) ⇒
Array.<float>
-
.getSexagesimalFromDeg(degPos, dest) ⇒
Array.<string>
-
.getDecimalDegFromSexagesimal(sexagesimalPos, dest) ⇒
Array.<float>
-
.convert(geo, from, to) ⇒
Array.<float>
-
.fromDegreesToHMS(degree) ⇒
string
-
.fromDegreesToDMS(degree) ⇒
string
- ._setupPosBeforeTrans(posWorld)
- ._setupPosAfterTrans(posWorld)
-
.getGeoBound() ⇒
GeoBound
Checks when the CRS is a ProjectedCrs. A ProjectedCrs projects data on a 2D map.
Kind: instance method of Crs
Returns: True when the CRS is 2D otherwise False
Computes the direction or vertical as a unit vector of the same direction as the provided pos.
Kind: instance method of Crs
Param | Type | Description |
---|---|---|
pos | Array.<float> |
the position as a 3D vector |
dest | Array.<float> |
the direction as a 3D vector |
Converts a geographic position to a 3D vector.
Kind: instance method of Crs
Returns: Array.<float>
- a 3D vector
Param | Type | Description |
---|---|---|
geo | Array.<float> |
geographical position as a (longitude in degree, latitude in degree, distance from surface in meter) |
dest | Array.<float> |
3D vector |
Converts a 3D vector to geographical position.
Kind: instance method of Crs
Returns: Array.<float>
- geographical position [long, lat, distance from earth surface]
Param | Type | Description |
---|---|---|
position3d | Array.<float> |
3D position |
dest | Array.<float> |
geographical position [long, lat, distance from earth surface] |
Returns the local transformation.
Kind: instance method of Crs
Returns: Array.<float>
- Matrix as 16 values
Param | Type | Description |
---|---|---|
geo | Array.<float> |
geographical position |
dest | Array.<float> |
Matrix as 16 values |
Returns the LHV transformation.
Kind: instance method of Crs
Returns: Array.<float>
- Matrix as 16 values
Param | Type | Description |
---|---|---|
geo | Array.<float> |
geographical position |
dest | Array.<float> |
Matrix as 16 values |
Returns the side (i.e. X) vector from a local transformation
Kind: instance method of Crs
Returns: Array.<float>
- Vector as 3 values
Param | Type | Description |
---|---|---|
matrix | Array.<float> |
Matrix as 16 values |
v | Array.<float> |
Vector as 3 values |
Returns the front (i.e. Y) vector from a local transformation
Kind: instance method of Crs
Returns: Array.<float>
- Vector as 3 values
Param | Type | Description |
---|---|---|
matrix | Array.<float> |
Matrix as 16 values |
v | Array.<float> |
Vector as 3 values |
Returns the up (i.e. Z) vector from a local transformation
Kind: instance method of Crs
Returns: Array.<float>
- Vector as 3 values
Param | Type | Description |
---|---|---|
matrix | Array.<float> |
Matrix as 16 values |
v | Array.<float> |
Vector as 3 values |
Formats the coordinates according to the coordinate reference system.
Kind: instance method of Crs
Param | Type | Description |
---|---|---|
geo | Array.<string> |
position on the globe in decimal degree |
Returns the geoide.
Kind: instance method of Crs
Returns: Geoide
- the geoide
Returns the geoide name.
Kind: instance method of Crs
Returns: string
- the geoide name
crs.getType() ⇒ CRS
Returns the name of the coordinate reference system.
Kind: instance method of Crs
Returns: CRS
- name of the coordinate reference system
Returns the elevation in meters at a given position.
Kind: instance method of Crs
Returns: float
- the elevation in meters
Param | Type | Description |
---|---|---|
globe | AbstractGlobe |
globe |
geoPos | Array.<float> |
position on the globe in decimal degree |
Returns the position in the defined CRS from a 3D position.
Kind: instance method of Crs
Returns: Array.<float>
- the position in the defined coordinate reference system
Param | Type | Description |
---|---|---|
position3d | Array.<float> |
3D position |
dest | Array.<float> |
the position in the defined coordinate reference system |
Returns the 3D position from the defined CRS.
Kind: instance method of Crs
Returns: Array.<float>
- the 3D position
Param | Type | Description |
---|---|---|
posWorld | Array.<float> |
the position in the defined CRS |
dest | Array.<float> |
the 3D position |
Converts the 3D position from geo position in the current CRS to another CRS.
Kind: instance method of Crs
Returns: Array.<float>
- the 3D position
Param | Type | Description |
---|---|---|
posWorld | Array.<float> |
geo position in the current coordinate reference system |
posCrsID | CRS |
ID of the target CRS |
dest | Array.<float> |
the 3D position |
Returns the position in degree to sexagesimal format.
Kind: instance method of Crs
Returns: Array.<string>
- the angle in sexagesimal format
Param | Type | Description |
---|---|---|
degPos | Array.<float> |
the geo position in decimal degree |
dest | Array.<string> |
the angle in sexagesimal format |
Returns the geo position in decimal degree from sexagesimal format.
Kind: instance method of Crs
Returns: Array.<float>
- the geo position in decimal degree
Param | Type | Description |
---|---|---|
sexagesimalPos | Array.<string> |
sexagesimal geo position |
dest | Array.<float> |
the geo position in decimal degree |
Converts a position from a CRS to another CRS.
Kind: instance method of Crs
Returns: Array.<float>
- the position in the target CRS
Param | Type | Description |
---|---|---|
geo | Array.<float> |
geo position |
from | CRS |
the source CRS |
to | CRS |
the target CRS |
Converts an angle to HMS.
Kind: instance method of Crs
Returns: string
- HMS
Param | Description |
---|---|
degree | an angle in decimal degree |
Converts an angle to DMS
Kind: instance method of Crs
Returns: string
- DMS
Param | Description |
---|---|
degree | an angle in decimal degree |
Setups the position before the transformation. posWorld is changed.
Kind: instance method of Crs
Access: protected
Param | Type |
---|---|
posWorld | Array.<float> |
Setups the position after the transformation. posWorld is changed.
Kind: instance method of Crs
Access: protected
Param | Type |
---|---|
posWorld | Array.<float> |
crs.getGeoBound() ⇒ GeoBound
Returns the geo bound of the given coordinate reference system
Kind: instance method of Crs
Returns: GeoBound
- the geo bound
Globe is an interface to handle all WebGL objects through a Context. Globe is able :
- to draw layers,
- to render layers,
- to dispose layers and WebGL objects,
- to transform (longitude,latitude) from/to pixel coordinates
The pixel coordinates are expressed in the canvas frame, i.e. (0,0) corresponds to the lower-left corner of the pixel. The geo-position coordinates(longitude,latitude) are expressed in decimal degree in their defined coordinate reference system.
In Mizar, it exists two kinds of globes :
[Sky](#module_Globe.Sky) | Provides two grids to handle data according to their coordinate reference system : Equatorial, Galactic. Then the globe renders the two grids in the same time. | |
[Planet](#module_Globe.Planet) | Provides only one grid to handle data in the reference frame of the planet |
In addition to the classes, a factory is available to help for creating globe. Once the globe is created, the client can handle it by the use of its interface.
Kind: global interface
See: the globe package
-
Globe
-
.isSky() ⇒
boolean
-
.getType() ⇒
GLOBE
- .setBaseImagery(layer)
-
.getBaseImagery() ⇒
AbstractRasterLayer
-
.setBaseElevation() ⇒
WMSElevationLayer
|WCSElevationLayer
-
.getBaseElevation() ⇒
WMSElevationLayer
|WCSElevationLayer
- .addLayer(layer)
- .removeLayer(layer)
- .addAnimation(anim)
- .removeAnimation(anim)
-
.getElevation(lon, lat) ⇒
float
-
.getViewportGeoBound(transformCallback) ⇒
GeoBound
-
.getLonLatFromPixel(x, y) ⇒
Array.<float>
|null
-
.getPixelFromLonLat(lon, lat) ⇒
Array.<int>
|null
- .setCoordinateSystem(coordinateSystem)
-
.getCoordinateSystem() ⇒
Crs
-
.getRenderStats() ⇒
string
-
.getRenderContext() ⇒
RenderContext
- .setRenderContext(context)
-
.getTileManager() ⇒
TileManager
- .dispose()
- .destroy()
- .refresh()
-
.isEnabled() ⇒
boolean
- .enable()
- .disable()
-
.isSky() ⇒
Checks if the globe is a sky or a planet
Kind: instance method of Globe
Returns: boolean
- True when the globe is a sky otherwise false
globe.getType() ⇒ GLOBE
Returns the type of globe.
Kind: instance method of Globe
Returns: GLOBE
- type of globe
Registers the layer as a background raster and attach it to the globe.
When a raster layer is already set, this layer is replaced by the new one.
Kind: instance method of Globe
Param | Type | Description |
---|---|---|
layer | AbstractRasterLayer |
raster layer to use |
globe.getBaseImagery() ⇒ AbstractRasterLayer
Returns the background raster as a layer.
Kind: instance method of Globe
Returns: AbstractRasterLayer
- the raster layer
Registers the elevation layer and attach it to the globe.
When an elevation layer is already set, this layer is replaced by the new one
Kind: instance method of Globe
Returns: WMSElevationLayer
| WCSElevationLayer
- the layer used
Returns the elevation layer.
Kind: instance method of Globe
Returns: WMSElevationLayer
| WCSElevationLayer
- the layer used
Registers a new layer to globe to be visualized on the globe.
When the layer is added, an internal ID is generated to the layer based on an autoincrement value. Once the layer is added, the globe is rendered. According to the visible attribute of the layer, the layer is automatically shown on the globe.
The layer can be mainly a raster or a set of vectors.
In the vector case, the data is located in the url attribute of the layer object. In addition to the URL,
a callback attribute can be applied to the data.
Kind: instance method of Globe
Emits: layer:add
Param | Type | Description |
---|---|---|
layer | Layer |
the layer to add |
Removes a layer.
The layer is set to unvisible. Then it is detached to the globe. The globe is rendered to remove the layer from the globe.
Kind: instance method of Globe
Emits: layer:remove
Param | Type | Description |
---|---|---|
layer | Layer |
the layer to remove |
Adds an animation to be played later on.
Kind: instance method of Globe
Param | Type | Description |
---|---|---|
anim | Animation |
the animation to add |
Removes an animation.
Kind: instance method of Globe
Param | Type | Description |
---|---|---|
anim | Animation |
the animation to remove |
Returns the elevation in meters at a geo position at the defined coordinate reference system.
Kind: instance method of Globe
Returns: float
- the elevation in meter at the position [lon,lat]
Param | Type | Description |
---|---|---|
lon | float |
the longitude in degree |
lat | float |
the latitude in degree |
globe.getViewportGeoBound(transformCallback) ⇒ GeoBound
Returns the viewport geo bound.
Kind: instance method of Globe
Returns: GeoBound
- the geo bound of the viewport
Param | Description |
---|---|
transformCallback | Callback transforming the frustum/globe intersection coordinates if needed |
Returns the geo position [longitude, latitude] in degree from a pixel.
The pixel is expressed in the canvas frame, i.e. (0,0) corresponds to the lower-left corner of the pixel.
The geo position is expressed in the defined coordinate reference system.
Kind: instance method of Globe
Returns: Array.<float>
| null
- an array of two numbers [lon,lat] or null if the pixel is not on the globe
Param | Type | Description |
---|---|---|
x | int |
the pixel x coordinate |
y | int |
the pixel y coordinate |
Returns the pixel coordinates from geo position [longitude, latitude] in degree in the defined coordinate reference
system.
The pixel is expressed in the canvas frame, i.e. (0,0) corresponds to the lower-left corner of the pixel
Kind: instance method of Globe
Returns: Array.<int>
| null
- an array of two numbers [x,y] or null if the pixel is not on the globe
Param | Type | Description |
---|---|---|
lon | float |
the longitude in decimal degree |
lat | float |
the latitude in decimal degree |
Sets the coordinate reference system
Kind: instance method of Globe
Param | Type | Description |
---|---|---|
coordinateSystem | Crs |
the coordinate reference system |
globe.getCoordinateSystem() ⇒ Crs
Returns the coordinate reference system.
Kind: instance method of Globe
Returns: Crs
- the coordinate reference system
Displays some rendering statistics.
Kind: instance method of Globe
Returns: string
- the statistics
globe.getRenderContext() ⇒ RenderContext
Returns the rendering context.
Kind: instance method of Globe
Returns: RenderContext
- the rendering context
Sets the rendering context.
Kind: instance method of Globe
Param | Type | Description |
---|---|---|
context | RenderContext |
the rendering context |
Returns the tile manager.
Kind: instance method of Globe
Returns: TileManager
- Tile manager
Cleans up every reference to gl objects and unloads all tiles
Kind: instance method of Globe
Destroys the globe. The globe is destroyed by :
- cleaning up every reference to gl objects and unloads all tiles
- Removing the renderer from all the tiles
Kind: instance method of Globe
Refreshes rendering, must be called when canvas size is modified.
Kind: instance method of Globe
Checks if the globe rendering is enabled.
Kind: instance method of Globe
Returns: boolean
- True when the globe rendering is enabled whereas False
Enables the globe. This is used to enable the sky when we use the sphere to map the data. In this way, we see the globe and the sky in the same time.
Kind: instance method of Globe
Disables the globe.
This method is only overloaded by the sky to make disable the sky when the planet is projected on a map.
Kind: instance method of Globe
Interface to handle tracker
Kind: global interface
Update the tracker
Kind: instance method of Tracker
Param |
---|
event |
Compute from geoPosition
Kind: instance method of Tracker
Param | Type |
---|---|
geoPosition | Array.<float> |
Attaches the tracker to the globe
Kind: instance method of Tracker
Param | Type | Description |
---|---|---|
globeContext | globe |
globe |
Detaches from the globe
Kind: instance method of Tracker
Layer is an interface to get access to the layer data model.
In addition to the classes, a factory is available to help for creating layer. Once the layer is created, the client can handle it by the use of its interface.
Kind: global interface
See: the layer package
-
Layer
-
.getGlobe() ⇒
Globe
-
.getID() ⇒
string
-
.getName() ⇒
string
-
.getAttribution() ⇒
string
-
.getCopyrightUrl() ⇒
string
-
.getAck() ⇒
string
-
.getIcon() ⇒
string
-
.getDescription() ⇒
string
-
.isVisible() ⇒
boolean
- .setVisible(arg)
-
.getOpacity() ⇒
float
- .setOpacity(arg)
-
.getProperties() ⇒
Object
-
.getType() ⇒
string
-
.isPickable() ⇒
boolean
-
.isType(type) ⇒
boolean
-
.getServices() ⇒
Array.<string>
-
.getDataType() ⇒
GEOMETRY
-
.getFormat() ⇒
string
-
.getCoordinateSystem() ⇒
Crs
-
.getBaseURl() ⇒
string
-
.isDeletable() ⇒
boolean
-
.getColor() ⇒
Array.<int>
-
.getStyle() ⇒
FeatureStyle
-
.getAvailableServices() ⇒
Array.<Object>
- .isBackground()
- ._attach(g)
- ._detach()
- "visibility:changed"
- "opacity:changed"
-
.getGlobe() ⇒
layer.getGlobe() ⇒ Globe
Returns the globe.
Kind: instance method of Layer
Returns the identifier.
Kind: instance method of Layer
Returns the layer's name.
Kind: instance method of Layer
Returns the attribution
Kind: instance method of Layer
Returns the copyright URL
Kind: instance method of Layer
Returns the acknowledgement.
Kind: instance method of Layer
Returns the icon's url.
By default, a default image is returned.
Kind: instance method of Layer
Returns the layer description.
Kind: instance method of Layer
Check whether the layer is visible.
Kind: instance method of Layer
Sets visible the layer.
Kind: instance method of Layer
Throws:
-
TypeError
Will throw an error when arg is not a boolean
Emits: visibility:changed
Param | Type | Description |
---|---|---|
arg | Boolean |
True when the layer is displayed on the globe otherwise false |
Returns the opacity.
Kind: instance method of Layer
Returns: float
- A value between [0..1]
Sets the opacity.
Kind: instance method of Layer
Throws:
-
TypeError
Will throw an error when arg is not a number in [0..1]
Emits: opacity:changed
Param | Type | Description |
---|---|---|
arg | float |
A value between [0..1], 0 is transparent |
Returns the properties.
Kind: instance method of Layer
Returns: Object
- properties
Returns the type of layer
Kind: instance method of Layer
Checks whether the layer is pickable
Kind: instance method of Layer
Check the type of the layer
Kind: instance method of Layer
Returns: boolean
- Result
Param | Type | Description |
---|---|---|
type | String |
Type to check |
Returns the services related to the layer
Kind: instance method of Layer
layer.getDataType() ⇒ GEOMETRY
Returns the data type for vector layers.
Kind: instance method of Layer
Returns the format for raster layer
Kind: instance method of Layer
Returns: string
- the format
layer.getCoordinateSystem() ⇒ Crs
Returns the coordinate reference system of the layer.
Kind: instance method of Layer
Returns: Crs
- the coordinate reference system of the layer
Returns the base URL
Kind: instance method of Layer
Returns: string
- the base URL
Returns true when the layer is deletable by the client
Kind: instance method of Layer
Returns: boolean
- true when the layer is deletable by the client otherwise false
Returns the layer's color
Kind: instance method of Layer
Returns: Array.<int>
- color in rgba
layer.getStyle() ⇒ FeatureStyle
Returns the style.
Kind: instance method of Layer
Returns: FeatureStyle
- the style
Returns the available services related to the layer.
Kind: instance method of Layer
Returns: Array.<Object>
- the available services
Returns true when the layer is set as background otherwise false.
Kind: instance method of Layer
Attachs the raster layer to the planet.
Kind: instance method of Layer
Access: protected
Param | Type | Description |
---|---|---|
g | Globe |
globe |
Detaches the vector layer from the planet.
Kind: instance method of Layer
Access: protected
visibility:changed.
Called when the visibility of a layer changes
Kind: event emitted by Layer
opacity:changed.
Called when the opacity of a layer changes
Kind: event emitted by Layer
Navigation is an interface that provides some methods used to control the camera.
[AstroNavigation](#module_Navigation.AstroNavigation) | Provides a camera located at the center of the scene. The camera is inside the globe. It is used to view the sky | |
[PlanetNavigation](#module_Navigation.PlanetNavigation) | Provides a camera, located outside the globe and looking at the globe. It is used to view a planet | |
[FlatNavigation](#module_Navigation.FlatNavigation) | Provides a camera to navigate on a 2D map - Only available in a Planet context |
Kind: global interface
See: the navigation package
-
Navigation
-
.getType() ⇒
NAVIGATION
-
.getOptions() ⇒
Object
- .start()
- .stop()
- .stopAnimations()
-
.getFov() ⇒
Array.<float>
- .moveUpTo(vec, [duration])
-
.getCenter() ⇒
Array.<float>
- .rotate(dx, dy)
- .pan(dx, dy)
- .zoom(delta, scale)
- .zoomTo(geoPos, options)
- .toViewMatrix(mat, fov, duration, callback)
-
.getRenderContext() ⇒
RenderContext
- .setRenderContext(renderContext)
- .applyLocalRotation()
- .computeViewMatrix()
-
.getType() ⇒
navigation.getType() ⇒ NAVIGATION
Returns the type of navigation.
Kind: instance method of Navigation
Returns: NAVIGATION
- the type of navigation
Returns the navigation's options at the initialisation.
Kind: instance method of Navigation
Returns: Object
- Options
Starts the navigation.
Kind: instance method of Navigation
Stops the navigation.
Kind: instance method of Navigation
Stops the animations.
Kind: instance method of Navigation
Returns the field of view in decimal degree.
Kind: instance method of Navigation
Returns: Array.<float>
- the Field of view [fov along width, fov along height]
Moves up vector.
Kind: instance method of Navigation
Param | Type | Default | Description |
---|---|---|---|
vec | Array.<float> |
3D Vector | |
[duration] | int |
1000 |
Duration of animation in milliseconds |
Returns the center of the field of view.
Kind: instance method of Navigation
Returns: Array.<float>
- the center in decimal degree of the field of view [longitude, latitude]
Rotates the camera.
Kind: instance method of Navigation
Param | Type | Description |
---|---|---|
dx | float |
Window delta x |
dy | float |
Window delta y |
Pans the camera to a direction up/down or left/right with the same distance from the object
Kind: instance method of Navigation
Param | Type | Description |
---|---|---|
dx | float |
Window direction left/right |
dy | float |
Window direction up/down |
Applies zooming.
Kind: instance method of Navigation
Param | Type | Description |
---|---|---|
delta | float |
Delta zoom |
scale | float |
Scale |
Zooms to a 2D position (longitude, latitude).
Kind: instance method of Navigation
Param | Type | Description |
---|---|---|
geoPos | Array.<float> |
spatial position in decimal degree [longitude, latitude] |
options | Object |
options for the selected navigation |
Basic animation from current view matrix to the given one
Kind: instance method of Navigation
Param | Type | Description |
---|---|---|
mat | Array.<Object> |
Destination view matrix (array of 16) |
fov | int |
Final zooming fov in degrees |
duration | int |
Duration of animation in milliseconds |
callback | function |
Callback on the end of animation |
navigation.getRenderContext() ⇒ RenderContext
Returns the rendering context.
Kind: instance method of Navigation
Returns: RenderContext
- the rendering context
Sets the rendering context
Kind: instance method of Navigation
Param | Type | Description |
---|---|---|
renderContext | RenderContext |
the rendering context to set |
Applies to rotation matrix
Kind: instance method of Navigation
Computes the view matrix
Kind: instance method of Navigation
Projection is an interface that provides many methods used to represent the 3-dimensional surface of the earth or other round body on a 2-dimensional plane in cartography. The creation of a map projection involves two steps :
- selection of a [model for the shape of the body](#Projection+getGeoBound) (choosing between a sphere or ellipsoid),
- transform [planetographic coordinates to plane coordinates](#Projection+project).
[AitoffProjection](#module_Projection.AitoffProjection) | Provides a AITOFF projection | |
[AugustProjection](#module_Projection.AugustProjection) | Provides an august projection | |
[AzimuthProjection](#module_Projection.AzimuthProjection) | Provides an azimuth projection | |
[MercatorProjection](#module_Projection.MercatorProjection) | Provides a mercator projection | |
[MollweideProjection](#module_Projection.MollweideProjection) | Provides a mollweide projection | |
[PlateProjection](#module_Projection.PlateProjection) | Provides a plate carrée projection |
Kind: global interface
See: the projection package
-
Projection
-
.getProjectionCenter() ⇒
Array.<float>
-
.getGeoBound() ⇒
GeoBound
-
.unProject(position3d, dest) ⇒
Array.<float>
-
.project(geoPos, dest) ⇒
Array.<float>
-
.getProjectionCenter() ⇒
Returns the projection center.
Kind: instance method of Projection
Returns: Array.<float>
- the projection center (longitude in degree, latitude in degree)
projection.getGeoBound() ⇒ GeoBound
Returns the geobound
Kind: instance method of Projection
Unprojects coordinates from a given 2D map to world coordinates
Kind: instance method of Projection
Returns: Array.<float>
- physical position (longitude in degree, latitude in degree, altitude in meter)
Param | Type | Description |
---|---|---|
position3d | Array.<float> |
3D position on the map (x in pixel, y in pixel, altitude in meter) |
dest | Array.<float> |
physical position (longitude in degree, latitude in degree, altitude in meter) |
Projects the world coordinates to a given 2D map
Kind: instance method of Projection
Returns: Array.<float>
- position on the map (x in pixel, y in pixel, altitude in meter)
Param | Type | Description |
---|---|---|
geoPos | Array.<float> |
physical position (longitude in degree, latitude in degree, altitude in meter) |
dest | Array.<float> |
position on the map (x in pixel, y in pixel, altitude in meter) |
Provider is an interface that provides methods to load file, which are not supported by Mizar.
Kind: global interface
Kind: instance abstract method of Provider
Kind: instance method of Provider
Loads a specific file passed from configuration
Kind: instance method of Provider
Param | Type |
---|---|
layer | Layer |
configuration | Object |
Process data and add them to the layer
Kind: instance method of Provider
Param | Type |
---|---|
layer | Layer |
API allowing to retry an information from a geo picking
Kind: global interface
Code to execute when the service is request to get the information
Kind: instance method of ReverseNameResolver
Param | Description |
---|---|
options | options |
Code to execute when remove
Kind: instance method of ReverseNameResolver
API allowing to search object name and zoom to it
Kind: global interface
Queries a service based on an object name.
Kind: instance method of NameResolver
Param | Type | Description |
---|---|---|
options | Object |
Search configuration |
options.objectName | string |
Searched name |
options.onError | function |
Callback function when error |
options.onComplete | function |
Callback function when finish |
options.onSuccess | function |
Callback function when success |
options.searchLayer | function |
Layer where the research is done |
options.zoomTo | function |
ZoomTo function |
Code to execute when remove
Kind: instance method of NameResolver
Creates an instance of the Mizar API.
Kind: global class
-
Mizar
- new Mizar(options)
- new Mizar(options)
-
instance
- .AnimationFactory
- .ServiceFactory
- .ProviderFactory
- .VERSION
- .ANIMATION
- .LAYER
- .GEOMETRY
- .NAVIGATION
- .CONTEXT
- .PROJECTION
- .CRS
- .SERVICE
- .UTILITY
- .PROVIDER
- .AnimationFactory
- .ServiceFactory
- .ProviderFactory
- .VERSION
- .ANIMATION
- .LAYER
- .GEOMETRY
- .NAVIGATION
- .CONTEXT
- .PROJECTION
- .CRS
- .SERVICE
- .UTILITY
- .PROVIDER
-
.getSkyContext() ⇒
SkyContext
|null
-
.getPlanetContext() ⇒
PlanetContext
|null
-
.getActivatedContext() ⇒
PlanetContext
|SkyContext
- .setActivatedContext(contextMode)
-
.getRenderContext() ⇒
RenderContext
-
.getOptions() ⇒
parameters
-
.getCrs() ⇒
Crs
- .setCrs(coordinateSystem)
- .createContext(contextMode, options)
- .toggleDimension()
- .toggleContext(gwLayer, options, callback)
-
.getSkyLayers() ⇒
Array.<Layer>
-
.getPlanetLayers() ⇒
Array.<Layer>
-
.getLayers(mode) ⇒
Array.<Layer>
-
.getAllLayers() ⇒
Array.<Layer>
-
.getLayerByID(layerID, mode) ⇒
Layer
|undefined
-
.getLayerByName(layerName, mode) ⇒
Layer
|undefined
-
.addLayer(layerDescription, [layerPlanet]) ⇒
string
-
.removeLayer(layerID, mode) ⇒
boolean
-
.setBackgroundLayer(layerName, mode) ⇒
boolean
-
.setBackgroundLayerByID(layerID, mode) ⇒
boolean
-
.setBaseElevation(layerName, mode) ⇒
boolean
-
.searchOnLayerDescription(query, mode) ⇒
Array.<Layer>
-
.searchSkyLayer(query) ⇒
Array.<Layer>
-
.searchPlanetLayer(query) ⇒
Array.<Layer>
- .registerNoStandardDataProvider(type, loadFunc, mode)
-
.createStats(options) ⇒
Stats
- .render()
- .dispose()
- .destroy()
-
.getSkyContext() ⇒
SkyContext
|null
-
.getPlanetContext() ⇒
PlanetContext
|null
-
.getActivatedContext() ⇒
PlanetContext
|SkyContext
- .setActivatedContext(contextMode)
-
.getRenderContext() ⇒
RenderContext
-
.getOptions() ⇒
parameters
-
.getCrs() ⇒
Crs
- .setCrs(coordinateSystem)
- .createContext(contextMode, options)
- .toggleDimension()
- .toggleContext(gwLayer, options, callback)
-
.getSkyLayers() ⇒
Array.<Layer>
-
.getPlanetLayers() ⇒
Array.<Layer>
-
.getLayers(mode) ⇒
Array.<Layer>
-
.getAllLayers() ⇒
Array.<Layer>
-
.getLayerByID(layerID, mode) ⇒
Layer
|undefined
-
.getLayerByName(layerName, mode) ⇒
Layer
|undefined
-
.addLayer(layerDescription, [layerPlanet]) ⇒
string
-
.removeLayer(layerID, mode) ⇒
boolean
-
.setBackgroundLayer(layerName, mode) ⇒
boolean
-
.setBackgroundLayerByID(layerID, mode) ⇒
boolean
-
.setBaseElevation(layerName, mode) ⇒
boolean
-
.searchOnLayerDescription(query, mode) ⇒
Array.<Layer>
-
.searchSkyLayer(query) ⇒
Array.<Layer>
-
.searchPlanetLayer(query) ⇒
Array.<Layer>
- .registerNoStandardDataProvider(type, loadFunc, mode)
-
.createStats(options) ⇒
Stats
- .render()
- .dispose()
- .destroy()
-
static
-
.inputParameters :
Object
-
.parameters :
Object
-
.inputConfiguration :
Object
-
.configuration :
inputConfiguration
-
.inputParameters :
Object
-
.parameters :
Object
-
.inputConfiguration :
Object
-
.configuration :
inputConfiguration
-
.inputParameters :
Param | Type | Description |
---|---|---|
options | inputParameters |
Configuration for Mizar |
Param | Type | Description |
---|---|---|
options | inputParameters |
Configuration for Mizar |
Creates an animation
Kind: instance property of Mizar
Creates a service
Kind: instance property of Mizar
Creates a provider
Kind: instance property of Mizar
Static variable, API version.
SemVer concept is used for versioning
Kind: instance property of Mizar
Static variable, supported animation type
Kind: instance property of Mizar
Static variable, supported layer type
Kind: instance property of Mizar
Static variable, supported geometry type
Kind: instance property of Mizar
Static variable, supported navigation type
Kind: instance property of Mizar
Static variable, supported context type
Kind: instance property of Mizar
Static variable, supported projection type
Kind: instance property of Mizar
Static variable, supported coordinate reference system type
Kind: instance property of Mizar
Static variable, supported service type
Kind: instance property of Mizar
Static variable, supported utility type
Kind: instance property of Mizar
Static variable, supported provider type
Kind: instance property of Mizar
Creates an animation
Kind: instance property of Mizar
Creates a service
Kind: instance property of Mizar
Creates a provider
Kind: instance property of Mizar
Static variable, API version.
SemVer concept is used for versioning
Kind: instance property of Mizar
Static variable, supported animation type
Kind: instance property of Mizar
Static variable, supported layer type
Kind: instance property of Mizar
Static variable, supported geometry type
Kind: instance property of Mizar
Static variable, supported navigation type
Kind: instance property of Mizar
Static variable, supported context type
Kind: instance property of Mizar
Static variable, supported projection type
Kind: instance property of Mizar
Static variable, supported coordinate reference system type
Kind: instance property of Mizar
Static variable, supported service type
Kind: instance property of Mizar
Static variable, supported utility type
Kind: instance property of Mizar
Static variable, supported provider type
Kind: instance property of Mizar
Returns the sky context.
Kind: instance method of Mizar
Returns the planet context.
Kind: instance method of Mizar
Returns the selected context
Kind: instance method of Mizar
Selects the context as default context according to the context mode.
Once a context is selected, methods can be applied to it.
Kind: instance method of Mizar
Throws:
-
RangeError
contextMode not valid - a valid contextMode is included in the list CONTEXT
Emits: Mizar#mizarMode:toggle
Param | Type | Description |
---|---|---|
contextMode | CONTEXT |
select one context among context |
mizar.getRenderContext() ⇒ RenderContext
Returns the rendering context.
Kind: instance method of Mizar
Returns: RenderContext
- the rendering context
mizar.getOptions() ⇒ parameters
Returns the options
Kind: instance method of Mizar
Returns: parameters
- - Mizar's options
mizar.getCrs() ⇒ Crs
Returns the coordinate reference system related to the selected context
Kind: instance method of Mizar
Returns: Crs
- the coordinate reference system
See
Sets the coordinate reference system related to the selected context
Kind: instance method of Mizar
See
Param | Type | Description |
---|---|---|
coordinateSystem |
configuration | azimuth_configuration | mercator_configuration
|
coordinate system description |
Creates a context according to the context mode.
The created context is selected automatically as default context. The rendering context for the new
context is retrieved from the previous context.
Kind: instance method of Mizar
Throws:
-
RangeError
contextMode not valid - a valid contextMode is included in the list CONTEXT
Emits: Mizar#mizarMode:toggle
Param | Type | Description |
---|---|---|
contextMode | CONTEXT |
Select on context among context |
options |
skyContext | planetContext
|
Options for the context, See options.planetContext or options.skycontext configuration for Mizar |
Switches 2D <--> 3D, only for planetary context.
When this method is used in a sky context, and exception is thrown
Kind: instance method of Mizar
Throws:
- "Not implemented" - Will throw an exception for Sky mode. In this version, the sky cannot be projected in 2D
Switches planetary <---> sky context
Kind: instance method of Mizar
Emits: Mizar#mizarMode:toggle
Param | Type | Description |
---|---|---|
gwLayer | PlanetLayer |
planet layer |
options | planetContext |
options for the planet |
callback | toggleContextCallback |
Call at the end of the toggle |
mizar.getSkyLayers() ⇒ Array.<Layer>
Returns the sky layers, which have been added by addLayer.
Kind: instance method of Mizar
Returns: Array.<Layer>
- the layers
mizar.getPlanetLayers() ⇒ Array.<Layer>
Returns the planet layers, which have been added by addLayer
Kind: instance method of Mizar
Returns: Array.<Layer>
- the layers
mizar.getLayers(mode) ⇒ Array.<Layer>
Returns the layers for a specific context.
When no context is specified, the layers from the selected context are returned.
Kind: instance method of Mizar
Returns: Array.<Layer>
- the layers
Throws:
-
RangeError
Will throw an error when the mode is not part of CONTEXT
See
Param | Type | Description |
---|---|---|
mode |
CONTEXT | undefined
|
Context on which the function is applied |
mizar.getAllLayers() ⇒ Array.<Layer>
Returns all the layers regardless of the context.
Kind: instance method of Mizar
Returns: Array.<Layer>
- the layers
mizar.getLayerByID(layerID, mode) ⇒ Layer
| undefined
Returns the layer by its ID according to the context.
When no context is specified, the layer from the selected context is returned.
The ID is a unique layer identifier, which is returned when the layer description is added
to Mizar
Kind: instance method of Mizar
Returns: Layer
| undefined
- The layer or undefined when the layer is not found
See
Param | Type | Description |
---|---|---|
layerID | Layer's ID | |
mode |
CONTEXT | undefined
|
Context on which the function is applied |
mizar.getLayerByName(layerName, mode) ⇒ Layer
| undefined
Returns the layer by its name according to the context.
When no context is specified, the layer from the selected context is returned.
Note: The name may not be unique. In this case, the first layer having this name is returned
Kind: instance method of Mizar
Returns: Layer
| undefined
- the layer or undefined when the layer is not found
Throws:
-
RangeError
Will throw an error when the mode is not part of CONTEXT
See
Param | Type | Description |
---|---|---|
layerName | string |
Layer's name, provided in the layer description when the layer is added |
mode |
CONTEXT | undefined
|
Context on which the function is applied |
Adds a layer according to the selected context.
When layerPlanet is not provided, then the layer is added to the selected context otherwise the layer
is added to the layerPlanet.
Kind: instance method of Mizar
Returns: string
- a unique identifier
See
- AtmosphereLayer : A layer to create an atmosphere on a planet.
- BingLayer: The Microsoft service proving a WMTS server.
- CoordinateGridLayer : A layer to create a grid on the sky
- GeoJSONLayer : A layer to add a GeoJSON on the globe
- GroundOverlayLayer : A layer to draw an image overlay draped onto the terrain
- HipsCatLayer : A layer to draw a HIPS catalogue
- HipsFitsLayer : A layer to draw an Hips Fits
- HipsGraphicLayer : A layer to draw a Hips JPEG/PNG
- MocLayer : A layer to draw a multi-order-coverage index
- OpenSearchLayer : A layer to draw the result from an open search service
- OSMLayer : A layer to display data coming from OpenStreetMap server
- PlanetLayer : A layer to save all layers of a planet
- TileWireframeLayer : A layer to draw a grid on the planet
- VectorLayer : A layer to draw a vector
- WCSElevationLayer : A layer to draw the elevation
- WMSElevationLayer : A layer to draw the elevation
- WMSLayer : A layer to draw images coming from the WMS server
- WMTSLayer : A layer to draw predefined tiles coming from a WMTS server
- setActivatedContext
- createContext
Todo
- Bug to fix : PlanetLayer should use this function to create layer when the context changes
Param | Type | Description |
---|---|---|
layerDescription | Object |
See the base properties configuration and a specific layer for specific properties |
[layerPlanet] | PlanetLayer |
the planet with which the layer must be linked |
Removes a layer by its ID according to the context.
When no context is specified, then the function is applied on the selected context.
Kind: instance method of Mizar
Returns: boolean
- True when the layer is added otherwise False
Throws:
-
RangeError
Will throw an error when the mode is not part of CONTEXT
See
Param | Type | Description |
---|---|---|
layerID | string |
Layer's ID |
mode |
CONTEXT | undefined
|
Context on which the function is applied |
Sets the background layer according to the selected context.
When no context is specified, then the function is applied on the selected context.
Note 1: The name is not a unique identifier. The first layer matching at this name is returned
Note 2: The layer must be added before
Kind: instance method of Mizar
Returns: boolean
- True when the layer is set as background otherwise False
Throws:
-
RangeError
Will throw an error when the mode is not part of CONTEXT
See
Param | Type | Description |
---|---|---|
layerName | string |
Layer's name, which has been provided in the layer description |
mode |
CONTEXT | undefined
|
Context on which the function is applied |
Sets the background layer by ID according to the context.
When no context is specified, then the function is applied on the selected context.
Note: The layer must be added before
Kind: instance method of Mizar
Returns: boolean
- True when the layer is set as background otherwise False
Throws:
-
RangeError
Will throw an error when the mode is not part of CONTEXT
See
Param | Type | Description |
---|---|---|
layerID | string |
Unique layer identifier. |
mode |
CONTEXT | undefined
|
Context on which the function is applied. |
Sets the base elevation by its layer's name according to the context.
When no context is specified, then the function is applied on the selected context.
Note: The layer must be added before
Kind: instance method of Mizar
Returns: boolean
- True when the base elevation is set otherwise false
Throws:
-
RangeError
Will throw an error when the mode is not part of CONTEXT
See
Param | Type | Description |
---|---|---|
layerName | string |
Name of the layer |
mode |
CONTEXT | undefined
|
Context on which the function is applied |
mizar.searchOnLayerDescription(query, mode) ⇒ Array.<Layer>
Looks through each value in the list according to the context, returning an array of all the values that match the query.
The query is performed on the name and the description of each layer.
When no context is specified, the function is applied on the selected context.
Kind: instance method of Mizar
See
Param | Type | Description |
---|---|---|
query | string |
query on the layer'name or description |
mode |
CONTEXT | undefined
|
Context on which the query is run. |
mizar.searchSkyLayer(query) ⇒ Array.<Layer>
Looks through each value in the sky layers, returning an array of all the values that match the query.
The query is performed on the name and the description of each layer
Kind: instance method of Mizar
Returns: Array.<Layer>
- An array of layers matching the constraint
Param | Type | Description |
---|---|---|
query | string |
query on the layer'name or description |
mizar.searchPlanetLayer(query) ⇒ Array.<Layer>
Looks through each value in the planets layers, returning an array of all the values that match the query.
The query is performed on the name and the description of each layer
Kind: instance method of Mizar
Returns: Array.<Layer>
- An array of layers matching the constraint
Param | Type | Description |
---|---|---|
query | string |
query on the layer'name or description |
Registers no standard data provider in a predefined context.
When no context is specified, the function is applied to the selected context.
Kind: instance method of Mizar
Throws:
-
RangeError
Will throw an error when the mode is not part of CONTEXT
See
Param | Type | Description |
---|---|---|
type | string |
data provider key |
loadFunc | function |
Function to convert the data |
mode |
CONTEXT | undefined
|
Context |
Example (Registers planets on the sky)
var planetProvider = ProviderFactory.create(Mizar.PROVIDER.Planet);
this.registerNoStandardDataProvider("planets", planetProvider.loadFiles);
mizar.createStats(options) ⇒ Stats
Creates and get Stats Object
Kind: instance method of Mizar
Param | Type | Description |
---|---|---|
options | Object |
Configuration properties for stats. See Stats for options |
Renders the canvas.
Kind: instance method of Mizar
Disposes the Mizar's contexts (planet and sky)
Kind: instance method of Mizar
Destroys Mizar
Kind: instance method of Mizar
Returns the sky context.
Kind: instance method of Mizar
Returns the planet context.
Kind: instance method of Mizar
Returns the selected context
Kind: instance method of Mizar
Selects the context as default context according to the context mode.
Once a context is selected, methods can be applied to it.
Kind: instance method of Mizar
Throws:
-
RangeError
contextMode not valid - a valid contextMode is included in the list CONTEXT
Emits: Mizar#mizarMode:toggle
Param | Type | Description |
---|---|---|
contextMode | CONTEXT |
select one context among context |
mizar.getRenderContext() ⇒ RenderContext
Returns the rendering context.
Kind: instance method of Mizar
Returns: RenderContext
- the rendering context
mizar.getOptions() ⇒ parameters
Returns the options
Kind: instance method of Mizar
Returns: parameters
- - Mizar's options
mizar.getCrs() ⇒ Crs
Returns the coordinate reference system related to the selected context
Kind: instance method of Mizar
Returns: Crs
- the coordinate reference system
See
Sets the coordinate reference system related to the selected context
Kind: instance method of Mizar
See
Param | Type | Description |
---|---|---|
coordinateSystem |
configuration | azimuth_configuration | mercator_configuration
|
coordinate system description |
Creates a context according to the context mode.
The created context is selected automatically as default context. The rendering context for the new
context is retrieved from the previous context.
Kind: instance method of Mizar
Throws:
-
RangeError
contextMode not valid - a valid contextMode is included in the list CONTEXT
Emits: Mizar#mizarMode:toggle
Param | Type | Description |
---|---|---|
contextMode | CONTEXT |
Select on context among context |
options |
skyContext | planetContext
|
Options for the context, See options.planetContext or options.skycontext configuration for Mizar |
Switches 2D <--> 3D, only for planetary context.
When this method is used in a sky context, and exception is thrown
Kind: instance method of Mizar
Throws:
- "Not implemented" - Will throw an exception for Sky mode. In this version, the sky cannot be projected in 2D
Switches planetary <---> sky context
Kind: instance method of Mizar
Emits: Mizar#mizarMode:toggle
Param | Type | Description |
---|---|---|
gwLayer | PlanetLayer |
planet layer |
options | planetContext |
options for the planet |
callback | toggleContextCallback |
Call at the end of the toggle |
mizar.getSkyLayers() ⇒ Array.<Layer>
Returns the sky layers, which have been added by addLayer.
Kind: instance method of Mizar
Returns: Array.<Layer>
- the layers
mizar.getPlanetLayers() ⇒ Array.<Layer>
Returns the planet layers, which have been added by addLayer
Kind: instance method of Mizar
Returns: Array.<Layer>
- the layers
mizar.getLayers(mode) ⇒ Array.<Layer>
Returns the layers for a specific context.
When no context is specified, the layers from the selected context are returned.
Kind: instance method of Mizar
Returns: Array.<Layer>
- the layers
Throws:
-
RangeError
Will throw an error when the mode is not part of CONTEXT
See
Param | Type | Description |
---|---|---|
mode |
CONTEXT | undefined
|
Context on which the function is applied |
mizar.getAllLayers() ⇒ Array.<Layer>
Returns all the layers regardless of the context.
Kind: instance method of Mizar
Returns: Array.<Layer>
- the layers
mizar.getLayerByID(layerID, mode) ⇒ Layer
| undefined
Returns the layer by its ID according to the context.
When no context is specified, the layer from the selected context is returned.
The ID is a unique layer identifier, which is returned when the layer description is added
to Mizar
Kind: instance method of Mizar
Returns: Layer
| undefined
- The layer or undefined when the layer is not found
See
Param | Type | Description |
---|---|---|
layerID | Layer's ID | |
mode |
CONTEXT | undefined
|
Context on which the function is applied |
mizar.getLayerByName(layerName, mode) ⇒ Layer
| undefined
Returns the layer by its name according to the context.
When no context is specified, the layer from the selected context is returned.
Note: The name may not be unique. In this case, the first layer having this name is returned
Kind: instance method of Mizar
Returns: Layer
| undefined
- the layer or undefined when the layer is not found
Throws:
-
RangeError
Will throw an error when the mode is not part of CONTEXT
See
Param | Type | Description |
---|---|---|
layerName | string |
Layer's name, provided in the layer description when the layer is added |
mode |
CONTEXT | undefined
|
Context on which the function is applied |
Adds a layer according to the selected context.
When layerPlanet is not provided, then the layer is added to the selected context otherwise the layer
is added to the layerPlanet.
Kind: instance method of Mizar
Returns: string
- a unique identifier
See
- AtmosphereLayer : A layer to create an atmosphere on a planet.
- BingLayer: The Microsoft service proving a WMTS server.
- CoordinateGridLayer : A layer to create a grid on the sky
- GeoJSONLayer : A layer to add a GeoJSON on the globe
- GroundOverlayLayer : A layer to draw an image overlay draped onto the terrain
- HipsCatLayer : A layer to draw a HIPS catalogue
- HipsFitsLayer : A layer to draw an Hips Fits
- HipsGraphicLayer : A layer to draw a Hips JPEG/PNG
- MocLayer : A layer to draw a multi-order-coverage index
- OpenSearchLayer : A layer to draw the result from an open search service
- OSMLayer : A layer to display data coming from OpenStreetMap server
- PlanetLayer : A layer to save all layers of a planet
- TileWireframeLayer : A layer to draw a grid on the planet
- VectorLayer : A layer to draw a vector
- WCSElevationLayer : A layer to draw the elevation
- WMSElevationLayer : A layer to draw the elevation
- WMSLayer : A layer to draw images coming from the WMS server
- WMTSLayer : A layer to draw predefined tiles coming from a WMTS server
- setActivatedContext
- createContext
Todo
- Bug to fix : PlanetLayer should use this function to create layer when the context changes
Param | Type | Description |
---|---|---|
layerDescription | Object |
See the base properties configuration and a specific layer for specific properties |
[layerPlanet] | PlanetLayer |
the planet with which the layer must be linked |
Removes a layer by its ID according to the context.
When no context is specified, then the function is applied on the selected context.
Kind: instance method of Mizar
Returns: boolean
- True when the layer is added otherwise False
Throws:
-
RangeError
Will throw an error when the mode is not part of CONTEXT
See
Param | Type | Description |
---|---|---|
layerID | string |
Layer's ID |
mode |
CONTEXT | undefined
|
Context on which the function is applied |