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 mainly introduces how to achieve the pop-up bubble of the object in the secondary development of te, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let the editor take you to know it.
In the secondary development of te, you need to display the information of the object, pop up a bubble on the map and point to the current object.
This function can be implemented in several ways, sometimes on data.
For individual objects, you can add a message to the data and click on the object on the map to pop up a bubble, which can be text or web page. The script script can be viewed in the previous official account article.
The objects in the vector layer can be linked to the web page according to the attribute information of each object in the vector layer, and the information displayed is different according to different parameters.
The following image shows the attributes of the layer:
The following figure shows that according to the attributes, the web page is developed in advance, and the parameters show different web page effects:
If you need to click on a single object to display bubble information in development, you can also implement it by using CreateMessage in Creator to create a message object, connect it to the Message= "MessageID in the terrainobject attribute, and set this value to the id of message.
There is also a way to pop up bubbles, which can be created using CreatePopupMessage in Creator. The created bubbles can not use the arrow to point to the object, but can also display information. This kind of bubble object needs to be popped up by ShowPopup in the Window interface.
In the bs development of te 3D window, floating a window is a very difficult thing, iframe and other ways, sometimes the display is unstable, so it is a common way to display bubbles on the 3D window.
Thank you for reading this article carefully. I hope the article "how to realize the pop-up bubble of objects in the secondary development of TE" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.