CN117909008A - Map display method, map display device, electronic equipment and readable storage medium - Google Patents

Map display method, map display device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117909008A
CN117909008A CN202311797830.7A CN202311797830A CN117909008A CN 117909008 A CN117909008 A CN 117909008A CN 202311797830 A CN202311797830 A CN 202311797830A CN 117909008 A CN117909008 A CN 117909008A
Authority
CN
China
Prior art keywords
visual field
point
view
field range
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311797830.7A
Other languages
Chinese (zh)
Inventor
吴国清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yutian Hengrui Technology Development Co ltd
Original Assignee
Beijing Yutian Hengrui Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yutian Hengrui Technology Development Co ltd filed Critical Beijing Yutian Hengrui Technology Development Co ltd
Priority to CN202311797830.7A priority Critical patent/CN117909008A/en
Publication of CN117909008A publication Critical patent/CN117909008A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a map display method, a map display device, electronic equipment and a readable storage medium, wherein the map display method, the map display device and the readable storage medium are characterized in that by acquiring point positions in an original visual field range, responding to stop change of visual field parameters, determining the moving distance of the visual field range, wherein the visual field parameters comprise a visual field angle, a visual field height and/or a visual field radius, responding to the fact that the moving distance is larger than a preset value, comparing the point positions in the original visual field range and a current visual field range, acquiring a coincident point position in the original visual field range, and representing the point positions existing in the original visual field range and the current visual field range, and acquiring the point position information of the point position in the current visual field range at least according to the coincident point position. Therefore, after the moving distance of the visual field range is larger than a preset value, the point location information of the point location in the current visual field range is acquired, frequent updating of the point location information of the point location in the visual field range is avoided, the program running efficiency is improved, the power consumption is reduced, and therefore the user experience is improved.

Description

Map display method, map display device, electronic equipment and readable storage medium
Technical Field
The invention relates to the technical field of smart cities, in particular to a map display method, a map display device, electronic equipment and a readable storage medium.
Background
Digital twin-wisdom city is a technology that corresponds an entity, system, or process of the physical world to an accurate model in the virtual world. With the development of digital twin smart cities, the amount of data accessed in a three-dimensional scene is larger and larger. The digital twin smart city is developed by using a fantasy engine, marking of point location examples in a map is mainly realized by components, and the components or the point location examples are managed by a manager, so that the addition, deletion and modification of the point location are realized.
However, since the component itself consumes a large amount of calculation, when the number of points to be displayed exceeds a certain number, for example, exceeds 1000, the number of consumed frames is about 20 frames, which may result in low efficiency of program operation and excessive power consumption, resulting in unsmooth display or blocking, and affecting the user experience.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a map display method, apparatus, electronic device, and readable storage medium, so as to avoid frequently updating displayed points, improve the efficiency of program operation, reduce power consumption, and thereby improve the user experience.
In a first aspect, there is provided a map display method, the method comprising:
Acquiring point positions in an original visual field range;
Determining a movement distance of the field of view in response to the field of view parameter stopping changing, the field of view parameter including a field of view angle, a field of view height, and/or a field of view radius;
Responding to the moving distance being larger than a preset value, comparing the point positions in the original visual field range and the current visual field range, and acquiring a coincident point position in the original visual field range, wherein the coincident point position represents the point position in the original visual field range and the current visual field range;
and acquiring the point position information of the point position in the current visual field range at least according to the coincident point position.
In some embodiments, the method further comprises:
rendering the point positions displayed in the current field of view.
In some embodiments, the rendering the points displayed within the current field of view comprises:
and rendering the point positions displayed in the current visual field range through a display component or a text picture.
In some embodiments, the method further comprises:
In response to receiving a map display instruction, a timer is started to detect a change in the view parameter.
In some embodiments, the method further comprises:
And resetting the non-coincident point positions in the original visual field range and storing the reset non-coincident point positions in a cache pool.
In some embodiments, the obtaining the point location information of the point location in the current field of view at least according to the coincident point location includes:
updating the point position information of the coincident point positions according to the current visual field range;
In response to the existence of the newly added point in the current visual field, acquiring a pre-created point instance from a cache pool for initialization so as to determine the point location information of the newly added point in the current visual field;
And in response to the point position instance in the cache pool being empty, creating the point position instance in real time and initializing the point position instance to determine the point position information of the newly added point position in the current visual field range.
In some embodiments, the method further comprises:
And in response to the change of the field radius, updating display information of the point positions in the current field of view, wherein the display information comprises an aggregation tag, and the aggregation tag is used for representing the type and the number of the point positions.
In a second aspect, there is provided a map display apparatus, the apparatus comprising:
the first acquisition module is configured to acquire point positions in the original visual field range;
a determination module configured to determine a movement distance of the field of view range in response to a stop change in a field of view parameter, the field of view parameter including a field of view angle and/or a field of view height;
the comparison module is configured to compare the point positions in the original visual field range and the current visual field range in response to the moving distance being larger than a preset value, and obtain a coincident point position in the original visual field range, wherein the coincident point position represents a point position in both the original visual field range and the current visual field range;
and the second acquisition module is configured to acquire the point position information of the point position in the current field of view at least according to the coincident point position.
In a third aspect, an electronic device is provided, comprising a memory for storing 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 the first aspect of the embodiment of the invention.
In a fourth aspect, a computer readable storage medium is provided, in which a computer program is stored, which computer program, when being executed by a processor, implements the method according to the first aspect of the embodiments of the invention.
According to the embodiment of the invention, the point positions in the original visual field range are obtained, the movement distance of the visual field range is determined in response to the stop change of the visual field parameter, the visual field parameter comprises the visual field angle, the visual field height and/or the visual field radius, the point positions in the original visual field range and the current visual field range are compared in response to the movement distance being larger than a preset value, the coincident point positions in the original visual field range are obtained, the point positions in the original visual field range represent the point positions in the original visual field range and the current visual field range, and the point position information of the point positions in the current visual field range is obtained at least according to the coincident point positions. Therefore, after the moving distance of the visual field range is larger than a preset value, the point location information of the point location in the current visual field range is acquired, frequent updating of the point location information of the point location in the visual field range is avoided, the program running efficiency is improved, the power consumption is reduced, and therefore the user experience is improved.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the present invention with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a map display method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a map display interface according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another map display interface according to an embodiment of the present invention;
FIG. 4 is a flow chart of acquiring point location information for points within a current field of view according to an embodiment of the present invention;
FIG. 5 is a schematic illustration of yet another map display interface according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of yet another map display interface according to an embodiment of the present invention;
FIG. 7 is a schematic illustration of yet another map display interface according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a map display apparatus according to an embodiment of the present invention;
Fig. 9 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The present application is described below based on examples, but the present application is not limited to only these examples. In the following detailed description of the present application, certain specific details are set forth in detail. The present application will be fully understood by those skilled in the art without the details described herein. Well-known methods, procedures, flows, components and circuits have not been described in detail so as not to obscure the nature of the application.
Moreover, those of ordinary skill in the art will appreciate that the drawings are provided herein for illustrative purposes and that the drawings are not necessarily drawn to scale.
Unless the context clearly requires otherwise, the words "comprise," "comprising," and the like throughout the application are to be construed as including but not being exclusive or exhaustive; that is, it is the meaning of "including but not limited to".
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In a map corresponding to a digital twin smart city, pois (Point of Interest, points of interest) are important data elements, and pois refer to places or positions with specific meaning and value in the city. The user can view detailed information of points in the map, screen points of interest and the like on the map display interface by interacting with the control component, such as clicking, dragging, zooming and the like.
Fig. 1 is a flowchart of a map display method according to an embodiment of the present invention. As shown in fig. 1, the map display method according to the embodiment of the present invention includes the steps of:
S110, obtaining point positions in the original visual field range.
The field of view characterizes a range of geographic areas that a user can observe through a map display interface. The map can be loaded through equipment with a map display function such as a smart phone, a computer and a tablet personal computer, and the point positions in the corresponding range are displayed on the map display interface based on the original visual field range.
In some embodiments, before executing step S110, the present embodiment further performs data initialization, where the data initialization includes setting a correspondence between a view radius and an aggregation level, setting an original view radius, and starting a timer.
The view radius characterizes the size of the view range, namely the view radius determines the range width which can be seen by a user, a larger view radius can provide a wider view, namely more points can be contained, and a smaller view radius can focus on a smaller area to display more detailed points. The aggregation level characterizes an aggregate density of the points. In some embodiments, the larger the field of view radius, i.e., the wider the field of view, the larger the aggregation level, i.e., the greater the aggregation density of points within the field of view. The user can view the map by starting a applet or application software and the like, and the embodiment aggregates and displays the points in the corresponding geographic area in the map display interface of the display device based on the preset original view radius and the aggregation level corresponding to the original view radius, so as to determine the content displayed in the map display interface at the initial time. Specifically, when the radius of the original view is larger, the embodiment can aggregate adjacent points according to the types of the points, and then display corresponding aggregation labels, wherein the aggregation labels are used for representing the types and the number of the points in the corresponding area, namely, the point information of the points of the same type in the corresponding area is displayed by rendering one aggregation label, so that the situation that the rendering points are too dense due to the number of the points or the situation that important point information cannot be displayed due to the too high aggregation degree can be avoided.
In some embodiments, the starting of the timer is specifically in response to receiving a map display instruction, the starting of the timer to detect a change in the view parameter. It should be understood that the points displayed in the original view range are only partial points in the map, and the user can change the points displayed in the view range through operations such as zooming and moving, so as to view the point location information of the required points.
S120, responding to the stop change of the visual field parameter, and determining the moving distance of the visual field range.
Wherein the view parameters include view angle, view height, and/or view radius.
In some embodiments, the view parameters such as view angle, view height, and/or view radius may change accordingly when the user performs movements, zooming, rotating, etc. In this embodiment, the visual field parameter is periodically collected by the timer, and the newly collected visual field parameter is compared with the visual field parameter collected in the previous period to determine whether the visual field parameter is changed. It should be understood that the acquisition period of the view parameter may be set to be once acquired per frame, or may be set according to actual requirements, which is not limited in this embodiment. And after the timer detects that the vision parameter stops changing, determining the changing quantity of the vision parameter.
In some implementations, the field of view angle changes accordingly during the movement operation of the user, and the movement distance of the field of view range is determined after detecting that the field of view angle stops changing. Specifically, a reference point may be determined in the map display interface, and the distance between the positions of the reference point in the original field of view and the current field of view is compared, thereby determining the moving distance. For example, as shown in fig. 2, when the map display interface displays the original visual field 21, the position P of one reference point is determined in the map display interface, and when the user performs a moving operation, the visual field displayed by the map display interface is changed from the original visual field 21 to the current visual field 22, the position of the reference point is changed to the position P1 in the map display interface, and the distance d between the position P and the position P1 is determined as the moving distance.
In some embodiments, the distance of movement of the fiducial in the x-axis direction is determined to be a first distance of movement and the distance of movement of the fiducial in the y-axis direction is determined to be a second distance of movement. The movement distance of the field of view may be the first movement distance and/or the second movement distance, or may be a straight movement distance determined according to the first movement distance and the second movement distance.
In other implementations, a reference point may be determined in the map display interface, an actual geographic coordinate corresponding to the reference point in the original field of view is determined, after the stop change of the field of view angle is detected, a distance between the reference point and the actual geographic coordinate corresponding to the reference point in 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 according to the map display scale and the scaling.
S130, in response to the moving distance being larger than a preset value, comparing the point positions in the original visual field range and the current visual field range, and acquiring the coincident point positions in the original visual field range.
And the coincidence point points represent points existing in the original visual field range and the current visual field range.
When the moving distance is not greater than the preset value, the moving distance of the visual field range is small, the difference between the point positions in the current visual field range after the movement and the original visual field range before the movement is small, the point position information required to be checked by the user is likely to be displayed in the original visual field range, and at the moment, the meaning of updating the point positions in the visual field range is not great. Therefore, the embodiment does not reset and render the point location information under the condition, and further reduces the system power consumption.
When the moving distance is larger than a preset value, the point difference between the original visual field range and the point in the current visual field range is larger, and the coincident point in the original visual field range needs to be acquired so as to update the point displayed on the map display interface.
Specifically, in this embodiment, by comparing the original view field range with the point locations in the current view field range, the coincident point locations in the original view field range are obtained. As shown in fig. 3, when the map display interface displays the original field of view 31, the user can find the point information of the point a, the point B, the point C, and the point D through the map display interface. When the user performs a moving operation, the view field range displayed by the map display interface is changed from the original view field range 31 to the current view field range 32, and at this time, the points existing in the original view field range and the current view field range are the point positions C and D, that is, the obtained coincident point positions in the original view field range are the point positions C and D, and the point positions a and B are non-coincident point positions.
In some implementations, after determining the coincident point in the original field of view, further, resetting the non-coincident point in the original field of view and storing the reset non-coincident point in the cache pool, so as to increase the number of point position instances in the cache pool, and call when the point is newly added subsequently.
In some implementations, the preset value may be set according to a region size of the map display interface, e.g., the preset value may be set to one tenth of a length of the map display interface. In other implementations, different aggregation levels may correspond to different preset values, e.g., the higher the aggregation level, i.e., the greater the concentration of points within the field of view, the greater the preset value. In practical application, the preset value may be set according to practical situations, which is not limited in this embodiment, so long as it is ensured that the movement in the field of view is small and not updated frequently.
In the embodiment, when the moving distance is larger than the preset value, the point location in the current visual field range in the map display interface is updated, so that the point location displayed is prevented from being updated in real time to a certain extent when the visual field range moves slightly due to the false touch of the user, the point location updating frequency is reduced, and the power consumption is reduced.
And S140, acquiring point position information of the point positions in the current visual field range at least according to the coincident point positions.
Specifically, the step of obtaining the point location information of the point location in the current field of view at least according to the coincident point location is shown in fig. 4, and includes:
And step S141, updating the point position information of the coincident point positions according to the current visual field range.
The point location information comprises information such as geographic coordinates of the point location, physical characteristics, positions in a map display interface and the like, wherein the geographic coordinates refer to longitude and latitude of the point location and/or three-dimensional coordinates of the point location, and the physical characteristics refer to characteristics of a physical object or facility corresponding to the point location, such as height, area and type of a building, type and service capability of public facilities and the like. As shown in fig. 3, when the user performs a moving operation, the position of the coincidence point C, D in the map display interface changes, and the geographical coordinates and physical characteristics of the coincidence point C, D are obviously not changed due to the user's operation. Therefore, when the point location information in the current visual field range is loaded, the point location information such as the geographic coordinates, the physical characteristics and the like of the coincident point location C, D can be directly obtained based on the point location information of the point location in the original visual field range, the reloading of the point location information such as the geographic coordinates, the physical characteristics and the like of the coincident point location C, D is not needed, and the display position of the coincident point location C, D in the map display interface is updated based on the current visual field range, so that the whole reloading of the point location information of the point location in the current visual field range is avoided, the running efficiency of a program is improved, and the power consumption is reduced.
Step S142, judging whether a new point exists in the current visual field range.
If there is a new point, step S143 is executed, and if there is no new point, the flow is ended.
Step S143, judging whether the point location instance in the cache pool is empty.
If the point instance in the cache pool is not empty, step S144 is executed, otherwise step S145 is executed.
In some implementations, step S143 may also determine whether to perform step S144 and step S145 by determining a number relationship between the newly added point and the 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 performed. 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 performed in parallel or sequentially.
Step S144, the pre-acquired point location examples are acquired from the cache pool and initialized to determine the point location information of the newly added point location in the current visual field range.
In some implementations, the point location instances in the cache pool may include pre-created point location instances or point location instances acquired after the non-coincident point location generated based on the field of view parameter change, so that when a point location is newly added in the current field of view, the point location instances can be quickly called from the cache pool, thereby avoiding frequent creation of the point location instances in the program running process and improving the running efficiency. As shown in fig. 5, with the user's operation, the points a and B in the original visual field 51 disappear from the visual field, and the points E and F existing outside the original visual field 41 need to be displayed in the visual field, that is, the points not existing in the original visual field 51 are newly added in the current visual field 52. At this time, a corresponding number of point location examples may be directly obtained from the cache pool for initialization, for example, 2 point location examples are obtained from the cache pool, and the geographic location, physical characteristics, corresponding location and other point location information of the point location E and the point location F are initialized. According to the embodiment, the point location embodiment in the cache pool is called, so that the point location information of the newly added point location in the current visual field can be rapidly loaded, all the point locations in the current visual field are displayed in the map display interface, the running efficiency of a program is improved, and the power consumption is reduced.
Step S145, creating and initializing a point location instance in real time to determine the point location information of the newly added point location in the current visual field range.
In some embodiments, when the point location instances in the cache pool are occupied or the point location instances are not created in advance, the embodiment may create a corresponding number of point location instances in real time according to the number of the newly-added point locations and initialize the point location instances, so as to determine the point location information of the newly-added point locations in the current field of view, so as to display all the point locations in the current field of view in the map display interface.
It should be understood that step S141 is an update step of the coincident point in the current field of view, and steps S142-S145 are update steps of the newly added point in the current field of view. The execution sequence of step S141 and steps S142-S145 does not have a precedence relationship, i.e., step S141 may be executed before steps S142-S145, step S141 may be executed after steps S142-S145, and step S141 may be executed in parallel with any one or more steps S142-S145.
Further, the present embodiment renders the point positions displayed in the current field of view. Specifically, rendering the point locations displayed within the current field of view includes rendering the point locations displayed within the current field of view through a display component or text picture. The display component or the 3D text picture comprises texts and images, the texts can represent names of physical entities corresponding to the point positions, such as 'xx schools', the images can be images of corresponding three-dimensional models of equipment, facilities and/or buildings, and can also be different shapes with representation significance, such as representing schools, squares representing hospitals and the like, so that a user can determine information such as types, positions, names and the like of the corresponding point positions according to the texts and the images displayed in the current field of view. For example, fig. 6 shows a schematic diagram after rendering each point, where there are 4 points in the current field of view, and the physical entities corresponding to the 4 points are 3 schools (i.e. L schools, M schools and N schools) and 1 hospitals (i.e. K hospitals), so that the user can know the type, name, position and other information of the physical entity corresponding to each point according to the content displayed on the map display interface 61.
Further, when the point location in the current field of view is rendered through the display component, the user can interact with the display component in a mode of clicking the display component and the like to acquire detailed information of a physical entity corresponding to the point location, such as working time of a K hospital, information of an opened department and the like. In some implementations, the point location in the current field of view can also be rendered through the text picture, and because the computing resource and the memory occupied by the text picture are smaller and the loading speed is generally faster compared with those of the display component, when the point location in the current field of view is rendered through the text picture, the power consumption can be further reduced, and the operation efficiency is improved.
In some embodiments, the map display interface further includes display information of the points, where in this embodiment, in response to the change of the radius of view, the display information of the points in the current view range is updated, where the display information includes an aggregation tag, and the aggregation tag is used to characterize a type of the points and a number of the points. When the user performs a zoom-in or zoom-out operation, the radius of the field of view will decrease or increase accordingly, and the aggregation level will change accordingly. Because of different aggregation levels, the aggregation densities of the points in each region in the visual field range are different, namely the types and the numbers of the aggregated points are different, and therefore, along with the change of the radius of the visual field, the display information is updated correspondingly.
In some embodiments, when the user performs the zoom-out operation, the radius of the field of view will be increased correspondingly, and when the zoom-out operation of the user is stopped and the zoom-out scale is smaller than the preset value, the same type of point locations in the adjacent area within the field of view are aggregated, and the display information of the point locations is updated.
Specifically, the field of view may be spatially gridded, so that the field of view is divided into a plurality of grid cells, and the size of the grid cells may be set according to actual requirements, for example, the size of the grid cells may be set based on various existing measurement methods such as euclidean distance, manhattan distance, chebyshev distance, and the like, which is not limited in this embodiment. And (3) distributing each point position into the nearest grid cell by calculating the distance between each point position in the current field of view and the center of each grid cell. Further, the number of the points of the same kind is determined and aggregated by traversing all the points in the same grid cell.
Specifically, assuming that after the user performs the zoom-out operation on the map display interface based on the view range shown in fig. 6, the L schools, the M schools and the K hospitals are in the same grid unit, aggregation is required for the L schools and the M schools, and display information of points in the corresponding area is represented by an aggregation label. As shown in FIG. 7, different types of points may be identified by aggregating the shape and/or color of the tag, e.g., identifying schools with circles, identifying hospitals with squares, and identifying restaurants with triangles. It should be understood that the specific expression form of the aggregation tag may be set according to actual requirements, so long as different point location types can be distinguished, which is not limited in this embodiment. The geographic area corresponding to the area W shown in fig. 7 is the same as the geographic area corresponding to the field of view shown in fig. 6, the aggregate label 711 indicates that two schools exist near the location (i.e., corresponding to L schools and M schools in fig. 6), the aggregate label 712 indicates that a hospital exists near the location (i.e., corresponding to K hospitals in fig. 6), and the aggregate label 713 indicates that 5 restaurants exist near the location. Further, the user may interact with the aggregation tag to obtain detailed information of each point in the aggregation tag, for example, after the user clicks the aggregation tag 711, the embodiment may display information such as names, geographical positions, and the like of the L school and the M school in the popup map display interface.
Therefore, when the radius of the view is increased and the aggregation level is changed, the display information in the map display interface is correspondingly updated, the specific information such as the names of the points are not displayed any more, the information of the points of the same type is aggregated in one aggregation label, and the number of the points of the corresponding type in the corresponding area is displayed through the aggregation label.
In some embodiments, when the user needs to view the detailed information of the point location, the detailed information of the corresponding point location may be displayed in the map display interface through a zoom-in operation. For example, when the user needs to view detailed information of the point in the area W shown in fig. 7, the visual field range may be changed from the state of the map display interface 71 shown in fig. 7 to the state of the map display interface 61 shown in fig. 6, that is, the point information of the point is changed from the state of the aggregate display to the state of the scatter display, based on the user's zoom-in operation. Because the point location information of the point location in the area W is already loaded, when the point location updating is stopped in the amplifying operation, the point location information such as the geographic coordinates and the physical characteristics of each point location in the area W can be directly obtained, and the display position of each point location in the current field of view can be updated.
According to the embodiment of the invention, the point positions in the original visual field range are obtained, the movement distance of the visual field range is determined in response to the stop change of the visual field parameter, the visual field parameter comprises the visual field angle, the visual field height and/or the visual field radius, the point positions in the original visual field range and the current visual field range are compared in response to the movement distance being larger than a preset value, the coincident point positions in the original visual field range are obtained, the point positions in the original visual field range represent the point positions in the original visual field range and the current visual field range, and the point position information of the point positions in the current visual field range is obtained at least according to the coincident point positions. Therefore, after the moving distance of the visual field range is larger than a preset value, the point location information of the point location in the current visual field range is acquired, frequent updating of the point location information of the point location in the visual field range is avoided, the program running efficiency is improved, the power consumption is reduced, and therefore the user experience is improved.
Fig. 8 is a schematic diagram of a map display apparatus according to an embodiment of the present invention. As shown in fig. 8, the apparatus includes a first acquisition module 81, a determination module 82, a comparison module 83, and a second acquisition module 84.
Wherein the first acquisition module 81 is configured to acquire a point location within the original field of view. The determination module 82 is configured to determine a movement distance of the field of view range in response to a stop change in a field of view parameter, the field of view parameter including a field of view angle and/or a field of view height. The comparison module 83 is configured to compare points in the original field of view range and the current field of view range in response to the moving distance being greater than a preset value, and obtain a coincident point in the original field of view range, where the coincident point represents a point in the original field of view range and the current field of view range. The second acquisition module 84 is configured to acquire the point location information of the point locations within the current field of view at least from the coincident point locations.
The second obtaining module 84 further includes a coincidence point updating unit, a first initializing unit, and a second initializing unit. The coincidence point position updating unit is configured to update point position information of the coincidence point position according to the current field of view. The first initializing unit is configured to acquire a pre-created point location instance from a cache pool to initialize in response to the existence of the newly added point location in the current field of view, so as to determine the point location information of the newly added point location in the current field of view. The second initializing unit is configured to, in response to the point location instance in the cache pool being empty, create a point location instance in real time and initialize the point location instance to determine point location information of a newly added point location in the current field of view.
Further, the map display device further comprises a rendering module, a starting module, a resetting module and an updating module. The rendering module is configured to render a point location displayed within the current field of view. The start module is configured to start a timer to detect a change in the view parameter in response to receiving a map display instruction. The resetting module is configured to reset the non-coincident point in the original visual field range and store the reset point in the buffer pool. The updating module is configured to update display information of the points in the current field of view in response to the field of view radius change, wherein the display information comprises an aggregation tag, and the aggregation tag is used for representing the type and the number of the points. The rendering module further comprises a point rendering unit configured to render points displayed in the current field of view through a display component or a text picture.
According to the embodiment of the invention, the point positions in the original visual field range are obtained, the movement distance of the visual field range is determined in response to the stop change of the visual field parameter, the visual field parameter comprises the visual field angle, the visual field height and/or the visual field radius, the point positions in the original visual field range and the current visual field range are compared in response to the movement distance being larger than a preset value, the coincident point positions in the original visual field range are obtained, the point positions in the original visual field range represent the point positions in the original visual field range and the current visual field range, and the point position information of the point positions in the current visual field range is obtained at least according to the coincident point positions. Therefore, after the moving distance of the visual field range is larger than a preset value, the point location information of the point location in the current visual field range is acquired, frequent updating of the point location information of the point location in the visual field range is avoided, the program running efficiency is improved, the power consumption is reduced, and therefore the user experience is improved.
Fig. 9 is a schematic diagram of an electronic device according to an embodiment of the invention. As shown in fig. 9, the electronic device shown in fig. 9 is a general address query device, which includes a general computer hardware structure including at least a processor 91 and a memory 92. The processor 91 and the memory 92 are connected by a bus 93. The memory 92 is adapted to store instructions or programs executable by the processor 91. A manager is provided in the processor 91. The manager comprises a master manager and a plurality of sub-managers, wherein the master manager is suitable for managing each sub-manager, and each sub-manager respectively manages different types of points. The point positions managed by each sub-manager can be added, deleted, modified, queried and the like through the call of the total manager to each sub-manager. And each child manager performs operations such as point location addition, deletion, modification, query and the like by calling the same parent class. For example, by utilizing the characteristic that the subclass in the C++ language can inherit all functions of the parent class and the subclasses are mutually independent, the management (adding, deleting and modifying) of all POI points in a certain class is realized by constructing ASimplePointActor subclasses, and all the subclasses inherited in ASimplePointActor are managed by utilizing the USimplePointManager manager, which means that a certain POI point in a certain class of point can be directly found by the USimplePointManager manager, so that all the point points in a scene are managed. The ASimplePointActor class has a USimplePointInfo data type container, and can obtain any USimplePointInfo class object in the container through storing the USimplePointInfo class, and the USimplePointInfo is characterized in that basic information (such as coordinate information, ID information and the like of the POI point) and WidgetComponent components (user controls inherited to USimplePointWidget) of the POI point are stored, and the stored information can be displayed in a UI or text mode by utilizing the WidgetComponent components. The processor 91 may be a separate microprocessor or may be a collection of one or more microprocessors. Thus, the processor 91 implements processing of data and control of other devices by executing instructions stored by the memory 92 to perform the method flows of embodiments of the present invention as described above. A bus 93 connects the above components together, while connecting the above components to a display controller 94 and display devices and input/output (I/O) devices 95. Input/output (I/O) devices 95 may be mice, keyboards, modems, network interfaces, touch input devices, somatosensory input devices, printers, and other devices which are well known in the art. Typically, input/output devices 95 are connected to the system through input/output (I/O) controllers 96.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus (device) or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may employ a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations of methods, apparatus (devices) and computer program products according to embodiments of the application. It will be understood that each of the flows in the flowchart may be implemented by computer program instructions.
These computer program instructions may be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows.
These computer program instructions may also be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows.
Another embodiment of the present invention is directed to a non-volatile storage medium storing a computer readable program for causing a computer to perform some or all of the method embodiments described above.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by specifying relevant hardware by a program, where the program is stored in a storage medium, and includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments of the application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, and various modifications and variations may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A map display method, the method comprising:
Acquiring point positions in an original visual field range;
Determining a movement distance of the field of view in response to the field of view parameter stopping changing, the field of view parameter including a field of view angle, a field of view height, and/or a field of view radius;
Responding to the moving distance being larger than a preset value, comparing the point positions in the original visual field range and the current visual field range, and acquiring a coincident point position in the original visual field range, wherein the coincident point position represents the point position in the original visual field range and the current visual field range;
and acquiring the point position information of the point position in the current visual field range at least according to the coincident point position.
2. The method according to claim 1, wherein the method further comprises:
rendering the point positions displayed in the current field of view.
3. The method of claim 2, wherein the rendering the points displayed within the current field of view comprises:
and rendering the point positions displayed in the current visual field range through a display component or a text picture.
4. The method according to claim 1, wherein the method further comprises:
In response to receiving a map display instruction, a timer is started to detect a change in the view parameter.
5. The method according to claim 1, wherein the method further comprises:
And resetting the non-coincident point positions in the original visual field range and storing the reset non-coincident point positions in a cache pool.
6. The method according to claim 1, wherein the obtaining the point location information of the point location in the current field of view at least from the coincident point location comprises:
updating the point position information of the coincident point positions according to the current visual field range;
In response to the existence of the newly added point in the current visual field, acquiring a pre-created point instance from a cache pool for initialization so as to determine the point location information of the newly added point in the current visual field;
And in response to the point position instance in the cache pool being empty, creating the point position instance in real time and initializing the point position instance to determine the point position information of the newly added point position in the current visual field range.
7. The method according to claim 1, wherein the method further comprises:
And in response to the change of the field radius, updating display information of the point positions in the current field of view, wherein the display information comprises an aggregation tag, and the aggregation tag is used for representing the type and the number of the point positions.
8. A map display apparatus, characterized in that the apparatus comprises:
the first acquisition module is configured to acquire point positions in the original visual field range;
a determination module configured to determine a movement distance of the field of view range in response to a stop change in a field of view parameter, the field of view parameter including a field of view angle and/or a field of view height;
the comparison module is configured to compare the point positions in the original visual field range and the current visual field range in response to the moving distance being larger than a preset value, and obtain a coincident point position in the original visual field range, wherein the coincident point position represents a point position in both the original visual field range and the current visual field range;
and the second acquisition module is configured to acquire the point position information of the point position in the current field of view at least according to the coincident point position.
9. An electronic device comprising a memory and a processor, wherein the memory is configured 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 of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202311797830.7A 2023-12-25 2023-12-25 Map display method, map display device, electronic equipment and readable storage medium Pending CN117909008A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311797830.7A CN117909008A (en) 2023-12-25 2023-12-25 Map display method, map display device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311797830.7A CN117909008A (en) 2023-12-25 2023-12-25 Map display method, map display device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117909008A true CN117909008A (en) 2024-04-19

Family

ID=90688968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311797830.7A Pending CN117909008A (en) 2023-12-25 2023-12-25 Map display method, map display device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117909008A (en)

Similar Documents

Publication Publication Date Title
CN110992469B (en) Visualization method and system for massive three-dimensional model data
CN110503718B (en) Three-dimensional engineering model lightweight display method
CN107506376B (en) Client for acquiring data of information point in area
US8730264B1 (en) Determining when image elements intersect
US20090327229A1 (en) Automatic knowledge-based geographical organization of digital media
CN107564077B (en) method and device for drawing road network
JP2015531918A (en) Hit test method and apparatus
US9250093B2 (en) Navigation device, method of predicting a visibility of a triangular face in an electronic map view, and method for generating a database
CN108763511B (en) Layer layout method and device in page, electronic equipment and storage medium
US10489954B1 (en) Efficient duplicate label handling
CN114418025A (en) Real-time interaction method, device and equipment based on BIM data and Internet of things data
CN113326314A (en) Data visualization method and device, electronic equipment and readable storage medium
US9141380B2 (en) Method and system for visualization of large codebases
CN107168961B (en) Data display method and device for chart
CN111744181A (en) In-game information display method and device, game client and medium
CN117909008A (en) Map display method, map display device, electronic equipment and readable storage medium
CN111744183A (en) Illumination sampling method and device in game and computer equipment
CN110109997B (en) Data processing and warehousing method and equipment
CN111475565A (en) Visual target historical geographic information data playback system and method
CN116109767A (en) Rendering method of three-dimensional scene, image processor, electronic device and storage medium
CN112215935B (en) LOD model automatic switching method and device, electronic equipment and storage medium
CN111915281B (en) Block evaluation approval method and system based on geological disaster easily-issued subarea, intelligent terminal and storage medium
CN107038176B (en) Method, device and equipment for rendering web graph page
CN112966041A (en) Data processing method, device, equipment and storage medium
CN116778129B (en) Marking method and device for coal mine three-dimensional roadway page

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination