Home > database >  Hot grid layer
Hot grid layer

Time:09-24

Development tools and key technology: SuperMap GIS MVC/GIS # C
Author: wen-jin zhang
Time to write: 2018/12/22-2019/1/22
1, first of all define the style of the grid style class, see screenshot 1, 2,

Figure 1


Figure 2
2, the statement of variable var infowin hot grid, heatGridLayer, see screenshot 3

Figure 3
3, then come to normal map loading information, create hotspots grid figure, see screenshot

Figure 4
4, normal mapping, asynchronous loading layer, select control create grid, declare a hot grid layer, called heatGridLayer via callbacks is passed to the callback function, click on the feature of the two events, the grid is open, shut down the grid two events, movestart is triggered at the beginning, and then sends a request to the server, see screenshot

Figure 5
5, sends a request to the server to get data, see screenshot

Figure 6
6, the processing is complete, claimed the code query, characteristics of grid array, and then the output data set, traversal cycle all the options, CLASS_NAME is the name of the class, protorype attributes, and then put all of the terrain data saved to array the features; Otherwise the hot grid graph processing failure

Figure 7
7, and then the two events, events on grid and off grid, see screenshot
  • Related