Map display method, device, electronic device and readable storage medium

By acquiring and managing overlapping points within the field of view displayed on the map in the digital twin smart city, the update and rendering of point information is optimized, solving the problem of low map display efficiency under a high number of points, and achieving more efficient resource utilization. and user experience improvement.

CN117909008BActive Publication Date: 2024-08-27BEIJING SKY-RICH TECH DEV CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202311797830.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2024-08-27
Estimated Expiration
2043-12-25

AI Technical Summary

Technical Problem

In digital twin smart cities, as the number of point instances increases, map display efficiency decreases and power consumption is excessive, resulting in poor user experience.

Method used

By obtaining points within the original field of view, responding to changes in field of view parameters, determining the movement distance of the field of view, and obtaining coincident points, avoid frequently updating point information within the field of view, and use the cache pool to optimize the initialization and rendering of point instances.

Benefits of technology

It improves program operation efficiency, reduces power consumption, improves user experience, and ensures smooth map display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117909008B
    Figure CN117909008B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a map display method, device, electronic device and readable storage medium, which obtains points within the original field of view, determines the moving distance of the field of view in response to the field of view parameters stopping changing, and the field of view parameters include field of view angle, field of view height and / or field of view radius. In response to the moving distance being greater than a preset value, the original field of view is compared with the points within the current field of view, and the overlapping points within the original field of view are obtained. The overlapping points represent the points that exist in both the original field of view and the current field of view, and the point information of the points within the current field of view is obtained at least based on the overlapping points. Thus, after the moving distance of the field of view is greater than the preset value, the point information within the current field of view is obtained, so as to avoid frequent updating of the point information of the points within the field of view, improve the efficiency of program operation, reduce power consumption, and thus enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart city technology, and in particular to a map display method, device, electronic device and readable storage medium. Background Art

[0002] Digital twin smart city is a technology that matches entities, systems or processes in the physical world with accurate models in the virtual world. With the development of digital twin smart city, the amount of data accessed in the three-dimensional scene is increasing. Digital twin smart city is developed using Unreal Engine. The marking of point instances in the map is mainly realized through components, and these components or point instances are managed by managers to realize the addition, deletion, modification and query of points.

[0003] However, since the component itself consumes a lot of computing power, when the number of points to be displayed exceeds a certain number, for example, more than 1000, the number of frames consumed is about 20 frames, which may lead to low program efficiency and excessive power consumption, resulting in unsmooth or stuck display, affecting the user experience. Summary of the invention

[0004] In view of this, embodiments of the present invention provide a map display method, device, electronic device and readable storage medium to avoid frequent updating of displayed points, improve program running efficiency, reduce power consumption, and thus enhance user experience.

[0005] In a first aspect, a map display method is provided, the method comprising:

[0006] Get the points within the original field of view;

[0007] In response to the field of view parameters ceasing to change, determining the moving distance of the field of view range, wherein the field of view parameters include field of view angle, field of view height and / or field of view radius;

[0008] In response to the moving distance being greater than a preset value, comparing the points in the original field of view with those in the current field of view, obtaining overlapping points in the original field of view, wherein the overlapping points represent points existing in both the original field of view and the current field of view;

[0009] The point information of the points within the current field of view is obtained at least according to the overlapping points.

[0010] In some embodiments, the method further comprises:

[0011] The rendering displays the points within the current field of view.

[0012] In some embodiments, the rendering and displaying of points within the current field of view includes:

[0013] The points displayed within the current field of view are rendered through display components or text images.

[0014] In some embodiments, the method further comprises:

[0015] In response to receiving the map display instruction, a timer is started to detect a change in the field of view parameter.

[0016] In some embodiments, the method further comprises:

[0017] The non-overlapping points within the original field of view are reset and stored in the cache pool.

[0018] In some embodiments, the step of obtaining the point information of the points within the current field of view at least according to the coincident points includes:

[0019] Update the point information of the coincident points according to the current field of view;

[0020] In response to the presence of a newly added point within the current field of view, obtaining a pre-created point instance from a cache pool for initialization to determine point information of the newly added point within the current field of view;

[0021] In response to the point instance in the buffer pool being empty, a point instance is created in real time and initialized to determine the point information of the newly added point within the current field of view.

[0022] In some embodiments, the method further comprises:

[0023] In response to the change in the field of view radius, the display information of the points within the current field of view is updated, the display information includes an aggregation tag, and the aggregation tag is used to characterize the type and number of points.

[0024] In a second aspect, a map display device is provided, the device comprising:

[0025] A first acquisition module is configured to acquire points within an original field of view;

[0026] a determination module configured to determine a moving distance of the field of view range in response to a field of view parameter ceasing to change, the field of view parameter including a field of view angle and / or a field of view height;

[0027] A comparison module is configured to compare the points in the original field of view with those in the current field of view in response to the moving distance being greater than a preset value, and obtain overlapping points in the original field of view, wherein the overlapping points represent points existing in both the original field of view and the current field of view;

[0028] The second acquisition module is configured to acquire the point information of the points within the current field of view at least according to the overlapping points.

[0029] According to a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in the first aspect of the embodiment of the present invention.

[0030] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect of the embodiment of the present invention is implemented.

[0031] The embodiment of the present invention obtains points within the original field of view, and in response to the field of view parameters stopping changing, determines the moving distance of the field of view, wherein the field of view parameters include the field of view angle, field of view height and / or field of view radius, and in response to the moving distance being greater than a preset value, compares the original field of view with the points within the current field of view, obtains the overlapping points within the original field of view, and the overlapping points represent the points existing in both the original field of view and the current field of view, and obtains the point information of the points within the current field of view at least based on the overlapping points. Thus, after the moving distance of the field of view is greater than the preset value, the point information within the current field of view is obtained, so as to avoid frequent updates of the point information of the points within the field of view, improve the efficiency of program operation, reduce power consumption, and thus enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0033] Figure 1 is a flow chart of a map display method according to an embodiment of the present invention;

[0034] Figure 2 is a schematic diagram of a map display interface according to an embodiment of the present invention;

[0035] Figure 3 is a schematic diagram of another map display interface according to an embodiment of the present invention;

[0036] Figure 4 is a flow chart of obtaining point information of points within the current field of view according to an embodiment of the present invention;

[0037] Figure 5 is a schematic diagram of another map display interface of an embodiment of the present invention;

[0038] Figure 6is a schematic diagram of another map display interface according to an embodiment of the present invention;

[0039] Figure 7 is a schematic diagram of another map display interface according to an embodiment of the present invention;

[0040] Figure 8 is a schematic diagram of a map display device according to an embodiment of the present invention;

[0041] Fig. 9 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. It is possible for those skilled in the art to fully understand the present application without the description of these details. In order to avoid confusing the essence of the present application, known methods, processes, flows, components and circuits are not described in detail.

[0043] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.

[0044] Unless the context clearly requires otherwise, the words "include", "comprising" and similar words throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is "including but not limited to".

[0045] In the description of this application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.

[0046] In the map corresponding to the digital twin smart city, POI (Point of Interest) is an important data element. POI refers to a place or location with specific meaning and value in the city. Users can interact with the control components, such as clicking, dragging, and zooming, to view detailed information of points in the map display interface, filter points of interest, etc.

[0047] Figure 1 FIG. 1 is a flow chart of a map display method according to an embodiment of the present invention. Figure 1 As shown, the map display method of the embodiment of the present invention includes the following steps:

[0048] S110, obtaining points within the original field of view.

[0049] The visual field represents the range of the geographical area that the user can observe through the map display interface. In this embodiment, the map can be loaded through a device with a map display function such as a smart phone, a computer, or a tablet computer, and points within the corresponding range can be displayed on the map display interface based on the original visual field.

[0050] In some implementations, before executing step S110, this embodiment further performs data initialization, and the data initialization includes setting a corresponding relationship between a field of view radius and an aggregation level, setting an original field of view radius, and starting a timer.

[0051] Among them, the field of view radius represents the size of the field of view, that is, the field of view radius determines the breadth of the range that the user can see. A larger field of view radius can provide a wider field of view, that is, it can include more points, and a smaller field of view radius can focus on a smaller area and display more detailed points. The aggregation level represents the aggregation density of the points. In some embodiments, the larger the field of view radius, that is, the wider the field of view, the larger the aggregation level, that is, the greater the aggregation density of the points within the field of view. The user can view the map by starting a small program or application software. This embodiment aggregates the points in the corresponding geographical area based on the pre-set original field of view radius and the aggregation level corresponding to the original field of view radius and displays them in the map display interface of the display device, thereby determining the content displayed in the initial map display interface. Specifically, when the original field of view radius is large, this embodiment can aggregate adjacent points according to the type of point, and display the corresponding aggregation label. The aggregation label is used to characterize the type and number of points in the corresponding area, that is, the point information of the same type of points in the corresponding area is displayed by rendering an aggregation label, thereby avoiding the situation where the points are rendered too densely due to the large number of points, or the situation where the important point information cannot be displayed due to the high degree of aggregation.

[0052] In some embodiments, starting the timer specifically means starting the timer to detect changes in the field of view parameters in response to receiving a map display instruction. It should be understood that the points displayed in the original field of view are only part of the points in the map, and the user can change the points displayed in the field of view by operations such as zooming, moving, etc., so as to view the point information of the required points.

[0053] S120, in response to the field of view parameter stopping changing, determining a moving distance of the field of view range.

[0054] The field of view parameters include field of view angle, field of view height and / or field of view radius.

[0055] In some embodiments, when the user performs operations such as moving, scaling, rotating, etc., the field of view parameters such as the field of view angle, field of view height and / or field of view radius will change accordingly. In this embodiment, the field of view parameters are periodically collected by a timer, and the newly collected field of view parameters are compared with the field of view parameters collected in the previous cycle to determine whether the field of view parameters have changed. It should be understood that the collection period of the field of view parameters can be set to collect once per frame, or it can be set according to actual needs, and this embodiment does not limit this. When the timer detects that the field of view parameters stop changing, the change amount of the field of view parameters is determined.

[0056] In some implementations, when the user performs a moving operation, the field of view angle changes accordingly. When it is detected that the field of view angle stops changing, the moving distance of the field of view is determined. Specifically, a reference point can be determined in the map display interface, and the distance between the position of the reference point in the original field of view and the current field of view can be compared to determine the moving distance. For example, Figure 2 As shown, when the map display interface displays the original field of view 21, a position P of a reference point is determined in the map display interface. When the user performs a moving operation, the field of view displayed on the map display interface changes from the original field of view 21 to the current field of view 22, and the position of the reference point changes to position P1 in the map display interface. The distance d between position P and position P1 is determined as the moving distance.

[0057] In some embodiments, the distance of movement of the reference point in the x-axis direction is determined as the first movement distance, and the distance of movement of the reference point in the y-axis direction is determined as the second movement distance. The movement distance of the field of view may be the first movement distance and / or the second movement distance, or may be a linear movement distance determined based on the first movement distance and the second movement distance.

[0058] In other implementations, a reference point can also be determined in the map display interface, and the actual geographic coordinates corresponding to the reference point within the original field of view can be determined. After detecting that the field of view angle stops changing, the distance between the actual geographic coordinates corresponding to the reference point within the original field of view and the current field of view is calculated, and the moving distance of the field of view is further calculated based on the map display ratio and zoom ratio.

[0059] S130, in response to the moving distance being greater than a preset value, comparing the points in the original field of view with the points in the current field of view, and obtaining the overlapping points in the original field of view.

[0060] The overlapping points represent points that exist in both the original field of view and the current field of view.

[0061] When the moving distance is not greater than the preset value, it means that the moving distance of the field of view is very small, and the difference between the points in the current field of view after the movement and the original field of view before the movement is very small. The point information that the user needs to view is likely to have been displayed in the original field of view. At this time, it is not meaningful to update the points in the field of view. Therefore, this embodiment does not reset and render the point information in this case, further reducing the power consumption of the system.

[0062] When the moving distance is greater than the preset value, it indicates that the points in the original field of view and the current field of view are significantly different, and it is necessary to obtain the overlapping points in the original field of view to update the points displayed on the map display interface.

[0063] Specifically, this embodiment obtains the overlapping points in the original field of view by comparing the points in the original field of view with the points in the current field of view. Figure 3 As shown, when the map display interface displays the original field of view 31, the user can find the point information of point A, point B, point C and point D through the map display interface. When the user performs a moving operation, the field of view displayed on the map display interface changes from the original field of view 31 to the current field of view 32. At this time, the points existing in both the original field of view and the current field of view are point C and point D, that is, the overlapping points in the original field of view are obtained as point C and point D, and point A and point B are non-overlapping points.

[0064] In some implementations, after determining the overlapping points in the original field of view, further, the non-overlapping points in the original field of view are reset and stored in the cache pool, thereby increasing the number of point instances in the cache pool for subsequent calls when new points are added.

[0065] In some implementations, the preset value can be set according to the area size of the map display interface, for example, the preset value can be set to one tenth of the length of the map display interface. In other implementations, different aggregation levels can correspond to different preset values. For example, the higher the aggregation level, that is, the greater the density of points within the field of view, the greater the preset value. In actual applications, the preset value can be set according to actual conditions, and this embodiment does not limit this, as long as it is ensured that it will not be updated frequently when the field of view moves less.

[0066] This embodiment updates the points within the current field of view in the map display interface when the moving distance is greater than a preset value, thereby avoiding to a certain extent the instant update of the displayed points when the field of view moves slightly due to accidental touch by the user, thereby reducing the frequency of point updates and reducing power consumption.

[0067] S140: Acquire point information of points within the current field of view at least according to the overlapping points.

[0068] Specifically, at least the step of obtaining the point information of the points within the current field of view according to the coincident points is as follows: Figure 4 As shown, including:

[0069] Step S141, updating the point information of the coincident points according to the current field of view.

[0070] The point information includes the geographical coordinates, physical characteristics and location of the point in the map display interface. The geographical coordinates refer to the longitude and latitude of the point and / or the three-dimensional coordinates of the point. The physical characteristics refer to the characteristics of the physical object or facility corresponding to the point, such as the height, area, type of the building, the type and service capacity of the public facility, etc. Figure 3 As shown, when the user performs a moving operation, the positions of the overlapping points C and D in the map display interface will change, while the geographic coordinates and physical characteristics of the overlapping points C and D will obviously not change due to the user's operation. Therefore, when loading the point information within the current field of view, the geographic coordinates, physical characteristics and other point information of the overlapping points C and D can be directly obtained based on the point information of the points within the original field of view, without having to reload the geographic coordinates, physical characteristics and other point information of the overlapping points C and D, and update the display positions of the overlapping points C and D in the map display interface based on the current field of view, thereby avoiding the need to reload all the point information of the points within the current field of view, thereby improving the efficiency of program operation and reducing power consumption.

[0071] Step S142, determining whether there is a new point in the current field of view.

[0072] If there is a new point, execute step S143; if there is no new point, end the process.

[0073] Step S143, determining whether the point instance in the buffer pool is empty.

[0074] If the point instance in the buffer pool is not empty, execute step S144, otherwise execute step S145.

[0075] In some implementations, step S143 may also determine whether to execute step S144 and step S145 by judging the relationship between the number of newly added points and the number of point instances in the cache pool. Specifically, when the number of newly added points is not greater than the number of point instances in the cache pool, step S144 is executed. When the number of newly added points is greater than the number of point instances in the cache pool, step S144 and step S145 may be executed in parallel or successively.

[0076] Step S144: obtaining a pre-acquired point instance from the buffer pool for initialization to determine the point information of the newly added point within the current field of view.

[0077] In some implementations, the point instances in the cache pool may include pre-created point instances and may also include point instances obtained after resetting non-overlapping points generated based on changes in field of view parameters. Thus, when a new point is added to the current field of view, the point instance can be quickly called from the cache pool, thereby avoiding frequent creation of point instances during program execution and improving operation efficiency. Figure 5 As shown, with the user's operation, point A and point B in the original field of view 51 disappear from the field of view, while point E and point F outside the original field of view 41 need to be displayed in the field of view, that is, points that do not exist in the original field of view 51 are added to the current field of view 52. At this time, a corresponding number of point instances can be directly obtained from the cache pool for initialization, for example, 2 point instances can be obtained from the cache pool to initialize the geographical location, physical characteristics and corresponding positions of point E and point F in the map display interface. This embodiment calls the point embodiment in the cache pool, so that the point information of the newly added points in the current field of view can be quickly loaded to display all the points in the current field of view in the map display interface, thereby improving the efficiency of program operation and reducing power consumption.

[0078] Step S145 , creating a point instance in real time and initializing it to determine the point information of the newly added point within the current field of view.

[0079] In some embodiments, when the point instances in the cache pool are occupied or no point instances are created in advance, the present embodiment can create a corresponding number of point instances in real time according to the number of newly added points and initialize them, thereby determining the point information of the newly added points within the current field of view, so as to display all the points within the current field of view in the map display interface.

[0080] It should be understood that step S141 is an update step for the coincident points in the current field of view, and steps S142-S145 are update steps for the newly added points in the current field of view. There is no precedence relationship between the execution order of step S141 and steps S142-S145, that is, step S141 can be executed before steps S142-S145, step S141 can also be executed after steps S142-S145, and step S141 can also be executed in parallel with any one or more steps of steps S142-S145.

[0081] Furthermore, the present embodiment will render the points displayed within the current field of view. Specifically, rendering the points displayed within the current field of view includes rendering the points displayed within the current field of view through a display component or a text image. The display component or 3D text image includes text and images, and the text may represent the name of the physical entity corresponding to the point, such as "xx school", and the image may be an image of a corresponding three-dimensional model of equipment, facilities and / or buildings, or may be different shapes with representative meanings, such as a circle representing a school, a square representing a hospital, etc., so that the user can determine the type, location, name and other information of the corresponding point based on the text and image displayed in the current field of view. For example, Figure 6 A schematic diagram after rendering of each point is shown. There are 4 points in the current field of view. The physical entities corresponding to the 4 points are 3 schools (i.e., School L, School M, and School N) and 1 hospital (i.e., Hospital K). The user can know the type, name, location, and other information of the physical entity corresponding to each point based on the content displayed on the map display interface 61.

[0082] Furthermore, when the points within the current field of view are rendered through the display component, the user can interact with the display component by clicking on the display component, etc., to obtain detailed information about the physical entity corresponding to the point, such as the working hours of K Hospital, the departments opened, etc. In some implementations, the points within the current field of view can also be rendered through text images. Compared with display components, text images occupy less computing resources and memory, and the loading speed is usually faster. Therefore, when the points within the current field of view are rendered through text images, power consumption can be further reduced and operating efficiency can be improved.

[0083] In some embodiments, the map display interface also includes display information of points. In response to the change in the field of view radius, this embodiment updates the display information of the points within the current field of view, and the display information includes an aggregation tag, which is used to characterize the type and number of points. When the user zooms in or out, the field of view radius will decrease or increase accordingly, and the aggregation level will also change accordingly. Due to different aggregation levels, the aggregation density of points in each area in the field of view is different, that is, the type and number of aggregated points are different. Therefore, as the field of view radius changes, the display information will also be updated accordingly.

[0084] In some embodiments, when the user zooms out, the field of view radius increases accordingly. When the user stops zooming out and the zoom ratio is less than a preset value, similar points in adjacent areas within the field of view are aggregated and the display information of the points is updated.

[0085] Specifically, the field of view can be spatially gridded, so that the field of view is divided into multiple grid units. The size of the grid unit can be set according to actual needs. For example, the size of the grid unit can be set based on various existing metrics such as Euclidean distance, Manhattan distance, Chebyshev distance, etc., and this embodiment does not limit this. By calculating the distance between each point in the current field of view and the center of each grid unit, each point is assigned to the nearest grid unit. Furthermore, by traversing all points in the same grid unit, the number of points of the same type is determined and aggregated.

[0086] Specifically, assuming that the user is based on Figure 6 In the visual range shown, after zooming out on the map display interface, School L, School M, and Hospital K are in the same grid unit. School L and School M need to be aggregated, and the display information of the points in the corresponding area is represented by the aggregate label. Figure 7 As shown, different types of points can be identified by the shape and / or color of the aggregated label, for example, a school can be identified by a circle, a hospital can be identified by a square, and a restaurant can be identified by a triangle. It should be understood that the specific form of the aggregated label can be set according to actual needs, as long as different types of points can be distinguished, and this embodiment is not limited to this. Figure 7 The area W shown corresponds to the geographical range Figure 6 The visual field range shown corresponds to the same geographical area. The aggregation label 711 indicates that there are two schools near the location (i.e., corresponding to Figure 6 The aggregation label 712 indicates that there is a hospital near the location (i.e., corresponding to Figure 6 In the example, the aggregation tag 713 indicates that there are 5 restaurants near the location. Furthermore, the user can interact with the aggregation tag to obtain detailed information of each point in the aggregation tag. For example, in this embodiment, after the user clicks the aggregation tag 711, the name, geographic location and other information of the L school and the M school can be displayed in a pop-up window map display interface.

[0087] Therefore, when the field of view radius increases and causes the aggregation level to change, the display information in the map display interface will be updated accordingly. Specific information such as the name of each point will no longer be displayed. Instead, the information of the same type of points will be aggregated in an aggregation label, and the number of points of the corresponding type in the corresponding area will be displayed through the aggregation label.

[0088] In some embodiments, when a user needs to view detailed information of a point, the detailed information of the corresponding point can be displayed in the map display interface by zooming in. Figure 7 When the detailed information of the points in the area W is displayed, the field of view can be changed based on the user's zoom operation. Figure 7The state change of the map display interface 71 shown is Figure 6 The state of the map display interface 61 shown, that is, the point information of the points changes from the aggregated display state to the dispersed display state. Since the point information of the points in the area W has been loaded, when the zoom-in operation stops updating the points, the geographical coordinates, physical characteristics and other point information of each point in the area W can be directly obtained, and the display position of the point in the current field of view can be updated.

[0089] The embodiment of the present invention obtains points within the original field of view, and in response to the field of view parameters stopping changing, determines the moving distance of the field of view, wherein the field of view parameters include the field of view angle, field of view height and / or field of view radius, and in response to the moving distance being greater than a preset value, compares the original field of view with the points within the current field of view, obtains the overlapping points within the original field of view, and the overlapping points represent the points existing in both the original field of view and the current field of view, and obtains the point information of the points within the current field of view at least based on the overlapping points. Thus, after the moving distance of the field of view is greater than the preset value, the point information within the current field of view is obtained, so as to avoid frequent updates of the point information of the points within the field of view, improve the efficiency of program operation, reduce power consumption, and thus enhance the user experience.

[0090] Figure 8 Schematic diagram of a map display device according to an embodiment of the present invention. Figure 8 As shown, the device includes a first acquisition module 81 , a determination module 82 , a comparison module 83 and a second acquisition module 84 .

[0091] The first acquisition module 81 is configured to acquire points within the original field of view. The determination module 82 is configured to determine the moving distance of the field of view in response to the field of view parameter stopping changing, and the field of view parameter includes the field of view angle and / or the field of view height. The comparison module 83 is configured to compare the original field of view with the points within the current field of view in response to the moving distance being greater than a preset value, and acquire the overlapping points within the original field of view, wherein the overlapping points represent the points existing in both the original field of view and the current field of view. The second acquisition module 84 is configured to acquire the point information of the points within the current field of view at least based on the overlapping points.

[0092] The second acquisition module 84 also includes a coincidence point update unit, a first initialization unit, and a second initialization unit. The coincidence point update unit is configured to update the point information of the coincidence point according to the current field of view. The first initialization unit is configured to obtain a pre-created point instance from the cache pool for initialization in response to the presence of a new point in the current field of view, so as to determine the point information of the new point in the current field of view. The second initialization unit is configured to create a point instance in real time and initialize it in response to the point instance in the cache pool being empty, so as to determine the point information of the new point in the current field of view.

[0093] Furthermore, the map display device also includes a rendering module, a startup module, a reset module and an update module. The rendering module is configured to render and display the points within the current field of view. The startup module is configured to start a timer to detect changes in the field of view parameters in response to receiving a map display instruction. The reset module is configured to reset the non-overlapping points within the original field of view and store them in a cache pool. The update module is configured to update the display information of the points within the current field of view in response to changes in the field of view radius, and the display information includes an aggregation tag, and the aggregation tag is used to characterize the type and number of points. The rendering module also includes a point rendering unit, which is configured to render the points displayed within the current field of view through a display component or a text image.

[0094] The embodiment of the present invention obtains points within the original field of view, and in response to the field of view parameters stopping changing, determines the moving distance of the field of view, wherein the field of view parameters include the field of view angle, field of view height and / or field of view radius, and in response to the moving distance being greater than a preset value, compares the original field of view with the points within the current field of view, obtains the overlapping points within the original field of view, and the overlapping points represent the points existing in both the original field of view and the current field of view, and obtains the point information of the points within the current field of view at least based on the overlapping points. Thus, after the moving distance of the field of view is greater than the preset value, the point information within the current field of view is obtained, so as to avoid frequent updates of the point information of the points within the field of view, improve the efficiency of program operation, reduce power consumption, and thus enhance the user experience.

[0095] Fig. 9 Schematic diagram of an electronic device according to an embodiment of the present invention. Fig. 9 As shown, Fig. 9The electronic device shown is a universal address query device, which includes a universal computer hardware structure, which at least includes a processor 91 and a memory 92. The processor 91 and the memory 92 are connected via a bus 93. The memory 92 is suitable for storing instructions or programs executable by the processor 91. A manager is configured in the processor 91. The manager includes a general manager and multiple sub-managers, and the general manager is suitable for managing each of the sub-managers, and each sub-manager manages a different type of point. Through the general manager calling each sub-manager, operations such as adding, deleting, modifying, and querying can be performed on the points managed by each sub-manager. Each sub-manager adds, deletes, modifies, queries, and other operations to the points by calling the same parent class. For example, by utilizing the characteristics of C++ language that subclasses can inherit all functions of the parent class and that subclasses are independent of each other, the management (addition, deletion, modification, and query) of all POI points of a certain class can be realized by constructing ASimplePointActor subclasses, and the USimplePointManager manager is used to manage all subclasses inherited from ASimplePointActor. This means that a POI point in a certain class of points can be directly found through the USimplePointManager manager, thereby managing all points in the scene. The ASimplePointActor class has a container of the USimplePointInfo data type, and it can obtain any USimplePointInfo class object in the container for addition, deletion, modification, and query by storing the USimplePointInfo class. The function of USimplePointInfo is that it stores the basic information of the POI point (such as the coordinate information, ID information, etc. of the POI point) and the WidgetComponent component (a user control inherited from USimplePointWidget). The WidgetComponent component can be used to display the stored information in the form of UI or text. The processor 91 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 91 executes the instructions stored in the memory 92, thereby executing the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 93 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 94 and the display device and the input / output (I / O) device 95. The input / output (I / O) device 95 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 95 is connected to the system through an input / output (I / O) controller 96.

[0096] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0097] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.

[0098] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.

[0099] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.

[0100] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.

[0101] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0102] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A map display method, characterized in that: The method comprises: Get the points within the original field of view; In response to the field of view parameters ceasing to change, determining the moving distance of the field of view range, wherein the field of view parameters include field of view angle, field of view height and / or field of view radius; In response to the moving distance being greater than a preset value, comparing the points in the original field of view with those in the current field of view, obtaining overlapping points in the original field of view, wherein the overlapping points represent points existing in both the original field of view and the current field of view; At least obtaining the point information of the points within the current field of view according to the coincident points; The step of obtaining the point information of the points within the current field of view at least according to the coincident points includes: Update the point information of the coincident points according to the current field of view; In response to the presence of a newly added point within the current field of view, obtaining a pre-created point instance from a cache pool for initialization to determine point information of the newly added point within the current field of view; In response to the point instance in the buffer pool being empty, a point instance is created in real time and initialized to determine the point information of the newly added point within the current field of view.

2. The method according to claim 1, characterized in that The method further comprises: The rendering displays the points within the current field of view.

3. The method according to claim 2, characterized in that The points displayed by the rendering within the current field of view include: The points displayed within the current field of view are rendered through display components or text images.

4. The method according to claim 1, characterized in that: The method further comprises: In response to receiving the map display instruction, a timer is started to detect a change in the field of view parameter.

5. The method according to claim 1, characterized in that The method further comprises: The non-overlapping points within the original field of view are reset and stored in the cache pool.

6. The method according to claim 1, characterized in that The method further comprises: In response to the change in the field of view radius, the display information of the points within the current field of view is updated, the display information includes an aggregation tag, and the aggregation tag is used to characterize the type and number of points.

7. A map display device, characterized in that: The device comprises: A first acquisition module is configured to acquire points within an original field of view; a determination module configured to determine a moving distance of the field of view range in response to a field of view parameter ceasing to change, the field of view parameter including a field of view angle and / or a field of view height; A comparison module is configured to compare the points in the original field of view with those in the current field of view in response to the moving distance being greater than a preset value, and obtain overlapping points in the original field of view, wherein the overlapping points represent points existing in both the original field of view and the current field of view; A second acquisition module is configured to acquire point information of points within the current field of view at least according to the coincident points; Among them, the second acquisition module also includes a coincidence point update unit, a first initialization unit and a second initialization unit, the coincidence point update unit is configured to update the point information of the coincidence point according to the current field of view; the first initialization unit is configured to obtain a pre-created point instance from a cache pool for initialization in response to the existence of a new point in the current field of view, so as to determine the point information of the new point in the current field of view; the second initialization unit is configured to create a point instance in real time and initialize it in response to the point instance in the cache pool being empty, so as to determine the point information of the new point in the current field of view.

8. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Map display method and device of information point

    CN103050054A

  • Map vision correction method and correction device based on points of interest

    CN103558956A

  • Map marker loading method and mobile terminal

    CN108446066A

  • Electronic map rendering method and device

    CN110647597A

  • Method and device for processing map data, equipment, storage medium and program product

    CN114461720A