Cesium API's about viewer

Source: Internet
Author: User

1, the viewer is used to build three-dimensional main components, through the creation of the viewer can complete three-dimensional pictures, terrain display, etc.

2. Properties

* @param {element| String} container: Specifies the ID of the HTML tag or tag that holds the viewer on the HTML page

* @param {object} [options] object with the following properties:
* @param {Boolean} [Options.animation=true] If the value is true, an animated display part is created and, if False, an animated display part is not created.
* @param {Boolean} [Options.baselayerpicker=true] If the value is set to True, Baselayerpicker is created (the part is associated with a panel for managing image and terrain);

If False, it is not created.
* @param {Boolean} [Options.fullscreenbutton=true] If the value is true, the full-screen assembly is created on the page, or False if it is not created
* @param {Boolean} [Options.geocoder=true] If the value is true, the map encoder is created; otherwise it is not created.
* @param {Boolean} [Options.homebutton=true] If the value is true, the part is created;
* @param {Boolean} [Options.infobox=true] If the value is false, no information query box part is created;
* @param {Boolean} [Options.scenemodepicker=true] If the value is true, the scene mode part is created;
* @param {Boolean} [Options.selectionindicator=true] If the value is true, it is created;
* @param {Boolean} [Options.timeline=true] is set to true, the time axis is displayed in the viewer, otherwise hidden
* @param {Boolean} [Options.navigationhelpbutton=true] is set to true, the Help button is displayed in the viewer; otherwise hidden
* @param {Boolean} [Options.navigationinstructionsinitiallyvisible=true] True if the navigation instructions should Initially be visible, or false if the should isn't be shown until the user explicitly clicks the button.
* @param {Boolean} [Options.scene3donly=false] This value is true; the plotted content is saved in the video card
* Clock in @param {clock} [Options.clock=new clock ()] Viewer displays the current system time
* @param {Providerviewmodel} [Options.selectedimageryproviderviewmodel] Specifies the current imagery layer, the default setting if no value is set by the image The first of the player collections, and the premise of using this propertyBaselayerpicker set to True (set three-dimensional tiles)
* @param {providerviewmodel[]} [Options.imageryproviderviewmodels=createdefaultimageryproviderviewmodels ()] only ifBaselayerpicker is set to true; This parameter can be used; provided from the specified imagery provider
* @param {Providerviewmodel} [Options.selectedterrainproviderviewmodel].Specifies the current terrain layer, which defaults to the first in the terrain player collection if it is not set, and the precondition for using this property is Baselayerpicker set to True (set terrain)
* @param {providerviewmodel[]} [Options.terrainproviderviewmodels=createdefaultterrainproviderviewmodels ()]This parameter is available only if Baselayerpicker is set to true; from the specified terrain provider

* @param {Imageryprovider} [Options.imageryprovider=new Bingmapsimageryprovider ()] Use the Bing Maps service by default as long as the value is set to False baselayerpicker

* @param {Terrainprovider} [Options.terrainprovider=new Ellipsoidterrainprovider ()] ellipsoidal terrain Service
* @param {Skybox} [Options.skybox] This value is used to render the stars if they are undefined, the stars will be displayed using the default way.
* @param {Element} [Options.fullscreenelement=document.body] When clicked Fullscreenbutton the full screen display
* @param {Boolean} [Options.usedefaultrenderloop=true] This value is true to control three-dimensional loop rendering. Otherwise, you cannot
* @param {number} [Options.targetframerate] target rendering speed
* @param {Boolean} [Options.showrenderlooperrors=true] This value is true when a panel is used to show errors that occur during the rendering process
* @param {Boolean} [Options.automaticallytrackdatasourceclocks=true] This value is true to automatically update data or upgrade data based on the latest time
* @param {Object} [options.contextoptions]
* @param {Scenemode} [Options.scenemode=scenemode.scene3d] initial first three-dimensional scene
* @param {mapprojection} [Options.mapprojection=new geographicprojection ()] Map projection mode setting (2d and Columbus)
* @param {Boolean} [options.orderindependenttranslucency=true]. This value is set to true and can be supported; it is displayed in a semi-transparent manner
* @param {element| String} [Options.creditcontainer] Creates a container based on the tag element or ID, or, if not specified, is automatically created at the bottom of the part
* @param {datasourcecollection} [Options.datasources=new datasourcecollection ()] A collection of data sources for this visual part; When the viewer is destroyed, the visualization is not destroyed
*

3. Use as follows:

var viewer = new Cesium.viewer (' Cesiumcontainer ', {

Animation:false,//animation control not displayed

baselayerpicker:true,//Layer Control Display

geocoder:false,//name lookup does not appear

timeline:false,//time line does not display

scenemodepicker:true//Projection mode display

});

4. API Address

Http://cesiumjs.org/refdoc.html

Cesium API's about viewer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.