In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to draw rainfall distribution for comprehensive application of Qt map compilation. The introduction in this article is very detailed and has certain reference value. Interested friends must read it!
I. Foreword
The rainfall distribution map is based on the regional map, and is displayed in different colors for each minimum unit area in the area, such as county points. At the beginning of this encapsulation, there was no interface for setting the color of each point separately. After several strong suggestions from customers, the interface for setting different colors for each point was added through biting teeth, which is more in line with the actual needs. For example, this point will be displayed in red when it reaches the alarm stage. Normal stage green display, if no color has been set, the value of the default color, all do not set the color of all the default color. The color value of each point is the same as the latitude and longitude coordinates of the corresponding point, and the queue set is set down.
II. Functional characteristics
It also supports blinking dot map, migration map, regional map, world map, dashboard, etc.
You can set title, prompt information, background color, text color, line color, area color and other colors.
You can set the name, value, latitude and longitude of the city.
You can set the magnification of the map and whether to allow the mouse wheel to zoom.
Built-in world map, national map, provincial map, regional map, can be accurate to the county, all maps are offline use.
Built-in json data file to js file function of various provinces and cities, such as data update self-conversion, support single file conversion and one-click conversion of all files.
Built-in function to obtain all the names and latitude and longitude information sets of the area from json file or js file, which can be used to obtain information for display.
Depends on browser components to display maps, provides demo support webkit/webengine/minilink/ie multiple ways to load web pages.
Using minilink browser kernel to get through Qt5.6 and later versions +mingw compiler lack of browser module regret, so that the whole project supports all Qt versions, pro-test 4.7 to 6.2 and other arbitrary versions.
Support setting color separately for points set such as blinking dot migration graph.
Provide an interface to directly obtain the relevant information of the clicked point, which is convenient for program linkage processing.
Expandability is very strong, you can add a variety of exquisite echarts components according to the gourd painting, and make awesome effects.
The built-in dashboard component provides interactive functionality, and the demo demo contains the corresponding code.
Function interface friendly and unified, easy to use, on a class.
Support any Qt version, any system, any compiler.
III. Effect Drawing
void frmEcharts::initMap(){ //actively set the height of the echart control echart->setHeight(ui->widget->height()); QStringList cityName, cityValue, cityPoint, cityColor, cityTip; cityName
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.