The second development of Skyline software-1 how to add controls and load 3D map data on the web page

Source: Internet
Author: User

Skylineglobe: A mature 3D geographic information service platform.

You can use aerial and satellite images, Terrain elevation data, and other 2D and 3D Geospatial Data and attribute data to create custom 3D visualization scenarios, browsing, querying, analyzing, and releasing networks, and opening up all APIs. Whether in a network environment or a single-Host application, users can customize functions based on their own business needs, establish a personalized three-dimensional geographic information system.

1 <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <HTML xmlns = "http://www.w3.org/1999/xhtml">
3 4 <title> </title>
5 <SCRIPT type = "text/JavaScript" Language = "JavaScript">
6 function create3dpolygon (){
7 var SG = createsgobj ();
8 SG. Command. Execute );
9}
10
11 function test (){
12 try {
13 var SG = createsgobj ();
14 SG. Project. Open ("F: \ test2.fly", 1 ,"","");
15}
16 catch (e ){
17 alert (E );
18}
19}
20 /*
21 function: Create an sgworld object
22 remarks: Zhao He 2011.04.01.
23 */
24
25 function createsgobj (){
26 var OBJ = $ ("sgworld ");
27 if (OBJ = NULL ){
28 OBJ = Document. createelement ('object ');
29 document. Body. appendchild (OBJ );
30 obj. Name = "sgworld ";
31 obj. ID = "sgworld ";
32 obj. classid = "CLSID: 3a4f91b1-65a8-11d5-85c1-0001023952c1 ";
33}
34 return OBJ;
35}
36 function $ (ID ){
37 return response Doc ument. getelementbyid (ID );
38}
39 </SCRIPT>
40 41 <body onload = "test ()">
42 <input id = "button1" type = "button" value = "create object" onclick = "create3dpolygon ()"/>
43 <Object ID = "te3dwindow" classid = "CLSID: 3a4f9192-65a8-11d5-85c1-0001023952c1" width = "500px"
44 Height = "500px">
45 </Object>
46 </body>
47 Embed the following object code on the Web page to reference ActiveX components provided by Skyline:

3D scenarios:<Object ID = "terraexplorer3dwindow" classid = "CLSID: 3a4f9192-65a8-11d5-85c1-0001023952c1"> </Object>

Information Tree:<Object ID = "terraexplorerinformationwindow" classid = "CLSID: 3a4f9193-65a8-11d5-85c1-0001023952c1"> </Object>

Navigation chart:<Object ID = "terraexplorernavigationmap" classid = "CLSID: 3a4f9194-65a8-11d5-85c1-0001023952c1"> </Object>

3D scenario extension:<Object ID = "terraexplorer3d1_wex" classid = "CLSID: 3a4f9196-65a8-11d5-85c1-0001023952c1"> </Object>

Sgworld object: <Object ID = "sgworld61" classid = "CLSID: 3a4f91b1-65a8-11d5-85c1-0001023952c1"> </Object>

Related Article

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.