Map display method and device, client device and server

By obtaining and integrating the target element information of map tiles, forming target map tiles and splicing them on the client device, the problem of low map loading display efficiency in the existing technology is solved, and efficient map display and strong map display are achieved applicability.

CN119474426APending Publication Date: 2025-02-18ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311003196.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-08
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, map loading and displaying is low and has low applicability. Especially when maps are frequently used, element points and information are large, map loading speed is slow, and layer overlay consumes a lot of client resources, resulting in display efficiency. low.

Method used

By obtaining the map information of the target map area sent by the client device, determining the corresponding map tiles, and obtaining target element information for each tiles, fusing them into the tiles, forming target map tiles, and then sending these tiles Splicing and displaying the client device.

Benefits of technology

It improves the efficiency of map display, reduces information overlay and layer synthesis processing on client devices, and has low performance requirements for client devices and strong applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474426A_ABST
    Figure CN119474426A_ABST
Patent Text Reader

Abstract

The invention provides a map display method and device, client equipment and a server, and relates to the technical field of maps, the method comprises the following steps: obtaining map information of a target map area sent by the client equipment, and determining a map tile corresponding to the target map area based on the map information; for each map tile, obtaining target element information corresponding to the map tile, and fusing the target element information in the map tile to obtain a target map tile; and sending each target map tile to the client device, so that the client device performs tiled display on each target map tile. According to the technical scheme provided by the invention, the map display efficiency can be improved, and the applicability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of map technology, and in particular to a map display method, device, client equipment and server. Background Art

[0002] In the field of video surveillance, by overlaying the relevant information of the monitoring equipment in the monitoring system on the map, command, dispatch, prevention and control can be carried out based on the map, which can effectively improve the monitoring efficiency.

[0003] In the related art, when a client device loads a map area viewed by a user, it receives the map data corresponding to the map area and the element information to be displayed, and then overlays these element information in the map data, and displays the map after the overlay. However, in cases where the map is used frequently, the number of points and element information of the elements displayed on the map is large, and the data status needs to be refreshed in time, the speed of loading and displaying the map will be very slow. Moreover, when there are many points of elements to be displayed on the map, the overlay of the map layers will consume a large amount of client device resources, which greatly reduces the efficiency of map display and places very high performance requirements on the client device. Therefore, the efficiency of map display in this way is very low and the applicability is not high. Summary of the invention

[0004] The present invention provides a map display method, device, client device and server, which are used to solve the problems of low efficiency and low applicability of map loading and display in the prior art.

[0005] According to a first aspect of the present invention, there is provided a map display method, comprising:

[0006] Acquire map information of a target map area sent by a client device, and determine a map tile corresponding to the target map area based on the map information;

[0007] For each of the map tiles, obtaining target element information corresponding to the map tile, and fusing the target element information into the map tile to obtain a target map tile;

[0008] The target map tiles are sent to the client device, so that the client device splices and displays the target map tiles.

[0009] According to a map display method provided by the present invention, the step of obtaining target element information corresponding to the map tile includes:

[0010] According to the element type identifier in the map information and the longitude and latitude information of the map tile, searching from an element information library for element information that matches the element type represented by the longitude and latitude information and the element type identifier, to obtain the target element information;

[0011] The element information library stores the correspondence between element type identifiers, element longitude and latitude information, and element information.

[0012] A map display method provided by the present invention further includes:

[0013] Obtaining an element type that can be displayed on the map; the element type includes at least one of monitoring device information, alarm information, monitoring area information, and information point;

[0014] For each element type, obtaining element longitude and latitude information and element information of each element corresponding to the element type from the monitoring system;

[0015] Establishing a correspondence between the element longitude and latitude information and the element information, and obtaining an element information table corresponding to the element type;

[0016] The element type identifier of each element type and the corresponding element information table are generated as the element information library.

[0017] A map display method provided by the present invention further includes:

[0018] For each element type, when it is detected that the element information corresponding to the element type is changed, the element information corresponding to the element type is updated based on the changed element information.

[0019] According to a map display method provided by the present invention, the map information includes a map type, a tile level, and area information of the target map area; and determining the map tile corresponding to the target map area based on the map information includes:

[0020] determining a target map based on the map type;

[0021] Determining a target tile sequence number in the target map according to the tile level and the region information;

[0022] The map tile corresponding to the target tile sequence number is obtained from the target map to obtain the map tile corresponding to the target map area.

[0023] According to a second aspect of the present invention, there is provided a map display method, comprising:

[0024] Sending map information of a target map area to a server; the map information is used to instruct the server to determine a map tile corresponding to the target map area, obtain target element information corresponding to each map tile, and fuse the target element information into the map tile to obtain the target map tile;

[0025] Receive the target map tiles sent by the server, and splice and display the target map tiles.

[0026] According to a third aspect of the present invention, there is provided a map display device, comprising:

[0027] A tile determination module, used to obtain map information of a target map area sent by a client device, and determine a map tile corresponding to the target map area based on the map information;

[0028] An element fusion module, for obtaining target element information corresponding to each map tile, and fusing the target element information into the map tile to obtain a target map tile;

[0029] The tile sending module is used to send each of the target map tiles to the client device, so that the client device can splice and display each of the target map tiles.

[0030] According to a fourth aspect of the present invention, there is provided a map display device, comprising:

[0031] An information sending module, used for sending map information of a target map area to a server; the map information is used for instructing the server to determine a map tile corresponding to the target map area, obtain target element information corresponding to each map tile, and fuse the target element information into the map tile to obtain the target map tile;

[0032] A tile receiving module, used for receiving the target map tile sent by the server;

[0033] The splicing display module is used to splice and display the target map tiles.

[0034] According to a fifth aspect of the present invention, a server is provided, comprising a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, wherein when the first processor executes the computer program, the map display method described in any one of the first aspects is implemented.

[0035] According to a sixth aspect of the present invention, there is provided a client device comprising a second memory, a second processor and a computer program stored in the second memory and executable on the second processor, wherein when the second processor executes the computer program, the map display method described in any one of the second aspects is implemented.

[0036] According to a seventh aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the map display method as described in any one of the first aspects above, or implements the map display method as described in the second aspect above.

[0037] According to an eighth aspect of the present invention, there is provided a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the map display method as described in any one of the first aspects above, or implements the map display method as described in the second aspect above.

[0038] The map display method, device, client device and server provided by the present invention determine the map tile corresponding to the target map area according to the map information of the target map area sent by the client device, obtain the target element information corresponding to the map tile for each map tile and fuse the target element information in the map tile to obtain the target map tile, and then send each target map tile to the client device so that the client device splices and displays each target map tile. In this way, the client device only needs to receive the target map tile that has been fused with the target element information and splice and display these target map tiles, avoiding the processing such as information superposition and layer synthesis when displayed on the client device, improving the efficiency of map display, and having no special requirements on the performance of the client device, and having strong applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 This is one of the flowcharts of the map display method provided by the embodiment of the present invention;

[0041] Figure 2 is a schematic diagram of the principle of generating map information of a target map area in an embodiment of the present invention;

[0042] Figure 3 This is the second flowchart of the map display method provided by the embodiment of the present invention;

[0043] Figure 4 Schematic diagram of the principle of determining the map tiles corresponding to the target map area in an embodiment of the present invention;

[0044] Figure 5 is a schematic diagram of a target map tile M1-1 in an embodiment of the present invention;

[0045] Figure 6 Schematic diagram of the principle of splicing and displaying target map tiles in an embodiment of the present invention;

[0046] Figure 7 It is one of the structural schematic diagrams of the map display device provided by the embodiment of the present invention;

[0047] Figure 8 This is a second structural schematic diagram of a map display device provided by an embodiment of the present invention;

[0048] Fig. 9 is a schematic diagram of the structure of a server provided by an embodiment of the present invention;

[0049] Fig.10 It is a structural diagram of a client device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] It should be noted that the serial numbers assigned to the objects described in the present invention, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning.

[0052] Combine the following Figure 1-Figure 6 The map display method of the present invention is described.

[0053] Figure 1 One of the flowcharts of the map display method provided by the embodiment of the present invention is exemplified. The map display method can be applied to a server, such as a map server, which can include an independent server, a cluster server or a cloud server. The map display method can also be applied to a map display device set in the server, which can be implemented by software, hardware or a combination of the two. Figure 1 As shown, the map display method may include the following steps 110 to 130.

[0054] Step 110: Obtain map information of the target map area sent by the client device, and determine the map tile corresponding to the target map area based on the map information.

[0055] The user can open the map through the client device and enter the map interface. The user can view maps of different levels and different areas by performing map browsing operations in the map interface, such as moving, zooming, searching, etc.

[0056] Specifically, when a user opens a map, a default map display area may be displayed in the map interface, and the map display area may change continuously as the user browses the map on the map interface. The client device may determine the map area defined by the current map interface as the target map area, or determine the map area to be viewed according to the user's map browsing operation to obtain the target map area. The client device may generate map information of the target map area according to the range defined by the target map area and the current level of the map. The map information may include map type, tile level, and area information of the target map area.

[0057] For example, Figure 2 A schematic diagram showing the principle of generating map information of a target map area is shown as an example. Figure 2 As shown, taking the user viewing District B of City A as an example, the target map area is District B currently displayed on the map interface. Based on the target map area, the longitude and latitude coordinate points (x1, y1), (x2, y2), (x3, y3) and (x4, y4) can be determined. The scope of the target map area can be characterized by these four longitude and latitude coordinate points. At the same time, the client device can determine the map type based on the map opened by the user, and can determine the tile level and area information of the target map area currently to be viewed based on the map browsing operation of the user on the map interface. The client can generate map information of the target map area based on the map type, tile level and area information. For example, the generated map information includes: MAP_CODE (MAP10001), MAP_AREA (City A), TILE (120.354658, 30.1458219; 120.359875, 30.254587; 120.35548, 30.23658; 120.35545, 30.351254), LEVEL (5).

[0058] Among them, MAP_CODE(MAP10001) indicates that the map type is MAP10001, and MAP10001 is the unique code of the map type, representing a type of map; LEVEL(5) indicates that the tile level is the 5th level; MAP_AREA and TILE together represent the area information of the target map area. MAP_AREA represents the first-level map area; TILE is the longitude and latitude coordinate information of the target map area, which can be defined as a second-level longitude and latitude area. It can be understood that the second-level longitude and latitude area is a sub-area of ​​the first-level map area. The map types may include Baidu Maps, Amap, etc.

[0059] It should be noted that the latitude and longitude coordinate information in the above TILE is only for illustration and does not constitute a limitation to the present invention.

[0060] After the client device determines the map information of the target map area, it sends the map information to the server. The server can learn from the MAP_CODE information item in the map information that the map code that the user currently needs to view is MAP10001, that is, it knows what type of map needs to be displayed; the server can learn from the MAP_AREA information item in the map information the primary map area that the user currently needs to view, that is, it knows which area information of the map needs to be displayed; the server can learn from the TILE information item in the map information the latitude and longitude information of the target map area that the user currently needs to view, and based on the latitude and longitude information and the tile level in the map information, it can determine the map tile corresponding to the target map area.

[0061] Step 120: For each map tile, obtain the target element information corresponding to the map tile, and fuse the target element information into the map tile to obtain the target map tile.

[0062] The target element information is the data from the monitoring system that needs to be displayed on the map tile. The target element information may include at least one of monitoring device information, alarm information, monitoring area information and information point (POI). The monitoring device information may include information such as monitoring device icon, monitoring device identity, device type and online status. The alarm information may include information such as alarm name and alarm type. The monitoring area information may include information such as area identification and area location.

[0063] Exemplarily, after the server determines the map tile corresponding to the target map area, for each map tile, all element information matching the latitude and longitude information can be searched from the element information library according to the latitude and longitude information of the map tile to obtain the target element information, and the target element information is merged into the map tile to obtain the target map tile corresponding to the map tile. The element information library can store the correspondence between the element latitude and longitude information and the element information.

[0064] Exemplarily, after the server determines the map tiles corresponding to the target map area, for each map tile, the server can search the element information library for element information that matches the element type represented by the latitude and longitude information and the element type identifier based on the element type identifier in the map information and the latitude and longitude information of the map tile, and obtain the target element information. The element information library can store the correspondence between the element type identifier, the element longitude and latitude information, and the element information. In this way, only the element information that the user needs to display can be integrated into the map tile. For example, if the user only needs to view the relevant information of the monitoring equipment, the relevant monitoring equipment can be searched in the element information library for integration.

[0065] Step 130: Send each target map tile to the client device, so that the client device splices and displays each target map tile.

[0066] After the server fuses the map tiles to obtain the target map tiles, it sends these target map tiles to the client device, and the client device can obtain the target map tiles containing the map data and the element information on the map. After receiving these target map tiles, the client device splices and displays them, and the user can see the map with element information of the desired viewing area on the map interface.

[0067] In this way, by displaying various element information obtained from the monitoring system on the map, visual command and dispatch can be achieved based on the map, which can effectively improve the efficiency of monitoring.

[0068] The map display method provided by the embodiment of the present invention can determine the map tile corresponding to the target map area according to the map information of the target map area sent by the client device, obtain the target element information corresponding to the map tile for each map tile and fuse the target element information in the map tile to obtain the target map tile, and then send each target map tile to the client device, so that the client device splices and displays each target map tile. In this way, the client device only needs to receive the target map tile that has been fused with the target element information and splice and display these target map tiles, avoiding the processing such as information superposition and layer synthesis when displayed on the client device, improving the efficiency of map display, having no special requirements on the performance of the client device, and having strong applicability. Moreover, only the target map tile that has been fused with the target element information needs to be transmitted to the client device, reducing the amount of data and data type in the data transmission process, making the data transmission simple and efficient, and further improving the efficiency of map loading and display.

[0069] based on Figure 1In a map display method of a corresponding embodiment, in an exemplary embodiment, a user can select a target map area to be viewed and an element type to be displayed on the target map area through a map browsing operation on a map interface. Alternatively, when the user has not selected an element type to be displayed, all element types corresponding to the target map area can be displayed on the target map area.

[0070] Specifically, obtaining the target element information corresponding to the map tile may include: searching from the element information library for element information that matches the element type represented by the longitude and latitude information and the element type identifier based on the element type identifier in the map information and the longitude and latitude information of the map tile, to obtain the target element information; wherein the element information library stores the correspondence between the element type identifier, the element longitude and latitude information, and the element information.

[0071] For example, the user can select the element type to be displayed through the element type selection menu in the map interface, and the client device determines the element type identifier in response to the selection operation on the element type selection menu. For example, if the user only needs to view the relevant information of the monitoring device on the map, the monitoring device can be selected on the client device, and the client device can carry the selected element type in the map information and send it to the server, and the server can search for the monitoring device with matching latitude and longitude information in the element information library for fusion.

[0072] Among them, the element type identifier is used to identify the type of element that needs to be displayed on the map. For example, the type of element that needs to be displayed on the map includes at least one of monitoring device information and alarm information. C1 can be used to identify the monitoring device, and C2 can be used to identify the alarm. The default value can be C. For example, if the element type identifier in the map information is C1, it can be determined that the element type selected by the user is monitoring device information, and the information of the monitoring device that matches the longitude and latitude information in the map information can be searched from the element information library, and the matched monitoring device information is determined as the target element information. For another example, if the element type identifier in the map information is C, it can be considered that the user has not performed the element type selection operation, and the element information of all element types contained in the target map area is displayed by default. Then, the element information of all element types that match the longitude and latitude information in the map information can be searched from the element information library to obtain the target element information. It can be understood that when the element type identifier in the map information is the default value C, it can be considered that C represents the element type identifier of all element types.

[0073] In this way, the user can select the element type to be displayed in the target map area according to the needs, and the server can only integrate the element information corresponding to the element type that the user needs to display in the map tile, so the display of the element information is more flexible.

[0074] In an exemplary embodiment, the element types that can be displayed on the map can be obtained from the monitoring system data, and a corresponding element information table can be established for each element type, in which the correspondence between the element longitude and latitude information and the element information is stored. After the server determines the map tile corresponding to the target map area according to the map information, for each map tile, the element type to be displayed can be determined according to the element type identifier in the map information, and then the element information matching the longitude and latitude information of the map tile can be searched from the element information table corresponding to the element type to obtain the target element information corresponding to the tile.

[0075] Specifically, the map display method further includes: obtaining the element types that can be displayed on the map; for each element type, obtaining the element longitude and latitude information and element information of each element corresponding to the element type from the monitoring system; establishing a corresponding relationship between the element longitude and latitude information and the element information, and obtaining an element information table corresponding to the element type; generating an element information library with the element type identifier of each element type and the corresponding element information table. The element type includes at least one of monitoring device information, alarm information, monitoring area information and information point.

[0076] For example, for a monitoring system, the types of elements that can be displayed on a map may include monitoring device information, alarm information, monitoring area information, and information points (POIs). The map server can divide the map by geographical area and store map tiles for each geographical area. For example, the map area can be divided by administrative area. For each geographical area, the monitoring system deployed in the geographical area can generate corresponding monitoring device information, alarm information, monitoring area information, information points, and other related data, which can be stored in the form of a data table.

[0077] For example, the data in the monitoring system may be analyzed first to determine what types of elements are included in the monitoring system, and an information table as shown in Table 1 may be established based on the analysis results and the map data provided by the map server:

[0078] Table 1

[0079] Serial number Map Coding Map Area Map Level Monitoring equipment Warning information POI 100001 MAP1001 City A 20 1 0 1 100002 MAP1002 City B 19 1 1 1

[0080] Among them, the map code is the unique code of the map type, and different code values ​​represent different map types; each map area can correspond to a map of the corresponding geographical area; the map level is the maximum level of the tile map corresponding to the map area; monitoring equipment, alarm information and POI are possible element types, "1" indicates the existence of the element type, and "0" indicates the absence of the element type. Table 1 shows the type of elements that can be displayed in each map area.

[0081] It can be understood that Table 1 is only an exemplary description, and the map code and map area are not limited thereto.

[0082] According to Table 1, the element information that needs to be displayed on the map can come from various types of data stored in the system. When the server integrates the map tiles and element information, it can obtain relevant data from various data storage servers or databases of the monitoring system. In order to facilitate data management, search and call, a correspondence between element types and specific element information can be established. For example, in a map-based monitoring system, it is necessary to know the real-time monitoring equipment information (including the type, status, location, etc. of the monitoring equipment), POI information (including type, location, etc.), and alarm information (including level, location, type, etc.). Based on this, an element information table corresponding to each element type can be established, and each element type can be represented by an element type identifier.

[0083] For example, taking the monitoring device as a camera, the element information table corresponding to the camera can be shown in Table 2; the element information table corresponding to the alarm information can be shown in Table 3.

[0084] Table 2

[0085]

[0086] Among them, the camera code represents the unique code of the camera in this monitoring system, which can be used to distinguish different cameras; the camera type may include gun camera, ball camera and tube camera, etc. Different camera type values ​​represent different types of cameras, which can be used to select the camera icon when displayed on the map, that is, different types of cameras are displayed as different camera icons; the camera status may include online and offline, etc., "1" can be used to represent online, and "0" can be used to represent offline; the longitude and latitude constitute the longitude and latitude information, which represents the location of the camera.

[0087] Table 3

[0088] Serial number Alarm code Alarm Name Alarm Type longitude latitude 1001 A00001 Blacklist control aa 120.21321 30.35685 1002 A00002 A security incident occurred bb 120.35872 30.58452

[0089] Among them, the alarm code represents the unique code of the alarm information in this monitoring system, which can be used to distinguish different alarm information; the alarm type is used to indicate the type of alarm information. Different alarm type values ​​represent different types of alarm information, which can be used to select the alarm icon when displayed on the map, that is, different alarm types are displayed with different alarm icons; longitude and latitude constitute the latitude and longitude information, which represents the location of the alarm information.

[0090] It is understandable that the above Tables 2 and 3 are only exemplary descriptions, and the longitude and latitude information are also only examples. The cameras in Table 2 and the alarm information in Table 3 may not be limited thereto.

[0091] It is understandable that other element types, such as POI information, monitoring area information, etc., can also establish their corresponding element information tables based on the same principles as Table 2 and Table 3.

[0092] Exemplarily, the element information table corresponding to each element type can be updated in real time based on the real-time data changes of the monitoring system. Specifically, the map display method can also include: for each element type, when it is detected that the element information corresponding to the element type has changed, updating the element information corresponding to the element type based on the changed element information.

[0093] For example, taking the cameras in the monitoring system as an example, when there is an update to at least one of the information such as the number of cameras, camera locations, and camera status, the server can automatically synchronize the updated camera information to the element information table corresponding to the camera, so as to incrementally update the corresponding information of the corresponding camera, that is, it will only be updated when there is some or all information changes on the corresponding camera. If the various types of information of the camera have not changed, the information will not be updated.

[0094] For example, taking Table 2 as an example, assuming that the camera with camera code C00001 in the monitoring system is offline, and its camera status changes from online to offline, the server can update the camera status of the camera corresponding to C00001 in Table 2 from "1" to "0".

[0095] The same processing can also be performed on information of various element types such as alarm information, POI and monitoring area information, so that the element information table of each element type can be updated in real time according to the real-time changes of the monitoring system, ensuring the real-time and accuracy of the data, and improving the timeliness and accuracy of the element information and status display on the map.

[0096] Based on the map display method of each of the above embodiments, in an exemplary embodiment, the map information may include the map type, tile level, and regional information of the target map area. Accordingly, determining the map tile corresponding to the target map area based on the map information may include: determining the target map based on the map type; determining the target tile sequence number in the target map according to the tile level and regional information; obtaining the map tile corresponding to the target tile sequence number from the target map, and obtaining the map tile corresponding to the target map area.

[0097] For example, assuming that the map information obtained by the server is: MAP_CODE(MAP10001), MAP_AREA(city A), TILE(x1, y1; x2, y2; x3, y3; x4, y4), LEVEL(10). Then it can be determined that the map opened by the user is a map coded as MAP10001 type, and the map being viewed is the target map area whose latitude and longitude area is TILE of city A. The server can determine the map tiles within the latitude and longitude range defined by TILE from the 10th level map tile data in the MAP10001 type map data, and obtain the map tiles of the target map area whose latitude and longitude area is TILE of city A.

[0098] Based on the map display method of the above embodiments, Figure 3 The second flowchart of the map display method provided by the embodiment of the present invention is exemplarily shown. The map display method can be applied to a client device, which can include a mobile phone, a computer, a vehicle-mounted device, a tablet computer, a wearable device, etc. The map display method can also be applied to a map display device set in the client device, which can be implemented by software, hardware, or a combination of the two. Figure 3 As shown, the map display method may include the following steps 310 to 330.

[0099] Step 310: Send map information of the target map area to the server; the map information is used to instruct the server to determine the map tile corresponding to the target map area, obtain the target element information corresponding to each map tile, and fuse the target element information into the map tile to obtain the target map tile.

[0100] The user can open the map through the client device and enter the map interface. The user can view maps of different levels and different areas by performing map browsing operations in the map interface, such as moving, zooming, searching, etc.

[0101] Specifically, when the user opens the map, the client device can display a default map display area in the map interface, and the map display area can change continuously as the user browses the map on the map interface. The client device can determine the area defined by the current map interface as the target map area, or determine the map area to be viewed according to the user's map browsing operation to obtain the target map area. The client device can generate map information of the target map area based on the range defined by the target map area and the current level of the map, and then send the map information to the server. The map information may include map type, tile level, and area information of the target map area.

[0102] Step 320: Receive the target map tile sent by the server.

[0103] After receiving the map information, the server can determine the map tile corresponding to the target map area, and for each map tile, can search the element information matching the latitude and longitude information of the map tile from the element information library according to the latitude and longitude information of the map tile, obtain the target element information corresponding to the map tile, and then fuse the target element information into the map tile to obtain the corresponding target map tile. The element information library can store the correspondence between the element latitude and longitude information and the element information.

[0104] After the server determines the target map tile, it sends the target map tile to the client device, and the client device receives the target map tile.

[0105] Step 330: splice and display the target map tiles.

[0106] After the client device receives the target map tiles, it splices the target map tiles according to the latitude and longitude information of each target map tile to obtain the map content corresponding to the target map area, and then displays the map content. The map content includes the map data corresponding to the target map area and the target element information to be displayed. The target element information may include at least one of monitoring device information, alarm information, monitoring area information and information point (POI). In this way, the monitoring status of the monitoring system can be intuitively viewed based on the map, thereby improving the efficiency of monitoring.

[0107] According to the map display method provided by the embodiment of the present invention, the client device can generate map information of the target map area to be viewed according to the map browsing operation of the user on the map interface, and send the map information to the server to instruct the server to determine the map tile corresponding to the target map area, and for each map tile, obtain the target element information corresponding to the map tile and fuse the target element information in the map tile to obtain the target map tile. The client device receives the target map tile sent by the server and splices and displays each target map tile, so as to display the map content corresponding to the viewed target map area to the user. In this way, the client device only needs to receive the target map tile that has been fused with the target element information and splices and displays these target map tiles, thereby avoiding the processing of information superposition and layer synthesis when displayed on the client device, improving the efficiency of map display, and having no special requirements for the performance of the client device, and having strong applicability.

[0108] Based on the map display methods of the above embodiments, the map display method provided by the embodiments of the present invention is further illustrated below by taking the case where a user views the target map area with the latitude and longitude area of ​​City A as a TILE as an example.

[0109] Assume that a user opens a map with a map code of MAP10001 through a client device, enters the map interface, and uses map browsing operations such as moving, searching, or zooming to display the target map area to be viewed in the map interface. For example, the target map area to be viewed is as follows: Figure 2 According to the target map range, the client device can generate corresponding map information and send it to the server. For example, the generated map information includes: MAP_CODE (MAP10001), MAP_AREA (city A), TILE (x1, y1; x2, y2; x3, y3; x4, y4), LEVEL (10).

[0110] Based on the map information, the server can know that the user currently needs to view the map of the geographical area of ​​City A in the MAP10001 type map, and the tile map to be viewed is within the range of the longitude and latitude area of ​​City A as TILE. Based on the map information, the server can obtain the corresponding tile number and map data from the map tile database, and determine the tile number to obtain the corresponding map tile data. For example, Figure 4 The schematic diagram of the determination principle of the map tiles corresponding to the target map area is shown as an example, referring to Figure 4 As shown, the server can determine the tile number of the longitude and latitude within the TILE range from the 10th level tile data in the map tile database according to the longitude and latitude area TILE (x1, y1; x2, y2; x3, y3; x4, y4) to be viewed, for example Figure 4 M1~M6 in it, that is, it is determined that the map tiles corresponding to the target map area to be viewed are the 6 map tiles with tile numbers M1~M6.

[0111] After the server determines the map tile corresponding to the target map area, for each map tile, it can search the element information library for specific element information such as monitoring device information, alarm information, monitoring area information, and POI that match the latitude and longitude information of the map tile according to the latitude and longitude information of the map tile, and obtain the target element information corresponding to the map tile. Then, the target element information is fused on the map tile to obtain the corresponding target map tile.

[0112] For example, the server determines that Figure 4For the six map tiles M1 to M6 shown, for the map tile M1, assuming that its longitude and latitude information is (x1, y1), the server can obtain from Table 2 above which cameras are included in the longitude and latitude range represented by (x1, y1), and can obtain the real-time element information such as the camera code, camera type, and camera status of each camera included. It can also obtain from Table 3 above which alarms are included in the longitude and latitude range represented by (x1, y1), and can obtain the real-time element information such as the code and type of each alarm included. Similarly, other element information included in the longitude and latitude range represented by (x1, y1) can be obtained from the element information table of other types of elements such as POI and monitoring area information. In this way, the target element information corresponding to the map tile M1 can be obtained. Then, the target element information is fused on the map tile M1 to obtain the corresponding target map tile M1-1. For example, Figure 5 The example shows a schematic diagram of the target map tile M1-1, refer to Figure 5 As shown, the target map tile M1-1 contains the map data of the map tile M1 itself and various element information existing within the latitude and longitude range of the map tile M1. These element information can be exemplarily represented by circles.

[0113] Similarly, each map tile in M2 to M6 is processed in the same way as map tile M1, and the target map tiles corresponding to each of M2 to M6 can be obtained, such as: target map tile M2-1 corresponding to map tile M2, target map tile M3-1 corresponding to map tile M3, target map tile M4-1 corresponding to map tile M4, target map tile M5-1 corresponding to map tile M5, and target map tile M6-1 corresponding to map tile M6. Then, the target map tiles M1-1, M2-1, M3-1, M4-1, M5-1, and M6-1 are sent to the client device using a Uniform Resource Locator (URL). At this time, the client device can obtain the target map tile containing the map data and various element information on the map. By splicing and displaying these target map tiles in the map interface, users can see the complete map information of the target map area, reducing information overlay and rendering in the map interface, improving the efficiency of map display, and ensuring the accuracy of the information status of various elements displayed.

[0114] For example, Figure 6 The schematic diagram of the principle of splicing and displaying target map tiles is shown as an example. Figure 6 As shown, after the target map tiles M1-1, M2-1, M3-1, M4-1, M5-1 and M6-1 are spliced, the complete map information of the target map area can be obtained.

[0115] The map display device provided by the present invention is described below. The map display device described below and the map display method described above can be referred to each other.

[0116] Figure 7 One of the structural diagrams of the map display device provided by the embodiment of the present invention is exemplarily shown, and the map display device can be applied to a server. Figure 7 As shown, the map display device 700 may include: a tile determination module 710, which is used to obtain map information of a target map area sent by a client device, and determine the map tile corresponding to the target map area based on the map information; an element fusion module 720, which is used to obtain the target element information corresponding to each map tile, and fuse the target element information in the map tile to obtain the target map tile; a tile sending module 730, which is used to send each target map tile to the client device, so that the client device can splice and display each target map tile.

[0117] In an exemplary embodiment, the element fusion module 720 may include: a search unit, used to search from an element information library for element information that matches the element type represented by the longitude and latitude information and the element type identifier based on the element type identifier in the map information and the longitude and latitude information of the map tile, to obtain target element information; wherein the element information library stores the correspondence between the element type identifier, the element longitude and latitude information and the element information.

[0118] In an exemplary embodiment, the map display device 700 may further include an information library establishment module, which may be used to: obtain element types that can be displayed on the map, the element types including at least one of monitoring equipment information, alarm information, monitoring area information and information points; for each element type, obtain element longitude and latitude information and element information of each element corresponding to the element type from the monitoring system; establish a correspondence between the element longitude and latitude information and the element information to obtain an element information table corresponding to the element type; generate the element type identifier of each element type and the corresponding element information table into an element information library.

[0119] In an exemplary embodiment, the map display device 700 may further include: an information updating module for updating, for each element type, the element information corresponding to the element type based on the changed element information when a change is detected in the element information corresponding to the element type.

[0120] In an exemplary embodiment, the map information includes a map type, a tile level, and regional information of a target map area; accordingly, the tile determination module 710 may include: a first determination unit, for determining a target map based on the map type; a second determination unit, for determining a target tile number in the target map according to the tile level and regional information; and an acquisition unit, for acquiring a map tile corresponding to the target tile number from the target map to obtain a map tile corresponding to the target map area.

[0121] Figure 8 The second structural diagram of the map display device provided by the embodiment of the present invention is exemplarily shown. The map display device 800 can be applied to a client device. Figure 8 As shown, the map display device 800 may include: an information sending module 810, used to send map information of the target map area to the server; the map information is used to instruct the server to determine the map tile corresponding to the target map area, for each map tile, obtain the target element information corresponding to the map tile, and fuse the target element information in the map tile to obtain the target map tile; a tile receiving module 820, used to receive the target map tile sent by the server; a splicing display module 830, used to splice and display each target map tile.

[0122] Fig. 9 An example of a server structure diagram is shown below. Fig. 9 As shown, the server may include: a first processor (processor) 910, a first communication interface (Communication Interface) 920, a first memory (memory) 930 and a first communication bus 940, wherein the first processor 910, the first communication interface 920 and the first memory 930 complete mutual communication through the first communication bus 940. The first processor 910 may call the logic instructions in the first memory 930 to execute the map display method provided by each method embodiment applied to the server, and the method may include: obtaining the map information of the target map area sent by the client device, and determining the map tile corresponding to the target map area based on the map information; for each map tile, obtaining the target element information corresponding to the map tile, and fusing the target element information in the map tile to obtain the target map tile; sending each target map tile to the client device, so that the client device splices and displays each target map tile.

[0123] Fig.10 An example of a schematic diagram of the structure of a client device is shown below. Fig.10As shown, the client device may include: a second processor 1010, a second communication interface 1020, a second memory 1030 and a second communication bus 1040, wherein the second processor 1010, the second communication interface 1020 and the second memory 1030 communicate with each other through the second communication bus 1040. The second processor 1010 may call the logic instructions in the second memory 1030 to execute the map display method provided by the above-mentioned various method embodiments applied to the client device, and the method may include: sending map information of the target map area to the server; the map information is used to instruct the server to determine the map tile corresponding to the target map area, for each map tile, obtain the target element information corresponding to the map tile, and fuse the target element information in the map tile to obtain the target map tile; receiving the target map tile sent by the server, and splicing and displaying each target map tile.

[0124] In addition, the logic instructions in the first memory 830 and the second memory 1030 mentioned above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when they are sold or used as independent products. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0125] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the map display method provided by any of the above-mentioned method embodiments applied to the server, or execute the map display method provided by any of the above-mentioned method embodiments applied to the client device.

[0126] On the other hand, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the map display method provided by any of the above-mentioned method embodiments applied to the server, or to execute the map display method provided by any of the above-mentioned method embodiments applied to the client device.

[0127] By way of example, computer readable storage media include non-transitory computer readable storage media.

[0128] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A map display method, characterized in that: include: Acquire map information of a target map area sent by a client device, and determine a map tile corresponding to the target map area based on the map information; For each of the map tiles, obtaining target element information corresponding to the map tile, and fusing the target element information into the map tile to obtain a target map tile; The target map tiles are sent to the client device, so that the client device splices and displays the target map tiles.

2. The map display method according to claim 1, characterized in that: The obtaining of target element information corresponding to the map tile includes: According to the element type identifier in the map information and the longitude and latitude information of the map tile, searching from an element information library for element information that matches the element type represented by the longitude and latitude information and the element type identifier, to obtain the target element information; The element information library stores the correspondence between element type identifiers, element longitude and latitude information, and element information.

3. The map display method according to claim 2, characterized in that: Also includes: Obtaining an element type that can be displayed on the map; the element type includes at least one of monitoring device information, alarm information, monitoring area information, and information point; For each element type, obtaining element longitude and latitude information and element information of each element corresponding to the element type from the monitoring system; Establishing a correspondence between the element longitude and latitude information and the element information, and obtaining an element information table corresponding to the element type; The element type identifier of each element type and the corresponding element information table are generated as the element information library.

4. The map display method according to claim 2, characterized in that: Also includes: For each element type, when it is detected that the element information corresponding to the element type is changed, the element information corresponding to the element type is updated based on the changed element information.

5. The map display method according to any one of claims 1 to 4, characterized in that: The map information includes a map type, a tile level, and area information of the target map area; and determining the map tile corresponding to the target map area based on the map information includes: determining a target map based on the map type; Determining a target tile sequence number in the target map according to the tile level and the region information; The map tile corresponding to the target tile sequence number is obtained from the target map to obtain the map tile corresponding to the target map area.

6. A map display method, characterized in that: include: Sending map information of the target map area to the server; The map information is used to instruct the server to determine the map tile corresponding to the target map area, obtain the target element information corresponding to each map tile, and fuse the target element information into the map tile to obtain the target map tile; Receive the target map tiles sent by the server, and splice and display the target map tiles.

7. A map display device, characterized in that: include: A tile determination module, used to obtain map information of a target map area sent by a client device, and determine a map tile corresponding to the target map area based on the map information; An element fusion module, for obtaining target element information corresponding to each map tile, and fusing the target element information into the map tile to obtain a target map tile; The tile sending module is used to send each of the target map tiles to the client device, so that the client device can splice and display each of the target map tiles.

8. A map display device, characterized in that: include: An information sending module is used to send map information of a target map area to a server; The map information is used to instruct the server to determine the map tile corresponding to the target map area, obtain the target element information corresponding to each map tile, and fuse the target element information into the map tile to obtain the target map tile; A tile receiving module, used for receiving the target map tile sent by the server; The splicing display module is used to splice and display the target map tiles.

9. A server comprising a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, characterized in that: When the first processor executes the computer program, the map display method according to any one of claims 1 to 5 is implemented.

10. A client device, comprising a second memory, a second processor, and a computer program stored in the second memory and executable on the second processor, characterized in that: When the second processor executes the computer program, the map display method according to claim 6 is implemented.

Citation Information

Cited By

  • Electronic map interaction method, terminal device, server and system

    CN120469601A