Beginner in the Second Development of Skyline software-7 how to set colors on 3D maps on Web pages

Source: Internet
Author: User

1. Color example:

<HTML>
<Head>
<Title> coordinates 1 </title>
<Object ID = "sgworld" classid = "CLSID: 3a4f91b1-65a8-11d5-85c1-0001023952c1" style = "visibility: hidden; Height: 0"> </Object>
<SCRIPT type = "text/JavaScript">

Function Init ()
{
VaR coord = sgworld. creator. createposition (-71.00864, 42.36229 );
VaR radius = 500.0; // 500 Meter

VaR outlinecolor = sgworld. creator. createcolor (0, 0, 0, 0 );

// Red
VaR redcircle = sgworld. creator. createcircle (coord, radius, outlinecolor, sgworld. creator. createcolor (255, 0, 0 ));
Sgworld. creator. createtextlabel (coord, "createcolor (255, 0, 0) \ r \ nred", sgworld. creator. createlabelstyle ());

// Green, with Alpha transparency
Coord. X-= 0.015;
VaR greencircle = sgworld. creator. createcircle (coord, radius, outlinecolor, sgworld. creator. createcolor (0,255, 0,100 ));
Sgworld. creator. createtextlabel (coord, "createcolor (0,255, 0,100) \ r \ ngreen, with Alpha transparency", sgworld. creator. createlabelstyle ());

// Blue, using HTML color format
Coord. Y + = 0.015;
VaR bluecircle = sgworld. creator. createcircle (coord, radius, outlinecolor, "# 0000ff ");
Sgworld. creator. createtextlabel (coord, "\" # 0000ff \ "\ r \ nblue, using HTML color format", sgworld. creator. createlabelstyle ());

// Yellow, using abgr format ///////////////////////////////////// ////////////////
Coord. x + = 0.015;
VaR yellowcircle = sgworld. creator. createcircle (coord, radius, outlinecolor, 0xaa00ffff );
Sgworld. creator. createtextlabel (coord, "0xaa00ffff \ r \ nyellow, using abgr format", sgworld. creator. createlabelstyle ());

Coord. altitude = 4000;
Coord. Y-= 0.035;
Coord. Pitch =-45;
Sgworld. Navigate. flyto (coord );
}

</SCRIPT>
</Head>
<Body onload = "Init ();">
</Body>
</Html>

 

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.