flywave-mapview.mapviewoptions
Home > @flywave/flywave-mapview > MapViewOptions
MapViewOptions interface
User configuration for the MapView.
Signature:
export interface MapViewOptions extends TextElementsRendererOptions, Partial<LookAtParams>
Extends: TextElementsRendererOptions, Partial<LookAtParams>
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
boolean | (Optional) If
| ||
boolean | (Optional) | ||
TilingScheme | (Optional) Set tiling scheme for [[BackgroundDataSource]] | ||
HTMLCanvasElement | The canvas element used to render the scene. | ||
CelestiaOptions | (Optional) Options for Celestia | ||
(Optional) User-defined camera clipping planes distance evaluator. If not defined, TiltViewClipPlanesEvaluator will be used by MapView. | |||
WebGLRenderingContext | (Optional) Optional WebGL Rendering Context. (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) | ||
(Optional) Antialias settings for the map rendering. It is better to disable the native antialiasing if the custom antialiasing is enabled. | |||
number | (Optional) The number of Web Workers used to decode data. The default is CLAMP( | ||
string | (Optional) The URL of the script that the decoder worker runs. The default URL is Relative URIs are resolved to full URL using the document's base URL (see: https://www.w3.org/TR/WD-html40-970917/htmlweb.html\#h-5.1.2). | ||
number | (Optional) Set fixed pixel ratio for rendering when the camera is moving or an animation is running. Useful when rendering on high resolution displays with low performance GPUs that may be fill-rate limited. If a value is specified, a low resolution render pass is used to render the scene into a low resolution render target, before it is copied to the screen. A value of Since no anti-aliasing is applied during dynamic rendering with The resolution of icons and text labels is not affected.
| ||
boolean | (Optional) Set true to enable rendering mixed levels of detail (increases rendering performance). If not set will enable mixed levels of detail for spherical projection and disable for other projections. undefined | ||
boolean | (Optional) Whether the native WebGL antialiasing should be enabled. It is better to disable it if the MapView's MSAA is enabled.
| ||
boolean | (Optional) Set to | ||
boolean | (Optional) Should be the PolarTileDataSource used on spherical projection. Default is | ||
boolean | (Optional) | ||
boolean | (Optional) Enable shadows in the map. Shadows will only be casted on features that use the "standard" or "extruded-polygon" technique in the map theme. false | ||
boolean | (Optional) Set to | ||
boolean | (Optional) Set to true to extend the frustum culling. This improves the rejection of some tiles, which normal frustum culling cannot detect. You can disable this property to measure performance. true | ||
(Optional) How to calculate the Field of View, if not specified, then [[DEFAULT_FOV_CALCULATION]] is used. | |||
string[] | (Optional) | ||
number | (BETA) (Optional) If enableMixedLod is 256 | ||
boolean | (Optional) | ||
GeoBox | (Optional) If set, the view will constrained within the given bounds in geo coordinates. | ||
number | (Optional) Set maximum FPS (Frames Per Second). If VSync in enabled, the specified number may not be reached, but instead the next smaller number than E.g.: If the monitors refresh rate is set to 60hz, and if | ||
number | (Optional) | ||
number | (Optional) The maximum number of tiles rendered from one data source at a time. See [[MapViewDefaults.maxVisibleDataSourceTiles]]. | ||
number | (Optional) The maximum zoom level. The default is | ||
number | (Optional) Determines the minimum camera height, in meters. | ||
number | (Optional) | ||
number | (Optional) The minimum zoom level; default is | ||
number | (Optional) Maximum timeout, in milliseconds, before a [[MOVEMENT_FINISHED_EVENT]] is sent after the latest frame with a camera movement. The default is 300ms. | ||
number | (Optional) Set fixed pixel ratio for rendering. Useful when rendering on high resolution displays with low performance GPUs that may be fill-rate limited. | ||
number | (Optional) Storage level offset of regular tiles from reference datasource to align PolarTileDataSource tiles to. Default is | ||
string | (Optional) The name of the [[StyleSet]] used by PolarTileDataSource to evaluate for the decoding. Default is | ||
string | (Optional) Sets the data sources to use specific country point of view (political view). This option may result in rendering different country borders then commonly accepted for some regions and it mainly regards to so called __disputed borders__. Although not all data sources or themes may support it. Country code should be coded in lower-case ISO 3166-1 alpha-2 standard, if this option is | ||
(Optional) Hint for the WebGL implementation on which power mode to prefer. | |||
boolean | (Optional) Preserve the buffers until they are cleared manually or overwritten. Set to
| ||
Projection | (Optional) The default value is [[mercatorProjection]]. | ||
number | (Optional) Limits the number of higher zoom levels (more detailed) to be searched for fallback tiles. When zooming out, newly elected tiles may have not yet loaded. MapView searches through the tile cache for tiles ready to be displayed in higher zoom levels. These tiles may be located deeper in the quadtree. To disable a cache search, set the value to [[MapViewDefaults.quadTreeSearchDistanceDown]] | ||
number | (Optional) Limits the number of reduced zoom levels (lower detail) to be searched for fallback tiles. When zooming in, newly elected tiles may have not yet loaded. MapView searches through the tile cache for tiles ready to be displayed in lower zoom levels. The tiles may be located shallower in the quadtree. To disable a cache search, set the value to [[MapViewDefaults.quadTreeSearchDistanceUp]] | ||
(Optional) Specify if the cache should be counted in tiles or in megabytes. | |||
boolean | (Optional) Set to By calling You need to set up your own render loop controller. Event Internal false. | ||
string | Theme | FlatTheme | Promise<Theme> | (Optional) The used by Mapview. This Theme can be one of the following: - **Note:** Layers that use a theme do not render any content until that theme is available. Relative URIs are resolved to full URL using the document's base URL (see: https://www.w3.org/TR/WD-html40-970917/htmlweb.html\#h-5.1.2). Custom URIs (of theme itself and of resources referenced by theme) may be resolved with help of [[uriResolver]]. | ||
boolean | (BETA) (Optional) Enable throttling for the TaskScheduler false | ||
number | (Optional) Size of a tile cache for one data source. See [[MapViewDefaults.tileCacheSize]]. | ||
boolean | (Optional) Enable map repeat for planar projections. If
| ||
UriResolver | (Optional) Resolve Use, to support application/deployment specific Example: | ||
(width: number, height: number, mapView: MapView) => MapRenderingManager | (Optional) | ||
(mapView: MapView, options: MapViewOptions) => MapViewEnvironment | (Optional) | ||
(mapView: MapView, uriResolver: UriResolver | undefined) => MapViewThemeManager | (Optional) |