After a month or two of time, we the chronic diseases of geographic information system has been almost completed, the following will share with you once we finish some technical points and problems in the process of project,
Below said some new technical point in this project, including load map, along with a variety of query maps, and special features of the page, and so on,
Talk simple first load maps: general map load out there are two problems, one is probably your iServer service did not open, the second link has a problem, may be your map code on it only center set of questions, if these are no problem, the map can be normal load out, code into the shown below:
Like so there are no more questions, maps can be normal load out,
Finish map load, is again the map query, divided into matrix query, query, polygon query,
The following query, first look at the matrix code as shown in the figure below:
Query, this completes the matrix effect as shown in the figure below:
Similar query circle and polygon query and matrix is similar to query, the code is not much change, not shows, one such maps can be very convenient and fast query the results you want, paying special attention to in the code is the name of the layer, the name is not wrong at all, must be identical and production of map layers, so the query will not go wrong, map query is introduced here,
Here is to look at the layout of the page a new thing, is to drag the toolbox, in a web page can drag at will, but there are also a range is not beyond the web page, see first page layout code, as shown in the figure below:
Main drag function or JavaScript code, as shown in the figure below:
Code is mainly used in the mouse events and judgment statements, finished the above code can achieve drag toolbox, effect to web site can see,
Above is the point of this part of the new technology in the project, here you can refer to share learning,