In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what is the simple writing of TE object message js script. The quality of the article content is high, so Xiaobian shares it with you for reference. I hope you have a certain understanding of relevant knowledge after reading this article.
The objects and layers in TE support adding messages. One of the message types is Script. You can write JavaScript scripts in the pop-up box. The following figure is to switch to Script Information:
Write a simple script example:
alert("this is a message! ");
After writing, close the window, click on the object in the map window, and a warning box will pop up. This is a simple script.
There is a certain development foundation, and you can also write a complex script in it. For specific development interfaces, refer to TE's API development document: ProgrammersGuide.chm
This object can be obtained from the message, the keyword is: This
For example:
alert(This66.ID);
This code is, click on the object, pop up the ID of this object;
The message also supports SGWorld in TE's development interface, which is similar to the code written in the program.
For example:
alert(SGWorld66.Project.Name);
Click on the object to pop up the name of the current project.
Write a more complex function below, click on the object, let the object change color, and highlight an effect, the specific implementation is as follows:
This66.Terrain.Tint = SGWorld66.Creator.CreateColor(255,0,0,125);
Get the Tint of this object, set to the color of sgworld.
This66, SGWorld66 is a development interface that uses 6.6, in which case letters should be strictly in accordance with the rules, which can be used in projects to simplify some development work.
About TE object message js script simple writing is what to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.