flywave-mapview.mapview
Home > @flywave/flywave-mapview > MapView
MapView class
The core class of the library to call in order to create a map visualization. It needs to be linked to datasources.
Signature:
export declare class MapView extends EventDispatcher
Extends: EventDispatcher
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| The AnimatedExtrusionHandler controls animated extrusion effect of the extruded objects in the Tile | ||
| boolean | Returns | |
| THREE.PerspectiveCamera | The THREE.js camera used by this | |
| boolean | Returns | |
| The CameraMovementDetector detects camera movements. Made available for performance measurements. | ||
| HTMLCanvasElement | The HTML canvas element used by this | |
number | The alpha used to clear the view. | ||
number | The color used to clear the view. | ||
Get camera clipping planes evaluator used. | |||
| HTMLCanvasElement | undefined | The HTML canvas element used by this | |
| CopyrightInfo[] | ||
| Returns DataSources displayed by this | ||
boolean | |||
boolean | |||
| boolean | Is | |
number | undefined | |||
| ElevationProvider | undefined | Returns the elevation provider. | |
boolean | undefined | |||
| Env | Environment used to evaluate dynamic scene expressions. | |
boolean | Specifies whether extended frustum culling is enabled or disabled. | ||
| number | The distance (in pixels) between the screen and the camera. | |
| Public access to MapViewFog allowing to toggle it by setting its | ||
number | undefined | Gets the value of the forced custom camera aspect. Every time a frame is rendered, You can disable this behavior by setting the value to | ||
| number | Return current frame number. | |
GeoBox | undefined | The view's maximum bounds in geo coordinates if any. | ||
number | Returns heading angle in degrees. | ||
| boolean | Returns | |
string[] | undefined | Lists the ISO 639-1 language codes for DataSources to use. | ||
| THREE.Light[] | ||
boolean | Returns the status of frustum culling after each update. | ||
| The node in this MapView's scene containing the user MapAnchors. | ||
| The instance of MapRenderingManager managing the rendering of the map. It is a public property to allow access and modification of some parameters of the rendering process at runtime. | ||
number | |||
number | The maximum zoom level. Default is 14. | ||
| number | The minimum camera height in meters. | |
number | The minimum zoom level. | ||
| boolean | Returns
| |
| THREE.Scene | The THREE.js overlay scene | |
| PickHandler | Get the [[PickHandler]] for this | |
number | |||
| number | Returns the ratio between a pixel and a world unit for the current camera (in the center of the camera projection). | |
THREE.PerspectiveCamera | undefined | Gets the optional camera used to render the scene. | ||
| Get the array of PoiTableManager that belongs to this | ||
string | undefined | Get currently presented political point of view - the country code. Country code is stored in lower-case ISO 3166-1 alpha-2 standard. Country code or undefined if default (majorly accepted) point of view is used. | ||
PostEffects | undefined | The abstraction of the MapRenderingManager API for post effects. | ||
Projection | The projection used to project geo coordinates to world coordinates. | ||
| THREE.WebGLRenderer | The THREE.js | |
boolean | |||
The way the cache usage is computed, either based on size in MB (mega bytes) or in number of tiles. | |||
| THREE.Scene | The THREE.js scene used by this | |
boolean | |||
| number | Returns the storage level for the given camera setup. | |
| GeoCoordinates | Get geo coordinates of camera focus (target) point. | |
| TaskQueue | ||
| The TextElementsRenderer select the visible s and renders them. | ||
Theme | Gets the current | ||
boolean | (BETA) | ||
| TileGeometryManager | undefined | The [[TileGeometryManager]] manages geometry during loading and handles hiding geometry of specified [[GeometryKind]]s. | |
boolean | |||
number | Returns tilt angle in degrees. | ||
| boolean | Returns | |
| UriResolver | undefined | used to resolve application/deployment specific | |
| Get the for user images that belongs to this Images added to this cache can be removed if no longer required. | ||
| number | Returns height of the viewport in pixels. | |
| Access the | ||
| THREE.Vector3 | The position in world coordinates of the center of the scene. | |
| number | Returns the ratio between a world and a pixel unit for the current camera (in the center of the camera projection). | |
number | Returns the zoom level for the given camera setup. |
Methods
Method | Modifiers | Description |
|---|---|---|
Adds a new DataSource to this | ||
Adds an event listener. There are various events that are sent before or after a new frame is rendered. | ||
Adds new overlay text elements to this | ||
Begin animating the scene. | ||
Clears any elevation sources and provider previously set. | ||
Adds new overlay text elements to this | ||
Clear the tile cache. | ||
Disposes this | ||
Stop animating the scene. | ||
Apply a visitor function to all tiles in the cache. | ||
Apply visitor to all visible tiles. | ||
Returns the cache size. | ||
Get canvas client size in css/client pixels. Supports canvases not attached to DOM, which have 0 as | ||
Returns the unique DataSource matching the given name. | ||
Returns the array of DataSources referring to the same [[StyleSet]]. | ||
Same as but always returning a geo coordinate. | ||
Returns the from the given screen position. | ||
Returns the normalized screen coordinates from the given pixel position. | ||
Returns the screen position of the given geo or world position. | ||
Returns the currently set | ||
Do a raycast on all objects in the scene. Useful for picking. | ||
Returns true if the specified DataSource is enabled. | ||
Loads a post effects definition file. | ||
Adjusts the camera to look at a given geo coordinate with tilt and heading angles. | ||
The method that sets the camera to the desired angle ( | ||
Visit each tile in visible, rendered, and cached sets. | ||
Transfer the NDC point to view space. | ||
Removes DataSource from this | ||
Removes the given dynamic property from this MapView. | ||
Removes an event listener. There are various events that are sent before or after a new frame is rendered. | ||
Redraws scene immediately | ||
Requests a redraw of the scene. | ||
Reset the frame number to 0. | ||
Resize the HTML canvas element and the THREE.js | ||
Sets the cache size in number of tiles. | ||
Updates the value of a dynamic property. | ||
setElevationSource(elevationSource, elevationRangeSource, elevationProvider) | Sets the DataSource which contains the elevations, the elevation range source, and the elevation provider. | |
Set's the way in which the fov is calculated on the map view. | ||
Changes the | ||
Requests a redraw of the scene. | ||
| Derive the look at settings (i.e. target, zoom, ...) from the current camera. |