worldwide-telescope-web-con.../samples.md

43 строки
7.4 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

2017-07-29 23:12:58 +03:00
## Web Control Samples
The following table lists the samples that can be used as a starting point for WorldWide Telescope web client development.
2017-10-02 19:39:52 +03:00
To view the source, you can click the gist or bl.ocks.org link. Note that paths may need to be changed for the samples to work, these paths are highlighted by comments in the sample code.
To add your web control sample you may either contact us, or create a gist and send us the link, or update this file and submit a pull request.
2017-07-29 23:12:58 +03:00
2017-08-09 01:57:41 +03:00
### Sky samples
2017-10-02 19:04:09 +03:00
| Sample Name | Description | Gist | Bl.ocks |
| :-- | :-- | :-- | :-- |
2017-10-02 19:24:01 +03:00
| WWT Web Client Simple | Performs the basic steps of opening up a client, and provides a few UI controls to select one of two constellations, and change a few settings. | [![](images/gist.svg "https://gist.github.com/philrosenfield/0edd8e5e2f2e92ac27596204b3e47932")](https://gist.github.com/philrosenfield/0edd8e5e2f2e92ac27596204b3e47932) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/0edd8e5e2f2e92ac27596204b3e47932")](https://bl.ocks.org/philrosenfield/0edd8e5e2f2e92ac27596204b3e47932) |
| WWT Web Client Poly | Adds the creation of two circle, one polygon and one polyline annotation objects to the simple client. | [![](images/gist.svg "https://gist.github.com/philrosenfield/ab13be544d0189a6571b892b231b401d")](https://gist.github.com/philrosenfield/ab13be544d0189a6571b892b231b401d) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/ab13be544d0189a6571b892b231b401d")](https://bl.ocks.org/philrosenfield/ab13be544d0189a6571b892b231b401d) |
| WWT Web Client Arrived | Shows the use of the Arrived event, drawing a red circle on the new view when the event is received. | [![](images/gist.svg "https://gist.github.com/philrosenfield/81d70d196ec5fbcc28f859905dce0978")](https://gist.github.com/philrosenfield/81d70d196ec5fbcc28f859905dce0978) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/81d70d196ec5fbcc28f859905dce0978")](https://bl.ocks.org/philrosenfield/81d70d196ec5fbcc28f859905dce0978) |
| WWT Web Client Click Event | Shows the use of the Click event, drawing a circle or an alert box giving the location of the click. | [![](images/gist.svg "https://gist.github.com/philrosenfield/bed1c0a32430b914fbfcf98bd6c9503c")](https://gist.github.com/philrosenfield/bed1c0a32430b914fbfcf98bd6c9503c) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/bed1c0a32430b914fbfcf98bd6c9503c")](https://bl.ocks.org/philrosenfield/bed1c0a32430b914fbfcf98bd6c9503c) |
| WWT Web Client Fov | Shows the current Field of View, with buttons to zoom in and out. | [![](images/gist.svg "https://gist.github.com/philrosenfield/935ea8244b5e7628824b5e2e428ec899")](https://gist.github.com/philrosenfield/935ea8244b5e7628824b5e2e428ec899) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/935ea8244b5e7628824b5e2e428ec899")](https://bl.ocks.org/philrosenfield/935ea8244b5e7628824b5e2e428ec899) |
| WWT Web Client Local View | Shows the view from a number of cities around the world. | [![](images/gist.svg "https://gist.github.com/philrosenfield/8c7c38936d3a905d0dc26fe2dc9ca0f9")](https://gist.github.com/philrosenfield/8c7c38936d3a905d0dc26fe2dc9ca0f9) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/8c7c38936d3a905d0dc26fe2dc9ca0f9")](https://bl.ocks.org/philrosenfield/8c7c38936d3a905d0dc26fe2dc9ca0f9) |
| WWT Web Client Images | Loads a sample image collection, enabling the selection of one of three foreground images. | [![](images/gist.svg "https://gist.github.com/philrosenfield/80344030734766655ebee946788169e7")](https://gist.github.com/philrosenfield/80344030734766655ebee946788169e7) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/80344030734766655ebee946788169e7")](https://bl.ocks.org/philrosenfield/80344030734766655ebee946788169e7) |
| WWT Web Client Tours | Loads and runs one of two simple tours of the Solar System. | [![](images/gist.svg "https://gist.github.com/philrosenfield/7c58348c5da096709d9ff65c0d4f6599")](https://gist.github.com/philrosenfield/7c58348c5da096709d9ff65c0d4f6599) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/7c58348c5da096709d9ff65c0d4f6599")](https://bl.ocks.org/philrosenfield/7c58348c5da096709d9ff65c0d4f6599) |
2017-07-29 23:12:58 +03:00
2017-08-09 01:57:41 +03:00
### Earth samples
2017-07-29 23:12:58 +03:00
2017-10-02 19:24:01 +03:00
| Sample Name | Description| Gist | Bl.ocks |
| :-- | :-- | :-- | :-- |
2017-10-02 19:39:52 +03:00
| WWT Web Client Earth City Search | Change the view to the Earth, then locate cities and lat/long locations. | [![](images/gist.svg "https://gist.github.com/philrosenfield/46d2ebace646db016d7249d942b85569")](https://gist.github.com/philrosenfield/46d2ebace646db016d7249d942b85569) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/46d2ebace646db016d7249d942b85569")](https://bl.ocks.org/philrosenfield/46d2ebace646db016d7249d942b85569) |
2017-10-02 19:24:01 +03:00
2017-07-29 23:12:58 +03:00
2017-08-09 01:57:41 +03:00
### Planet samples
2017-10-02 19:24:01 +03:00
| Sample Name | Description | Gist | Bl.ocks |
| :-- | :-- | :-- | :-- |
| WWT Web Client Mars Explorer | Change the view to Planets and the Imagery to Mars, then scroll through a range of surface features from the _Valles Marineris_ canyon to the _Happy Face_ crater. | [![](images/gist.svg "https://gist.github.com/philrosenfield/b23f05efdea71aa382efee79a76b6b94")](https://gist.github.com/philrosenfield/b23f05efdea71aa382efee79a76b6b94) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/b23f05efdea71aa382efee79a76b6b94")](https://bl.ocks.org/philrosenfield/b23f05efdea71aa382efee79a76b6b94) |
2017-07-29 23:12:58 +03:00
## Web Control Demos
The following table lists some demonstration programs that have been created using the SDK.
2017-10-02 19:39:52 +03:00
| Demo Name | Description | Gist | Bl.ocks |
| :-- | :-- | :-- | :-- |
| WWT Web Client Hi-Def Planet Explorer | Provides a range of options for exploring the surfaces of our Moon and Mars. Thousands of surface features, including craters, mountains, valleys, seas, plains, ridges and depressions, are available to step through, sort, search and view. <br> Make sure to select the correct planet or moon in the **Look At** and **Imagery** drop down lists, after starting the program. | [![](images/gist.svg "https://gist.github.com/philrosenfield/f33198b570b4561e15d8d6af9e16d108")](https://gist.github.com/philrosenfield/f33198b570b4561e15d8d6af9e16d108) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/f33198b570b4561e15d8d6af9e16d108")](https://bl.ocks.org/philrosenfield/f33198b570b4561e15d8d6af9e16d108) |
| WWT Web Client Distant Planet Explorer | Provides a range of options for exploring the surfaces of Mercury, Venus, and the four main moons of Jupiter: IO, Ganymede, Europa and Callisto. Hundreds of surface features, are available to step through, sort, search and view. <br> Make sure to select the correct planet or moon in the **Look At** and **Imagery** drop down lists, after starting the program. | [![](images/gist.svg "https://gist.github.com/philrosenfield/e366bec0db9ce4e82013f3144aaed0e3")](https://gist.github.com/philrosenfield/e366bec0db9ce4e82013f3144aaed0e3) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/e366bec0db9ce4e82013f3144aaed0e3")](https://bl.ocks.org/philrosenfield/e366bec0db9ce4e82013f3144aaed0e3) |
| WWT Web Client Messier Catalog | All 110 objects in this famous catalog can be viewed, displayed as a slide show, sorted and searched. | [![](images/gist.svg "https://gist.github.com/philrosenfield/55082c9e9ff26a77444617be1353d6c5")](https://gist.github.com/philrosenfield/55082c9e9ff26a77444617be1353d6c5) | [![](images/blocks.png "https://bl.ocks.org/philrosenfield/55082c9e9ff26a77444617be1353d6c5")](https://bl.ocks.org/philrosenfield/55082c9e9ff26a77444617be1353d6c5) |