CN117171277B - Method, system, equipment and medium for loading marks of electronic map - Google Patents

Method, system, equipment and medium for loading marks of electronic map Download PDF

Info

Publication number
CN117171277B
CN117171277B CN202311156253.3A CN202311156253A CN117171277B CN 117171277 B CN117171277 B CN 117171277B CN 202311156253 A CN202311156253 A CN 202311156253A CN 117171277 B CN117171277 B CN 117171277B
Authority
CN
China
Prior art keywords
marks
distance
display screen
display
center point
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.)
Active
Application number
CN202311156253.3A
Other languages
Chinese (zh)
Other versions
CN117171277A (en
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 Wide Technology Co ltd
Original Assignee
Beijing Wide Technology 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 Wide Technology Co ltd filed Critical Beijing Wide Technology Co ltd
Priority to CN202311156253.3A priority Critical patent/CN117171277B/en
Publication of CN117171277A publication Critical patent/CN117171277A/en
Application granted granted Critical
Publication of CN117171277B publication Critical patent/CN117171277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Instructional Devices (AREA)

Abstract

The present invention relates to the field of electronic maps, and in particular, to a method, a system, an apparatus, and a medium for loading a label of an electronic map. Comprising the following steps: acquiring a physical center point of a display screen of the electronic map, and determining position information of the physical center point mapped in the electronic map of the current display interface; and determining a first distance between the physical center point and the midpoint of the edge of the display screen, and not loading when the obtained zoom distance is greater than the first distance after the distance between the circle center of the mark and the actual center point is zoomed according to the current zoom level until loading of all marks in the current display screen is completed. The physical center point and the first actual position information are determined, so that the follow-up judgment can be made to have a basis, whether loading processing is needed or not is further determined through the distance between the physical center point and the midpoint of the edge of the display screen, loading efficiency can be improved through the scheme, and meanwhile occupation of a memory is reduced.

Description

Method, system, equipment and medium for loading marks of electronic map
Technical Field
The present invention relates to the field of electronic maps, and in particular, to a method, a system, an apparatus, and a medium for loading a label of an electronic map.
Background
In the prior art, graphical indicia are typically displayed directly on an electronic map.
The disadvantages of the prior art are as follows: if a large number of marks are required to be displayed, the marks can be overlapped on the map and cannot be distinguished, the specific number cannot be known, and the large number of marks can cause electronic map blocking, slow response and difficult zooming and sliding, so that the user experience is affected.
Disclosure of Invention
Aiming at the defects of the prior art, particularly the problems of electronic map blocking, slow response, difficulty in scaling and sliding, influence on user experience and the like, the invention particularly provides a method, a system, equipment and a medium for loading marks of an electronic map, which are as follows:
1) In a first aspect, the present invention provides a method for loading a label of an electronic map, which specifically adopts the following technical scheme:
S1, acquiring a physical center point of a display screen of an electronic map, determining first actual position information overlapped with the physical center point on the electronic map, and determining a first distance between the physical center point and a midpoint of any edge of the display screen;
And S2, when the first distance is smaller than the scaling distance under the current scaling ratio between the actual position information and the actual position of the circle center of any mark on the electronic map, displaying any mark on the display screen until judging each mark on the electronic map.
The mark loading method of the electronic map has the following beneficial effects:
The physical center point and the first actual position information are determined, so that the follow-up judgment can be made to have a basis, whether loading processing is needed or not is further determined through the distance between the physical center point and the midpoint of the edge of the display screen, loading efficiency can be improved through the scheme, and meanwhile occupation of a memory is reduced.
On the basis of the scheme, the invention can be improved as follows.
Further, the method further comprises the following steps:
And when the zoom level is unchanged and the physical center point is changed, determining the absolute value of the increment of the changed physical center point from the calibration point before the change, and loading all the marks in the current display screen when the absolute value is larger than the first distance.
Further, the method further comprises the following steps:
When the zoom level changes and the physical center point does not change, respectively calculating a second distance between the physical center point and the calibration point when the physical center point does not change and a third distance between the physical center point and the calibration point after the physical center point changes, and loading all marks in the current display screen when the absolute value of the difference between the second distance and the third distance is larger than the first distance.
Further, the method further comprises the following steps:
when the electronic map in the display screen changes, judging whether the marks before and after the change are repeated, generating a judging result, and when the judging result is yes, eliminating repeated information.
Further, when the zoom level is changed to be enlarged, when the absolute value of the difference between the second distance and the third distance is greater than the first distance, the process of loading all the marks in the current display screen is as follows:
traversing all marks in the current screen, and arranging all marks according to the ascending order of the distance between the marks and the first actual position information to obtain an ascending order queue;
According to the ascending queue, first hidden marks which have collision relation with first display marks in the ascending queue are sequentially determined, the first display marks are associated with all the first hidden marks, the number of the first hidden marks is recorded, and all the first hidden marks are subjected to hiding treatment;
When a collision relationship does not exist between the second display marks in the ascending queue and the first display marks, determining second hidden marks with collision relationship between marks after the second display marks and the second display marks in sequence according to the ascending queue, associating the second display marks with all the second hidden marks, recording the number of the second hidden marks, and carrying out hiding treatment on all the second hidden marks until the association of all the marks in the ascending queue is completed;
and integrating all the display marks to obtain a display set, and displaying the display set in the current display screen.
The beneficial effects of the above-mentioned further scheme are:
The marks are not overlapped, so that a user can clearly identify the number of the marks at specific positions;
the map marking display data volume is reduced, the map display pressure is reduced, the map can run smoothly and is free from jamming, and the user experience is enhanced.
Further, when the zoom level is changed to be enlarged, when the absolute value of the difference between the second distance and the third distance is greater than the first distance, the process of loading all the marks in the current display screen is as follows:
When the hidden marks in the ascending queue have no collision relation with each display mark in the display set, changing the hidden marks into display marks, and sequentially judging the collision relation between each hidden mark in the ascending queue and each display mark in the display set until all hidden marks in the ascending queue are traversed, and displaying all marks changed from the hidden marks into the display marks in the current display screen.
2) In a second aspect, the present invention further provides a label loading system for an electronic map, and the specific technical scheme is as follows:
the determining module is used for: acquiring a physical center point of a display screen of an electronic map, determining first actual position information overlapped with the physical center point on the electronic map, and determining a first distance between the physical center point and a midpoint of any edge of the display screen;
The loading module is used for: and when the first distance is smaller than the scaling distance under the current scaling ratio between the actual position information and the actual position of the circle center of any mark on the electronic map, displaying any mark on the display screen until each mark on the electronic map is judged.
On the basis of the scheme, the invention can be improved as follows.
Further, the method further comprises the following steps:
The first judging module is used for: and when the zoom level is unchanged and the physical center point is changed, determining the absolute value of the increment of the changed physical center point from the calibration point before the change, and loading all the marks in the current display screen when the absolute value is larger than the first distance.
Further, the method further comprises the following steps:
The second judging module is used for: when the zoom level changes and the physical center point does not change, respectively calculating a second distance between the physical center point and the calibration point when the physical center point does not change and a third distance between the physical center point and the calibration point after the physical center point changes, and loading all marks in the current display screen when the absolute value of the difference between the second distance and the third distance is larger than the first distance.
Further, the method further comprises the following steps:
The third judging module is used for: when the electronic map in the display screen changes, judging whether the marks before and after the change are repeated, generating a judging result, and when the judging result is yes, eliminating repeated information.
Further, when the zoom level is changed to be enlarged, when the absolute value of the difference between the second distance and the third distance is greater than the first distance, the process of loading all the marks in the current display screen is as follows:
traversing all marks in the current screen, and arranging all marks according to the ascending order of the distance between the marks and the first actual position information to obtain an ascending order queue;
According to the ascending queue, first hidden marks which have collision relation with first display marks in the ascending queue are sequentially determined, the first display marks are associated with all the first hidden marks, the number of the first hidden marks is recorded, and all the first hidden marks are subjected to hiding treatment;
When a collision relationship does not exist between the second display marks in the ascending queue and the first display marks, determining second hidden marks with collision relationship between marks after the second display marks and the second display marks in sequence according to the ascending queue, associating the second display marks with all the second hidden marks, recording the number of the second hidden marks, and carrying out hiding treatment on all the second hidden marks until the association of all the marks in the ascending queue is completed;
and integrating all the display marks to obtain a display set, and displaying the display set in the current display screen.
Further, when the zoom level is changed to be enlarged, when the absolute value of the difference between the second distance and the third distance is greater than the first distance, the process of loading all the marks in the current display screen is as follows:
When the hidden marks in the ascending queue have no collision relation with each display mark in the display set, changing the hidden marks into display marks, and sequentially judging the collision relation between each hidden mark in the ascending queue and each display mark in the display set until all hidden marks in the ascending queue are traversed, and displaying all marks changed from the hidden marks into the display marks in the current display screen.
3) In a third aspect, the present invention also provides a computer device comprising a processor coupled to a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to cause the computer device to implement a method of tag loading of an electronic map as described above.
4) In a fourth aspect, the present invention also provides a computer-readable storage medium having stored therein at least one computer program loaded and executed by a processor to cause a computer to implement a tag loading method of an electronic map as described above.
It should be noted that, the technical solutions of the second aspect to the fourth aspect and the corresponding possible implementation manners of the present invention may refer to the technical effects of the first aspect and the corresponding possible implementation manners of the first aspect, which are not described herein.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings in which:
Fig. 1 is a flow chart of a label loading method of an electronic map according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a tag loading system of an electronic map according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a collision relationship calculation of a method for loading tags on an electronic map according to an embodiment of the present invention;
fig. 4 is a loading flow diagram of a label loading method of an electronic map according to an embodiment of the present invention;
fig. 5 is a computer device frame diagram of a method for loading a label of an electronic map according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, a method for loading a label of an electronic map according to an embodiment of the present invention includes the following steps:
S1, acquiring a physical center point of a display screen of an electronic map, determining first actual position information overlapped with the physical center point on the electronic map, and determining a first distance between the physical center point and a midpoint of any edge of the display screen;
And S2, when the first distance is smaller than the scaling distance under the current scaling ratio between the actual position information and the actual position of the circle center of any mark on the electronic map, displaying any mark on the display screen until judging each mark on the electronic map.
The mark loading method of the electronic map has the following beneficial effects:
The physical center point and the first actual position information are determined, so that the follow-up judgment can be made to have a basis, whether loading processing is needed or not is further determined through the distance between the physical center point and the midpoint of the edge of the display screen, loading efficiency can be improved through the scheme, and meanwhile occupation of a memory is reduced.
As shown in fig. 4, S1 further includes: the specific process for determining the circle center, the radius and the longitude and latitude of any mark on the electronic map comprises the following steps:
the electronic map comprises the following steps: (Electronic map), i.e., digital map, is a map stored and referred to digitally using computer technology.
The method for storing information in electronic map generally uses vector image storage, the map scale can be enlarged, reduced or rotated without affecting the display effect, the map scale can not be enlarged or reduced by using bitmap storage in early stage, and modern electronic map software generally uses geographic information system to store and transmit map data, and other information systems are also available.
The mark is a point on the map and is displayed on the map by a circular icon.
The center and radius of the mark are determined as follows: the circular icon is a square inscribed circle, the center coordinates are the intersection of 2 diagonals of the square, and the radius is half of the side length of the square.
The longitude and latitude are the longitude and latitude of the position where the circle center is located.
S1, acquiring a physical center point of a display screen of the electronic map, and determining first actual position information of the physical center point mapped in the electronic map of a current display interface, wherein the specific process comprises the following steps:
the display screen is a touchable screen for displaying the electronic map;
the display screens of different types or shapes have different center points, the center points are determined to be physical center points, and first actual position information is determined based on the positions of the points in the electronic map, wherein the position information comprises but is not limited to: longitude and latitude or coordinates.
S2, determining a first distance between the physical center point and the midpoint of the edge of the display screen, and when the distance between the circle center of the mark and the actual center point is scaled according to the current scaling level, loading is not carried out and repeating the steps S1-S2 until the loading of all marks in the current display screen is completed, wherein the process comprises the following steps:
s21, determining a connecting line distance between a physical center point and a midpoint of the edge of the display screen;
When the display screen is a regular square, the midpoint of the edge of the display screen is the midpoint of any one edge;
When the display screen is a regular rectangle, the midpoint of the edge of the display screen is the midpoint of the long side;
When the display screen is in an irregular graph, the midpoint of the edge of the display screen is the nearest point of the edge of the display screen from the physical center point.
S22, determining the size relation between the sliding increment and the connecting line distance in the sliding process of the electronic map;
The sliding increment determining method comprises the following steps:
1) First, if the zoom level of the electronic map is unchanged but the physical center point is changed, recalculating the position information of the second actual position information corresponding to the physical center point, and when the physical center point is not changed, obtaining a first standard distance between the first actual position information and the standard point, recalculating a second standard distance between the second actual position information and the standard point, and determining a sliding increment through the first standard distance and the second standard distance;
2) Second, if the zoom level of the electronic map is unchanged but the physical center point is changed, recalculating the position information of the second actual position information corresponding to the physical center point, and determining a sliding increment through the position information of the first actual position information and the position information of the second actual position information;
3) Thirdly, if the zoom level of the electronic map is unchanged but the physical center point is changed, determining a fixed point on the display screen, when the physical center point is unchanged, calculating the position information of the fixed point mapped to the third actual position information in the electronic map of the current display interface, after the physical center point is changed, re-determining the position information of the fixed point mapped to the fourth actual position information in the electronic map of the current display interface, and determining a sliding increment based on the position information of the third actual position information and the position information of the fourth actual position information;
4) Fourth, if the zoom level of the electronic map is changed but the physical center point is not changed, calculating a third standard distance between the physical center point and the third actual position information when the zoom level is not changed, and after the zoom level is changed, recalculating a fourth standard distance between the physical center point and the fifth actual position information of the electronic map of the current display interface, wherein the fixed point is mapped on the fifth actual position information, and determining a sliding increment according to the third standard distance and the fourth standard distance.
S23, when the sliding increment exceeds the connecting line distance, loading the marking data.
When the sliding increment does not exceed the connecting line distance, determining all the unloaded mark data added in the display screen range corresponding to the sliding increment, carrying out hidden loading on the data, namely, carrying out temporary storage in a memory, wherein the only difference between the hidden loading and the loading mark data is that the hidden loading is not displayed in the display screen, and when the sliding increment exceeds the connecting line distance, directly calling the data in the memory to display, thereby increasing the processing efficiency.
The method for loading the marking data is divided into the following steps:
1) First, the tag data loaded each time is de-duplicated with the last loaded data according to the unique ID number.
And traversing all the marked data along with the enlargement of the scale, and sorting from near to far according to the distance from the first actual position information.
And taking the mark A1 closest to the first actual position information center point, changing the states of other marks collided with A1 into hidden marks, recording the collision relation between the hidden marks and A1, and recording the number of the marks collided with A1.
And (3) finding out the mark A2 which has no collision relation with the A1 and is closest to the center point, and repeatedly executing the steps on the mark A2 until all the marks which have no collision relation are obtained.
All the markers that are not hidden are put into the set C (c= { a 1..an }) and displayed on the map, the aggregation of the markers is completed.
2) Second, as the scale is reduced, all the marks closest to the center point and marked as hidden are traversed, and displayed in the map when none of the marks in C collide, this operation is repeated until all the marks that do not collide with the aggregation element are displayed.
The collision relation is determined in the following manner:
As shown in fig. 3, let s=o 1O2 be the length of the segment S < (R 1+R2) that the collision occurs;
The calculation formula of S is as follows:
R 1 and R 2 are the radii of the two marks, (O 1x,O1y) is the center of the mark corresponding to the radius R 1, and (O 2x,O2y) is the center of the mark corresponding to the radius R 2.
Further, the method further comprises the following steps:
And when the zoom level is unchanged and the physical center point is changed, determining the absolute value of the increment of the changed physical center point from the calibration point before the change, and loading all the marks in the current display screen when the absolute value is larger than the first distance.
Further, the method further comprises the following steps:
When the zoom level changes and the physical center point does not change, respectively calculating a second distance between the physical center point and the calibration point when the physical center point does not change and a third distance between the physical center point and the calibration point after the physical center point changes, and loading all marks in the current display screen when the absolute value of the difference between the second distance and the third distance is larger than the first distance.
Further, the method further comprises the following steps:
when the electronic map in the display screen changes, judging whether the marks before and after the change are repeated, generating a judging result, and when the judging result is yes, eliminating repeated information.
Further, when the zoom level is changed to be enlarged, when the absolute value of the difference between the second distance and the third distance is greater than the first distance, the process of loading all the marks in the current display screen is as follows:
traversing all marks in the current screen, and arranging all marks according to the ascending order of the distance between the marks and the first actual position information to obtain an ascending order queue;
According to the ascending queue, first hidden marks which have collision relation with first display marks in the ascending queue are sequentially determined, the first display marks are associated with all the first hidden marks, the number of the first hidden marks is recorded, and all the first hidden marks are subjected to hiding treatment;
When a collision relationship does not exist between the second display marks in the ascending queue and the first display marks, determining second hidden marks with collision relationship between marks after the second display marks and the second display marks in sequence according to the ascending queue, associating the second display marks with all the second hidden marks, recording the number of the second hidden marks, and carrying out hiding treatment on all the second hidden marks until the association of all the marks in the ascending queue is completed;
and integrating all the display marks to obtain a display set, and displaying the display set in the current display screen.
The beneficial effects of the above-mentioned further scheme are:
The marks are not overlapped, so that a user can clearly identify the number of the marks at specific positions;
the map marking display data volume is reduced, the map display pressure is reduced, the map can run smoothly and is free from jamming, and the user experience is enhanced.
Further, when the zoom level is changed to be enlarged, when the absolute value of the difference between the second distance and the third distance is greater than the first distance, the process of loading all the marks in the current display screen is as follows:
When the hidden marks in the ascending queue have no collision relation with each display mark in the display set, changing the hidden marks into display marks, and sequentially judging the collision relation between each hidden mark in the ascending queue and each display mark in the display set until all hidden marks in the ascending queue are traversed, and displaying all marks changed from the hidden marks into the display marks in the current display screen.
As shown in fig. 2, the invention further provides a label loading system of an electronic map, which has the following specific technical scheme:
The determining module 100 is configured to: acquiring a physical center point of a display screen of an electronic map, determining first actual position information overlapped with the physical center point on the electronic map, and determining a first distance between the physical center point and a midpoint of any edge of the display screen;
The loading module 200 is used for: and when the first distance is smaller than the scaling distance under the current scaling ratio between the actual position information and the actual position of the circle center of any mark on the electronic map, displaying any mark on the display screen until each mark on the electronic map is judged.
On the basis of the scheme, the invention can be improved as follows.
Further, the method further comprises the following steps:
The first judging module is used for: and when the zoom level is unchanged and the physical center point is changed, determining the absolute value of the increment of the changed physical center point from the calibration point before the change, and loading all the marks in the current display screen when the absolute value is larger than the first distance.
Further, the method further comprises the following steps:
The second judging module is used for: when the zoom level changes and the physical center point does not change, respectively calculating a second distance between the physical center point and the calibration point when the physical center point does not change and a third distance between the physical center point and the calibration point after the physical center point changes, and loading all marks in the current display screen when the absolute value of the difference between the second distance and the third distance is larger than the first distance.
Further, the method further comprises the following steps:
The third judging module is used for: when the electronic map in the display screen changes, judging whether the marks before and after the change are repeated, generating a judging result, and when the judging result is yes, eliminating repeated information.
Further, when the zoom level is changed to be enlarged, when the absolute value of the difference between the second distance and the third distance is greater than the first distance, the process of loading all the marks in the current display screen is as follows:
traversing all marks in the current screen, and arranging all marks according to the ascending order of the distance between the marks and the first actual position information to obtain an ascending order queue;
According to the ascending queue, first hidden marks which have collision relation with first display marks in the ascending queue are sequentially determined, the first display marks are associated with all the first hidden marks, the number of the first hidden marks is recorded, and all the first hidden marks are subjected to hiding treatment;
When a collision relationship does not exist between the second display marks in the ascending queue and the first display marks, determining second hidden marks with collision relationship between marks after the second display marks and the second display marks in sequence according to the ascending queue, associating the second display marks with all the second hidden marks, recording the number of the second hidden marks, and carrying out hiding treatment on all the second hidden marks until the association of all the marks in the ascending queue is completed;
and integrating all the display marks to obtain a display set, and displaying the display set in the current display screen.
Further, when the zoom level is changed to be enlarged, when the absolute value of the difference between the second distance and the third distance is greater than the first distance, the process of loading all the marks in the current display screen is as follows:
When the hidden marks in the ascending queue have no collision relation with each display mark in the display set, changing the hidden marks into display marks, and sequentially judging the collision relation between each hidden mark in the ascending queue and each display mark in the display set until all hidden marks in the ascending queue are traversed, and displaying all marks changed from the hidden marks into the display marks in the current display screen.
In the above embodiments, although steps S1, S2, etc. are numbered, only specific embodiments of the present invention are given, and those skilled in the art may adjust the execution sequence of S1, S2, etc. according to the actual situation, which is also within the scope of the present invention, and it is understood that some embodiments may include some or all of the above embodiments.
It should be noted that, the beneficial effects of the tag loading system of the electronic map provided in the above embodiment are the same as those of the tag loading method of the electronic map, and are not described herein again. In addition, when the system provided in the above embodiment implements the functions thereof, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be implemented by different functional modules according to needs, that is, the system is divided into different functional modules according to practical situations, so as to implement all or part of the functions described above. In addition, the system and method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
As shown in fig. 5, in a computer device 300 according to an embodiment of the present invention, the computer device 300 includes a processor 320, the processor 320 is coupled to a memory 310, at least one computer program 330 is stored in the memory 310, and the at least one computer program 330 is loaded and executed by the processor 320, so that the computer device 300 implements a method for loading a label of an electronic map according to any one of the above embodiments, specifically:
The computer device 300 may include one or more processors 320 (Central Processing Units, CPU) and one or more memories 310, where the one or more memories 310 store at least one computer program 330, and the at least one computer program 330 is loaded and executed by the one or more processors 320, so that the computer device 300 implements a method for loading a label of an electronic map provided in the above embodiment. Of course, the computer device 300 may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
A computer-readable storage medium according to an embodiment of the present invention stores at least one computer program therein, and the at least one computer program is loaded and executed by a processor, so that the computer implements a label loading method of an electronic map according to any one of the preceding claims.
Alternatively, the computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a compact disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform any of the above-described tag loading methods of the electronic map.
It should be noted that the terms "first," "second," and the like in the description and in the claims are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. The order of use of similar objects may be interchanged where appropriate such that embodiments of the application described herein may be implemented in other sequences than those illustrated or otherwise described.
Those skilled in the art will appreciate that the present invention may be embodied as a system, method or computer program product, and that the disclosure may therefore be embodied in the form of: either entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or entirely software, or a combination of hardware and software, referred to herein generally as a "circuit," module "or" system. Furthermore, in some embodiments, the invention may also be embodied in the form of a computer program product in one or more computer-readable media, which contain computer-readable program code.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (5)

1. The method for loading the mark of the electronic map is characterized by comprising the following steps of:
S1, acquiring a physical center point of a display screen of an electronic map, determining first actual position information overlapped with the physical center point on the electronic map, and determining a first distance between the physical center point and a midpoint of any edge of the display screen;
S2, when the first distance is smaller than the zoom distance between the first actual position information and the actual position of the circle center of any mark on the electronic map at the current zoom level, displaying any mark on the display screen until judging each mark on the electronic map;
determining a connecting line distance between a physical center point and a midpoint of the edge of the display screen;
When the display screen is a regular square, the midpoint of the edge of the display screen is the midpoint of any one edge;
When the display screen is a regular rectangle, the midpoint of the edge of the display screen is the midpoint of the long side;
when the display screen is an irregular graph, the midpoint of the edge of the display screen is the nearest point of the edge of the display screen from the physical center point;
Further comprises:
when the zoom level is unchanged and the physical center point is changed, determining the absolute value of the increment of the changed physical center point from the calibration point before the change, and loading all the marks in the current display screen when the absolute value is larger than the first distance;
Further comprises:
When the electronic map in the display screen changes, judging whether the marks before and after the change are repeated, generating a judging result, and when the judging result is yes, eliminating repeated information;
Further comprises:
when the zoom level is changed and the physical center point is unchanged, respectively calculating a second distance between the physical center point and a calibration point and a third distance between the physical center point and the calibration point after the physical center point is changed, and loading all marks in a current display screen when the absolute value of the difference between the second distance and the third distance is larger than the first distance;
when the zoom level is changed to be enlarged, and when the absolute value of the difference between the second distance and the third distance is larger than the first distance, loading all marks in the current display screen comprises the following steps:
traversing all marks in the current screen, and arranging all marks according to the ascending order of the distance between the marks and the first actual position information to obtain an ascending order queue;
According to the ascending queue, first hidden marks which have collision relation with first display marks in the ascending queue are sequentially determined, the first display marks are associated with all the first hidden marks, the number of the first hidden marks is recorded, and all the first hidden marks are subjected to hiding treatment;
When a collision relationship does not exist between the second display marks in the ascending queue and the first display marks, determining second hidden marks with collision relationship between marks after the second display marks and the second display marks in sequence according to the ascending queue, associating the second display marks with all the second hidden marks, recording the number of the second hidden marks, and carrying out hiding treatment on all the second hidden marks until the association of all the marks in the ascending queue is completed;
and integrating all the display marks to obtain a display set, and displaying the display set in the current display screen.
2. The method for loading marks of an electronic map according to claim 1, wherein when the zoom level is changed to be enlarged, and when an absolute value of a difference between the second distance and the third distance is greater than the first distance, a process of loading all marks in a current display screen is as follows:
When the hidden marks in the ascending queue have no collision relation with each display mark in the display set, changing the hidden marks into display marks, and sequentially judging the collision relation between each hidden mark in the ascending queue and each display mark in the display set until all hidden marks in the ascending queue are traversed, and displaying all marks changed from the hidden marks into the display marks in the current display screen.
3. A tag loading system for an electronic map, comprising:
the determining module is used for: acquiring a physical center point of a display screen of an electronic map, determining first actual position information overlapped with the physical center point on the electronic map, and determining a first distance between the physical center point and a midpoint of any edge of the display screen;
The loading module is used for: when the first distance is smaller than the zoom distance under the current zoom level between the first actual position information and the actual position of the circle center of any mark on the electronic map, displaying any mark on the display screen until each mark on the electronic map is judged;
determining a connecting line distance between a physical center point and a midpoint of the edge of the display screen;
When the display screen is a regular square, the midpoint of the edge of the display screen is the midpoint of any one edge;
When the display screen is a regular rectangle, the midpoint of the edge of the display screen is the midpoint of the long side;
when the display screen is an irregular graph, the midpoint of the edge of the display screen is the nearest point of the edge of the display screen from the physical center point;
Further comprises:
The first judging module is used for: when the zoom level is unchanged and the physical center point is changed, determining the absolute value of the increment of the changed physical center point from the calibration point before the change, and loading all the marks in the current display screen when the absolute value is larger than the first distance;
Further comprises:
the second judging module is used for: when the electronic map in the display screen changes, judging whether the marks before and after the change are repeated, generating a judging result, and when the judging result is yes, eliminating repeated information;
The second judging module is further configured to: when the zoom level is changed and the physical center point is unchanged, respectively calculating a second distance between the physical center point and a calibration point and a third distance between the physical center point and the calibration point after the physical center point is changed, and loading all marks in a current display screen when the absolute value of the difference between the second distance and the third distance is larger than the first distance;
when the zoom level is changed to be enlarged, and when the absolute value of the difference between the second distance and the third distance is larger than the first distance, loading all marks in the current display screen comprises the following steps:
traversing all marks in the current screen, and arranging all marks according to the ascending order of the distance between the marks and the first actual position information to obtain an ascending order queue;
According to the ascending queue, first hidden marks which have collision relation with first display marks in the ascending queue are sequentially determined, the first display marks are associated with all the first hidden marks, the number of the first hidden marks is recorded, and all the first hidden marks are subjected to hiding treatment;
When a collision relationship does not exist between the second display marks in the ascending queue and the first display marks, determining second hidden marks with collision relationship between marks after the second display marks and the second display marks in sequence according to the ascending queue, associating the second display marks with all the second hidden marks, recording the number of the second hidden marks, and carrying out hiding treatment on all the second hidden marks until the association of all the marks in the ascending queue is completed;
and integrating all the display marks to obtain a display set, and displaying the display set in the current display screen.
4. A computer device, characterized in that it comprises a processor coupled to a memory, in which at least one computer program is stored, which is loaded and executed by the processor, so that the computer device implements a method for marking an electronic map according to claim 1 or 2.
5. A computer readable storage medium, wherein at least one computer program is stored in the computer readable storage medium, and the at least one computer program is loaded and executed by a processor, so that the computer implements a method for loading a label of an electronic map according to claim 1 or 2.
CN202311156253.3A 2023-09-08 2023-09-08 Method, system, equipment and medium for loading marks of electronic map Active CN117171277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311156253.3A CN117171277B (en) 2023-09-08 2023-09-08 Method, system, equipment and medium for loading marks of electronic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311156253.3A CN117171277B (en) 2023-09-08 2023-09-08 Method, system, equipment and medium for loading marks of electronic map

Publications (2)

Publication Number Publication Date
CN117171277A CN117171277A (en) 2023-12-05
CN117171277B true CN117171277B (en) 2024-04-30

Family

ID=88931459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311156253.3A Active CN117171277B (en) 2023-09-08 2023-09-08 Method, system, equipment and medium for loading marks of electronic map

Country Status (1)

Country Link
CN (1) CN117171277B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100864083B1 (en) * 2007-07-06 2008-10-16 (주)현대유비스 Apparatus and a method for displaying an overlay screen for a navigation apparatus
CN106289298A (en) * 2015-05-21 2017-01-04 比亚迪股份有限公司 The display packing of point of interest and device, onboard navigation system
CN110555088A (en) * 2019-08-30 2019-12-10 高新兴科技集团股份有限公司 Electronic map label aggregation method
CN110853488A (en) * 2019-10-28 2020-02-28 广州码石信息科技有限公司 POI (Point of interest) label display method, device and equipment
CN116363082A (en) * 2023-03-10 2023-06-30 阿里巴巴(中国)有限公司 Collision detection method, device, equipment and program product for map elements

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100864083B1 (en) * 2007-07-06 2008-10-16 (주)현대유비스 Apparatus and a method for displaying an overlay screen for a navigation apparatus
CN106289298A (en) * 2015-05-21 2017-01-04 比亚迪股份有限公司 The display packing of point of interest and device, onboard navigation system
CN110555088A (en) * 2019-08-30 2019-12-10 高新兴科技集团股份有限公司 Electronic map label aggregation method
CN110853488A (en) * 2019-10-28 2020-02-28 广州码石信息科技有限公司 POI (Point of interest) label display method, device and equipment
CN116363082A (en) * 2023-03-10 2023-06-30 阿里巴巴(中国)有限公司 Collision detection method, device, equipment and program product for map elements

Also Published As

Publication number Publication date
CN117171277A (en) 2023-12-05

Similar Documents

Publication Publication Date Title
CN109871909B (en) Image recognition method and device
CN108230357B (en) Key point detection method and device, storage medium and electronic equipment
CN109543909B (en) Method and device for predicting number of vehicle cases and computer equipment
CN108875531B (en) Face detection method, device and system and computer storage medium
EP4130961A1 (en) Shape selection method and apparatus, electronic device, storage medium and computer program
EP3358484A1 (en) Data presenting method and device, terminal, and storage medium
CN109165657A (en) A kind of image feature detection method and device based on improvement SIFT
CN110796130A (en) Method, device and computer storage medium for character recognition
CN112083870B (en) Information identification method and equipment
CN110865785B (en) Pixel size acquisition method and device and electronic equipment
CN109829383B (en) Palmprint recognition method, palmprint recognition device and computer equipment
CN117171277B (en) Method, system, equipment and medium for loading marks of electronic map
WO2024139756A1 (en) Method and apparatus for interpolation of feature map, device, and storage medium
CN113516697A (en) Image registration method and device, electronic equipment and computer-readable storage medium
CN117252837A (en) Data processing method and device for wafer test, medium and electronic equipment
US20110119256A1 (en) Information processing apparatus, control method therefor, and computer-readable storage medium
CN116152816A (en) Method and device for identifying closed area, electronic equipment and storage medium
CN115393616A (en) Target tracking method, device, equipment and storage medium
CN111753625B (en) Pedestrian detection method, device, equipment and medium
CN114821034A (en) Training method and device of target detection model, electronic equipment and medium
CN113743704A (en) Event monitoring method and device, computer equipment and storage medium
CN115393838A (en) Pointer instrument reading identification method and device, electronic equipment and storage medium
CN111599080B (en) Spliced paper money detection method and device, financial machine tool equipment and storage medium
CN115035129A (en) Goods identification method and device, electronic equipment and storage medium
CN111429399A (en) Straight line detection method and device

Legal Events

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