CN110866071B - Map object display method, device, equipment and storage medium - Google Patents

Map object display method, device, equipment and storage medium Download PDF

Info

Publication number
CN110866071B
CN110866071B CN201810921833.XA CN201810921833A CN110866071B CN 110866071 B CN110866071 B CN 110866071B CN 201810921833 A CN201810921833 A CN 201810921833A CN 110866071 B CN110866071 B CN 110866071B
Authority
CN
China
Prior art keywords
target
display
value
map
area
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
CN201810921833.XA
Other languages
Chinese (zh)
Other versions
CN110866071A (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.)
Hytera Communications Corp Ltd
Original Assignee
Hytera Communications Corp 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 Hytera Communications Corp Ltd filed Critical Hytera Communications Corp Ltd
Priority to CN201810921833.XA priority Critical patent/CN110866071B/en
Publication of CN110866071A publication Critical patent/CN110866071A/en
Application granted granted Critical
Publication of CN110866071B publication Critical patent/CN110866071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application provides a map object display method, a map object display device, map object display equipment and a map object storage medium, wherein the method comprises the following steps: determining a target display reference value of the map object according to the area of the first target area in the map and the number of the map objects in the most dense area in the map; determining a display value of the target map object in the second target area as a target display value based on the target display reference value, the number of map objects in the most dense area and the number of target map objects in the second target area, wherein the second target area is the same as or different from the first target area, and the target display value is used for representing the display size of the target map object in the second target area; and displaying the target map object in the second target area according to the target display value. The problem that the map objects in the map can be better improved to cover each other when being displayed is solved, so that a user can visually and comprehensively see the distribution condition of the map objects, and the objects are conveniently arranged in a lump.

Description

Map object display method, device, equipment and storage medium
Technical Field
The present invention relates to the field of map display technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a map object.
Background
At present, for the display of a map, when the scale is large and there are many map objects, the map objects displayed on the map are mutually overlapped when the scale is large and there are many related objects, so that a user cannot comprehensively know the distribution of the map objects.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a device and a storage medium for displaying map objects in a map, so as to solve the problem that in the prior art, when map objects in a map are displayed, the map objects are mutually covered, so that a user cannot comprehensively know the distribution condition of the map objects, and the technical scheme is as follows:
a display method of a map object includes:
determining a target display reference value of a map object according to the area of a first target area in the map and the number of the map objects in the most dense area in the map;
determining a display value of a target map object in a second target area as a target display value based on the target display reference value, the number of map objects in the most dense area and the number of target map objects in the second target area, wherein the second target area is the same as or different from the first target area, and the target display value is used for representing the display size of the target map object in the second target area;
and displaying the target map object in the second target area according to the target display value.
Wherein the determining a target display reference value of a map object by an area of a first target region in a map and a number of map objects in a most dense region in the map includes:
calculating a display reference value of the map object as a display reference calculation value according to the area of the first target area in the map and the number of the map objects in the most dense area in the map;
if the display reference calculation value is smaller than a preset minimum display value, determining the preset minimum display value as the target display reference value;
if the display reference calculation value is larger than a preset maximum display value, determining the preset maximum display value as the target display reference value;
and if the calculated value of the display reference is greater than or equal to the preset minimum display value and is less than or equal to the preset maximum display value, determining the calculated value of the display reference as the target display reference value.
Wherein the determining, based on the target display reference value, the number of map objects in the most dense area, and the number of target map objects in a second target area, a display value of a target map object in the second target area as a target display value includes:
calculating a display value of a target map object in a second target area as a target display calculation value through the target display reference value, the number of map objects in the most dense area, and the number of target map objects in the second target area;
if the target display calculation value is larger than a preset maximum display value, taking the preset maximum display value as the target display value;
if the target display calculation value is smaller than the target display reference value, taking the target display reference value as the target display value;
and if the target display calculation value is greater than or equal to the target display reference value and is less than or equal to the preset maximum display value, taking the target display calculation value as the target display value.
Preferably, the method for displaying a map object further includes:
detecting whether a target display area in which a plurality of target map objects are simultaneously displayed exists in the second target area;
and if the target display area exists in the second target area, rotating one or more of the plurality of target map objects displayed simultaneously in the target display area so as to prevent the plurality of target map objects from being mutually overlapped.
Preferably, the method for displaying a map object further includes: uniformly dividing a display area of the map into grids in advance, wherein the size of each grid is matched with a preset minimum display value of a map object;
the detecting whether a target display area in which a plurality of target map objects are simultaneously displayed exists in the second target area includes:
detecting whether a grid with a plurality of target map objects displayed simultaneously exists;
and if the grid with the plurality of target map objects is displayed at the same time, determining the grid with the plurality of target map objects as the target display area.
A display device of a map object, comprising: the device comprises a display reference value determining module, a display value determining module and a display module;
the display reference value determining module is used for determining a target display reference value of the map object according to the area of a first target area in the map and the number of the map objects in the most dense area in the map;
the display value determining module is configured to determine, based on the target display reference value, the number of map objects in the most dense area, and the number of target map objects in a second target area, a display value of a target map object in the second target area as a target display value, where the second target area is the same as or different from the first target area, and the target display value is used to represent a display size of the target map object in the second target area;
and the display module is used for displaying the target map object in the second target area according to the target display value.
Wherein the display reference value determining module includes: a calculation submodule and a determination submodule;
the calculation submodule is used for calculating a display reference value of the map object according to the area of the first target area in the map and the number of the map objects in the most dense area in the map, and the display reference value is used as a display reference calculation value;
the determining submodule is used for determining the preset minimum display value as the target display reference value when the display reference calculation value is smaller than the preset minimum display value; when the display reference calculation value is larger than a preset maximum display value, determining the preset maximum display value as the target display reference value; and when the calculated value of the display reference is greater than or equal to the preset minimum display value and is less than or equal to the preset maximum display value, determining the calculated value of the display reference as the target display reference value.
Wherein the display value determination module includes: a calculation submodule and a determination submodule;
the calculation submodule is used for calculating the display value of the target map object in the second target area as a target display calculation value through the target display reference value, the number of the map objects in the most dense area and the number of the target map objects in the second target area;
the determining submodule is used for taking the preset maximum display value as the target display value when the target display calculation value is larger than the preset maximum display value; when the target display calculation value is smaller than the target display reference value, taking the target display reference value as the target display value; and when the target display calculated value is greater than or equal to the target display reference value and is less than or equal to the preset maximum display value, taking the target display calculated value as the target display value.
Preferably, the display device of the map object further includes: the device comprises a detection module and a rotation module;
the detection module is used for detecting whether a target display area in which a plurality of target map objects are simultaneously displayed exists in the second target area;
the rotation module is configured to, when the target display area exists in the second target area, rotate one or more of the plurality of target map objects displayed simultaneously in the target display area so that the plurality of target map objects do not overlap with each other.
Preferably, the display device of the map object further includes: a display dividing module;
the display dividing module is used for uniformly dividing the display area of the map into grids in advance, and the size of each grid is matched with the preset minimum display value of the map object;
the detection module is specifically configured to detect whether a grid in which multiple target map objects are simultaneously displayed exists, and if the grid in which multiple target map objects are simultaneously displayed exists, determine that the grid in which multiple target map objects are simultaneously displayed is the target display area.
A data processing apparatus comprising: a memory and a processor;
the memory is used for storing programs;
the processor is configured to execute the program, and the program is specifically configured to:
determining a target display reference value of a map object according to the area of a first target area in the map and the number of the map objects in the most dense area in the map;
determining a display value of a target map object in a second target area as a target display value based on the target display reference value, the number of map objects in the most dense area and the number of target map objects in the second target area, wherein the second target area is the same as or different from the first target area, and the target display value is used for representing the display size of the target map object in the second target area;
and displaying the target map object in the second target area according to the target display value.
A readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of displaying the map object.
The technical scheme has the following beneficial effects:
the invention provides a method, a device, equipment and a storage medium for displaying map objects in a map, which are characterized in that firstly, a target display reference value of the map objects is determined according to the area of a first target area in the map and the number of the map objects in the most dense area in the map, then, a display value of the map objects in a second target area is determined as a target display value according to the target display reference value, the number of the map objects in the most dense area and the number of the map objects in the second target area, and finally, the map objects in the second target area are displayed based on the target display value.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flow chart illustrating a method for displaying a map object according to an embodiment of the present invention;
fig. 2 is an effect diagram of a display method of a map object according to an embodiment of the present invention;
fig. 3 is another schematic flow chart illustrating a method for displaying a map object according to an embodiment of the present invention;
fig. 4 is an effect diagram of a display method of a map object according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a display device for map objects according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data processing device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for displaying a map object, please refer to fig. 1, which shows a flow diagram of the method, and may include:
step S101: the target display reference value of the map object is determined by the area of the first target area in the map and the number of map objects in the most dense area in the map.
Wherein the first target area may be, but is not limited to, an area manually selected by a user. It should be noted that, ideally, the first target area is an area where the map objects are most densely distributed. This step is to ensure that the map objects in the most dense areas can be displayed on the map without overlapping each other by determining the target display reference value, and it can be understood that if the map objects in the most dense areas can be displayed on the map without overlapping each other, the map objects in the non-most dense areas can be displayed on the map without overlapping each other.
In one possible implementation, determining a target display reference value of a map object by an area of a first target region in a map and a number of map objects in a most dense region in the map includes:
(1) and calculating a display reference value of the map object as a display reference calculation value by the area of the first target area in the map and the number of the map objects in the most dense area in the map.
Specifically, at the current scale, the area S1 of the first target area in the map is divided by the number N1 of map objects in the most dense area to obtain a display reference calculation value S', that is:
S′=S1/N1 (1)
(2a) and if the display reference calculation value is smaller than the preset minimum display value, determining the preset minimum display value as a target display reference value.
The preset minimum display value may be a minimum value of a display area of the map object.
Assuming that the target display reference value is S and the preset minimum display value is S _ MIN, if S' < S _ MIN, S is equal to S _ MIN.
(2b) If the display reference calculation value is larger than the preset maximum display value, determining the preset maximum display value as a target display reference value;
the preset maximum display value may be a maximum value of a display area of the map object.
Assuming that the target display reference value is S and the preset maximum display value is S _ MAX, if S' > S _ MAX, S is S _ MAX.
(2c) And if the display reference calculation value is greater than or equal to the preset minimum display value and is less than or equal to the preset maximum display value, determining the display reference calculation value as a target display reference value.
That is, if S _ MIN < ═ S '< ═ S _ MAX, S is S'.
Step S102: determining a display value of the target map object in the second target area as a target display value based on the target display reference value, the number of map objects in the most dense area, and the number of target map objects in the second target area.
The second target area is the same as or different from the first target area, and may be any display area in the map, and the target display value is used to represent the display size of the target map object in the second target area. The target map objects in the second target area may be map objects of the same attribute.
In one possible implementation, the process of determining a display value of a map object in the second target area as the target display value according to the target display reference value, the number of map objects in the most dense area, and the number of target map objects in the second target area may include:
(1) the display value of the target map object in the second target area is calculated as a target display calculation value by the target display reference value, the number of map objects in the most dense area, and the number of target map objects in the second target area.
Specifically, the display value of the target map object in the second target area may be calculated as the target display calculation value S _ V' by the target display reference value S, the number N1 of map objects in the most dense area, and the number N2 of target map objects in the second target area, using the following formula:
S_V′=S*(N1/N2) (2)
(2a) and when the target display calculation value is larger than the preset maximum display value, determining the preset maximum display value as the target display value.
That is, if S _ V' > S _ MAX, target display value S _ V is equal to S _ MAX.
(2b) And when the target display calculation value is smaller than the target display reference value, determining the target display reference value as the target display value.
That is, if S _ V' < S, target display value S _ V becomes S.
(2c) And when the target display calculation value is greater than or equal to the target display reference value and is less than or equal to the preset maximum display value, determining the target display calculation value as the target display value.
That is, when S < ═ S _ V '< ═ S _ MAX, target display value S _ V is S _ V'.
Step S103: and displaying the target map object in the second target area according to the target display value.
The above process makes the displayed target map objects smaller when the density of the target map objects in the second display area is higher, whereas the displayed target map objects are smaller when the density of the target map objects in the second display area is lower, that is, when the density of the target map objects changes, the display size of the target map objects changes accordingly. Referring to fig. 2, an effect diagram of the method provided by the embodiment of the present invention is shown, where a plurality of interphone icons carried by security personnel are densely distributed on a map, and when the icon density changes, the size of the icon changes, in an actual scene, patrol of the security personnel is dynamic, and the position of each icon changes constantly, and the embodiment of the present invention can dynamically change the size of the icon according to the density change.
The map object display method provided by the embodiment of the invention determines a target display reference value of a map object according to the area of a first target area in a map and the number of map objects in the most dense area in the map, then determines a display value of the target map object in a second target area as a target display value according to the target display reference value, the number of map objects in the most dense area and the number of target map objects in the second target area, and finally displays the target map object in the second target area based on the target display value. The map object display method provided by the embodiment of the invention can better solve the problem of mutual coverage when the map objects in the map are displayed, so that a user can visually and comprehensively see the distribution density of the map objects, thereby facilitating the overall arrangement of the objects.
In view of the above, the present invention provides another method for displaying a map object, and please refer to fig. 2, which shows a flowchart of a method for displaying a map object, where the method may include:
step S301: the target display reference value of the map object is determined by the area of the first target region in the map and the number of map objects in the most dense region in the map.
Step S302: the display value of the target map object in the second target region is determined as the target display value based on the target display reference value, the number of map objects in the most dense region, and the number of target map objects in the second target region.
The second target area is the same as or different from the first target area, and the target display value is used for representing the display size of the map object in the second target area.
Step S303: and displaying the target map object in the second target area according to the target display value.
It should be noted that the specific implementation process of steps S301 to S303 is the same as the specific implementation process of steps S101 to S103 in the foregoing embodiment, and the specific implementation process of the steps may refer to the foregoing embodiment, which is not described herein again.
Step S304: whether a target display area in which a plurality of target map objects are simultaneously displayed exists in the second target area is detected.
In a possible implementation manner, the display area of the map may be uniformly divided into grids in advance, and the size of the grids is matched with the preset minimum display value, when the target display area is determined, whether a grid in which a plurality of target map objects are simultaneously displayed exists may be detected, and if a grid in which a plurality of target map objects are simultaneously displayed exists, the grid in which a plurality of target map objects are simultaneously displayed is determined as the target display area. It should be noted that, if multiple map objects are located in the same grid, it indicates that the GPS positions reported by the devices corresponding to the multiple map objects fall in the same grid.
Step S305: if the second target area has a target display area, rotating one or more of the plurality of target map objects displayed simultaneously in the target display area so that the plurality of target map objects do not overlap with each other.
It can be understood that when the GPS positions reported by the devices corresponding to the map objects fall on the same grid, the map objects in the grid overlap with each other, and at this time, in order to enable the user to visually see the distribution of the map objects, the map objects that overlap with each other need to be made non-overlapping.
In one possible implementation, the process of rotating one or more of the plurality of target map objects simultaneously displayed at the target display area may include: determining a rotation angle based on the number of target map objects displayed in the target display area; one or more of the plurality of target map objects are rotated according to the rotation angle.
Further, the rotation angle P may be determined by the number of target map objects displayed in the target display area N3 using the following equation:
P=2*π/(N3+Z)
wherein pi is a circumferential rate, and Z is a set complementary coefficient which is an integer.
When the map objects are rotated, all the map objects may be rotated based on the specified rotation angle P, or some of the map objects may be rotated, for example, three map objects are displayed simultaneously on a certain mesh, and the three map objects overlap with each other, and when the three map objects are rotated, the three map objects may be rotated simultaneously, for example, the calculated rotation angle P is 30 degrees, and the three map objects may be rotated by 30 degrees, 60 degrees, and 90 degrees, respectively, with reference to the positions of the three map objects, or one of the map objects may be fixed, and the other two map objects may be rotated, for example, by 60 degrees, and the other two map objects may be rotated by 60 degrees and 120 degrees, respectively, with reference to the fixed map object. The specific rotation manner is not limited in this embodiment, and no matter how the rotation is performed, it is sufficient that the plurality of map objects are not overlapped with each other after the rotation. Referring to fig. 4, the lower left corner of fig. 3 shows the effect diagram of three overlapped map objects after rotation.
The method for displaying a map object according to an embodiment of the present invention includes determining a target display reference value of a map object according to an area of a first target area in a map and a number of map objects in a most dense area in the map, determining a display value of a target map object in a second target area as a target display value according to the target display reference value, the number of map objects in the most dense area, and the number of target map objects in the second target area, and finally displaying the target map object in the second target area based on the target display value, which can better solve a problem of overlapping of the map objects when displaying the map object in the map, and in view of a situation that a certain target display area may display a plurality of target map objects simultaneously, the embodiment further rotates one or more of the plurality of target map objects simultaneously displayed in the target display area, the plurality of mutually overlapped map objects are not mutually overlapped, so that a user can visually and comprehensively see the distribution density of the map objects, and the objects are conveniently arranged in a lump.
Corresponding to the above method for displaying a map object, an embodiment of the present invention further provides a device for displaying a map object, and referring to fig. 5, a schematic structural diagram of the device is shown, which may include: a display reference value determination module 501, a display value determination module 502 and a display module 503.
A display reference value determining module 501, configured to determine a target display reference value of a map object according to an area of a first target area in the map and a number of map objects in a most dense area in the map.
A display value determining module 502, configured to determine a display value of a target map object in a second target area as a target display value based on the target display reference value, the number of map objects in the most dense area, and the number of target map objects in the second target area.
Wherein the second target area is the same as or different from the first target area, and the target display value is used for representing the display size of the target map object in the second target area.
A display module 503, configured to display the target map object in the second target area according to the target display value.
The map object display device provided by the embodiment of the invention determines a target display reference value of a map object according to the area of a first target area in a map and the number of map objects in the most dense area in the map, then determines a display value of a target map object in a second target area as a target display value according to the target display reference value, the number of map objects in the most dense area and the number of target map objects in the second target area, and finally displays the target map object in the second target area based on the target display value. The display device of the map object provided by the embodiment of the invention can better solve the problem of mutual coverage when the map objects in the map are displayed, so that a user can intuitively and comprehensively see the distribution density of the map objects, thereby facilitating the overall arrangement of the objects.
In the display apparatus of the map object provided in the above embodiment, the display reference value determining module 501 may include: a calculation submodule and a determination submodule.
And the calculation submodule is used for calculating a display reference value of the map object as a display reference calculation value according to the area of the first target area in the map and the number of the map objects in the most dense area in the map.
The determining submodule is used for determining the preset minimum display value as the target display reference value when the display reference calculation value is smaller than or equal to the preset minimum display value; when the display reference calculation value is greater than or equal to a preset maximum display value, determining the preset maximum display value as the target display reference value; and when the calculated value of the display reference is larger than the preset minimum display value and smaller than the preset maximum display value, determining the calculated value of the display reference as the target display reference value.
In the display apparatus of the map object provided in the above embodiment, the display value determining module 502 includes: a calculation submodule and a determination submodule.
The calculation sub-module is used for calculating a display value of a target map object in a second target area as a target display calculation value through the target display reference value, the number of map objects in the most dense area and the number of target map objects in the second target area;
the determining submodule is used for taking the preset maximum display value as the target display value when the target display calculation value is larger than the preset maximum display value; when the target display calculation value is smaller than the target display reference value, taking the target display reference value as the target display value; and when the target display calculated value is greater than or equal to the target display reference value and is less than or equal to the preset maximum display value, taking the target display calculated value as the target display value.
Preferably, the display device of a map object provided by the above embodiment further includes: the device comprises a detection module and a rotation module.
The detection module is used for detecting whether a target display area in which a plurality of target map objects are simultaneously displayed exists in the second target area;
the rotation module is configured to, when the target display area exists in the second target area, rotate one or more of the plurality of target map objects displayed simultaneously in the target display area so that the plurality of target map objects do not overlap with each other.
Preferably, the display device of a map object provided in the above embodiment further includes: and a display division module.
The display dividing module is used for uniformly dividing the display area of the map into grids in advance, and the size of each grid is matched with the preset minimum display value of the map object;
the detection module is specifically configured to detect whether a grid in which multiple target map objects are simultaneously displayed exists, and if the grid in which multiple target map objects are simultaneously displayed exists, determine that the grid in which multiple target map objects are simultaneously displayed is the target display area.
An embodiment of the present invention further provides a data processing apparatus, please refer to fig. 6, which shows a schematic structural diagram of the apparatus, and the apparatus may include a memory 601 and a processor 602;
a memory 601 for storing programs;
a processor 602 configured to execute the program, the program specifically configured to:
determining a target display reference value of a map object according to the area of a first target area in the map and the number of the map objects in the most dense area in the map;
determining a display value of a target map object in a second target area as a target display value based on the target display reference value, the number of map objects in the most dense area and the number of target map objects in the second target area, wherein the second target area is the same as or different from the first target area, and the target display value is used for representing the display size of the target map object in the second target area;
and displaying the target map object in the second target area according to the target display value.
The embodiment of the invention also provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program realizes the steps of the map object display method provided by any one of the above embodiments.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and device may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method of displaying a map object, comprising:
determining a target display reference value of a map object according to the area of a first target area in the map and the number of the map objects in the most dense area in the map;
determining a display value of a target map object in a second target area as a target display value based on the target display reference value, the number of map objects in the most dense area and the number of target map objects in the second target area, wherein the second target area is the same as or different from the first target area, and the target display value is used for representing the display size of the target map object in the second target area;
displaying the target map object in the second target area according to the target display value;
the determining a target display reference value of the map object by the area of the first target area in the map and the number of the map objects in the most dense area in the map includes:
calculating a display reference value of the map object as a display reference calculation value according to the area of the first target area in the map and the number of the map objects in the most dense area in the map;
if the display reference calculation value is smaller than a preset minimum display value, determining the preset minimum display value as the target display reference value;
if the display reference calculation value is larger than a preset maximum display value, determining the preset maximum display value as the target display reference value;
if the display reference calculation value is greater than or equal to the preset minimum display value and is less than or equal to the preset maximum display value, determining the display reference calculation value as the target display reference value;
the determining, as a target display value, a display value of a target map object in a second target area based on the target display reference value, the number of map objects in the most dense area, and the number of target map objects in the second target area, includes:
calculating a display value of a target map object in a second target region as a target display calculation value by the target display reference value, the number of map objects in the most dense region, and the number of target map objects in the second target region;
if the target display calculation value is larger than a preset maximum display value, taking the preset maximum display value as the target display value;
if the target display calculation value is smaller than the target display reference value, taking the target display reference value as the target display value;
and if the target display calculation value is greater than or equal to the target display reference value and is less than or equal to the preset maximum display value, taking the target display calculation value as the target display value.
2. The map object display method according to any one of claim 1, further comprising:
detecting whether a target display area in which a plurality of target map objects are simultaneously displayed exists in the second target area;
and if the second target area has the target display area, rotating one or more of the target map objects displayed simultaneously in the target display area so as to prevent the target map objects from being overlapped with each other.
3. The map object display method according to claim 2, further comprising: uniformly dividing a display area of the map into grids in advance, wherein the size of each grid is matched with a preset minimum display value of the map object;
the detecting whether there is a target display area in the second target area where a plurality of target map objects are simultaneously displayed includes:
detecting whether a grid with a plurality of target map objects displayed simultaneously exists;
and if the grid with the plurality of target map objects is displayed at the same time, determining the grid with the plurality of target map objects as the target display area.
4. A display device of a map object, comprising: the device comprises a display reference value determining module, a display value determining module and a display module;
the display reference value determining module is used for determining a target display reference value of the map object according to the area of a first target area in the map and the number of the map objects in the most dense area in the map;
the display value determining module is configured to determine, based on the target display reference value, the number of map objects in the most dense area, and the number of target map objects in a second target area, a display value of a target map object in the second target area as a target display value, where the second target area is the same as or different from the first target area, and the target display value is used to represent a display size of the target map object in the second target area;
the display module is used for displaying the target map object in the second target area according to the target display value;
the display reference value determination module includes: a calculation submodule and a determination submodule;
the calculation submodule is used for calculating a display reference value of the map object according to the area of the first target area in the map and the number of the map objects in the most dense area in the map, and the display reference value is used as a display reference calculation value;
the determining submodule is used for determining the preset minimum display value as the target display reference value when the display reference calculation value is smaller than the preset minimum display value; when the display reference calculation value is larger than a preset maximum display value, determining the preset maximum display value as the target display reference value; when the display reference calculation value is greater than or equal to the preset minimum display value and is less than or equal to the preset maximum display value, determining the display reference calculation value as the target display reference value;
the display value determination module includes: a calculation submodule and a determination submodule;
the calculation sub-module is used for calculating a display value of a target map object in a second target area as a target display calculation value through the target display reference value, the number of map objects in the most dense area and the number of target map objects in the second target area;
the determining submodule is used for taking the preset maximum display value as the target display value when the target display calculation value is larger than the preset maximum display value; when the target display calculation value is smaller than the target display reference value, taking the target display reference value as the target display value; and when the target display calculated value is greater than or equal to the target display reference value and is less than or equal to the preset maximum display value, taking the target display calculated value as the target display value.
5. The map object display device according to claim 4, further comprising: the device comprises a detection module and a rotation module;
the detection module is used for detecting whether a target display area in which a plurality of target map objects are simultaneously displayed exists in the second target area;
the rotation module is configured to, when the target display area exists in the second target area, rotate one or more of the plurality of target map objects displayed simultaneously in the target display area so that the plurality of target map objects do not overlap with each other.
6. The map object display device according to claim 5, further comprising: a display dividing module;
the display dividing module is used for uniformly dividing the display area of the map into grids in advance, and the size of each grid is matched with the preset minimum display value of the map object;
the detection module is specifically configured to detect whether a grid on which multiple target map objects are simultaneously displayed exists, and if the grid on which multiple target map objects are simultaneously displayed exists, determine that the grid on which multiple target map objects are simultaneously displayed is the target display area.
7. A data processing apparatus, characterized by comprising: a memory and a processor;
the memory is used for storing programs;
the processor is configured to execute the program, and the program is specifically configured to:
determining a target display reference value of a map object according to the area of a first target area in the map and the number of the map objects in the most dense area in the map;
the determining a target display reference value of the map object by the area of the first target area in the map and the number of the map objects in the most dense area in the map includes:
calculating a display reference value of the map object as a display reference calculation value according to the area of the first target area in the map and the number of the map objects in the most dense area in the map;
if the display reference calculation value is smaller than a preset minimum display value, determining the preset minimum display value as the target display reference value;
if the display reference calculation value is larger than a preset maximum display value, determining the preset maximum display value as the target display reference value;
if the display reference calculation value is greater than or equal to the preset minimum display value and is less than or equal to the preset maximum display value, determining the display reference calculation value as the target display reference value;
determining a display value of a target map object in a second target area as a target display value based on the target display reference value, the number of map objects in the most dense area and the number of target map objects in the second target area, wherein the second target area is the same as or different from the first target area, and the target display value is used for representing the display size of the target map object in the second target area;
the determining, as the target display value, the display value of the target map object in the second target region based on the target display reference value, the number of map objects in the most dense region, and the number of target map objects in the second target region, includes:
calculating a display value of a target map object in a second target region as a target display calculation value by the target display reference value, the number of map objects in the most dense region, and the number of target map objects in the second target region;
if the target display calculation value is larger than a preset maximum display value, taking the preset maximum display value as the target display value;
if the target display calculation value is smaller than the target display reference value, taking the target display reference value as the target display value;
if the target display calculation value is greater than or equal to the target display reference value and is less than or equal to the preset maximum display value, taking the target display calculation value as the target display value;
and displaying the target map object in the second target area according to the target display value.
8. A readable storage medium on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for displaying a map object according to any one of claims 1 to 3.
CN201810921833.XA 2018-08-14 2018-08-14 Map object display method, device, equipment and storage medium Active CN110866071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810921833.XA CN110866071B (en) 2018-08-14 2018-08-14 Map object display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810921833.XA CN110866071B (en) 2018-08-14 2018-08-14 Map object display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110866071A CN110866071A (en) 2020-03-06
CN110866071B true CN110866071B (en) 2022-08-30

Family

ID=69651038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810921833.XA Active CN110866071B (en) 2018-08-14 2018-08-14 Map object display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110866071B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103852080A (en) * 2013-07-03 2014-06-11 携程计算机技术(上海)有限公司 Map display method and system for objects
CN104080049A (en) * 2014-06-11 2014-10-01 惠州Tcl移动通信有限公司 Method and system for displaying change of number of regional users
CN105893632A (en) * 2016-06-02 2016-08-24 腾讯科技(深圳)有限公司 Road name data compiling method and map labeling method and device
CN106095823A (en) * 2016-05-31 2016-11-09 青岛海信移动通信技术股份有限公司 A kind of map-indication method and device
CN106897321A (en) * 2015-12-21 2017-06-27 北京国双科技有限公司 The method and device of show map data
CN107393410A (en) * 2017-06-29 2017-11-24 网易(杭州)网络有限公司 The method of display data, medium, device and computing device on map
CN107741814A (en) * 2017-10-16 2018-02-27 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN107992522A (en) * 2017-11-06 2018-05-04 腾讯科技(深圳)有限公司 A kind of image processing method, device and terminal device
CN108319607A (en) * 2017-01-18 2018-07-24 阿里巴巴集团控股有限公司 The display of business object, the processing method of map datum, client and server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8564596B2 (en) * 2010-01-12 2013-10-22 Palantir Technologies, Inc. Techniques for density mapping
CN105956124B (en) * 2016-05-06 2019-07-23 中国神华能源股份有限公司 A kind of map methods of exhibiting and device
CN108133406B (en) * 2017-12-21 2021-10-15 北京星选科技有限公司 Information display method and device, electronic equipment and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103852080A (en) * 2013-07-03 2014-06-11 携程计算机技术(上海)有限公司 Map display method and system for objects
CN104080049A (en) * 2014-06-11 2014-10-01 惠州Tcl移动通信有限公司 Method and system for displaying change of number of regional users
CN106897321A (en) * 2015-12-21 2017-06-27 北京国双科技有限公司 The method and device of show map data
CN106095823A (en) * 2016-05-31 2016-11-09 青岛海信移动通信技术股份有限公司 A kind of map-indication method and device
CN105893632A (en) * 2016-06-02 2016-08-24 腾讯科技(深圳)有限公司 Road name data compiling method and map labeling method and device
CN108319607A (en) * 2017-01-18 2018-07-24 阿里巴巴集团控股有限公司 The display of business object, the processing method of map datum, client and server
CN107393410A (en) * 2017-06-29 2017-11-24 网易(杭州)网络有限公司 The method of display data, medium, device and computing device on map
CN107741814A (en) * 2017-10-16 2018-02-27 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN107992522A (en) * 2017-11-06 2018-05-04 腾讯科技(深圳)有限公司 A kind of image processing method, device and terminal device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于WebGIS的校园电子地图展示系统的研究与实现;李姗姗;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20100315(第03期);I138-60 *

Also Published As

Publication number Publication date
CN110866071A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
EP3951721A1 (en) Method and apparatus for determining occluded area of virtual object, and terminal device
EP2998848B1 (en) Method, device, and apparatus for controlling screen rotation
EP3070589A1 (en) Method and device for amplifying selected region of previewing interface
WO2016201915A1 (en) Alarm method and apparatus thereof
CN106331879B (en) Barrage display method and device based on panoramic video
CN108880700B (en) Frequency hopping method and frequency hopping device of clock signal and mobile terminal
TW201610817A (en) System and method for displaying icons on desktop
CN113608641B (en) Method and device for adjusting display position of curved screen, intelligent sound box and storage medium
CN108920037B (en) Method and device for displaying virtual three-dimensional space of house
CN106231094A (en) application program freezing method and system
CN110866071B (en) Map object display method, device, equipment and storage medium
CN107515751B (en) UI layout self-adaption method and device
CN105204720A (en) Method and device for displaying background image on mobile terminal
CN106205484B (en) LED display band carries configuration method and device
CN109582269B (en) Physical splicing screen display method and device and terminal equipment
US9495273B2 (en) Systems and methods for displaying blade chassis data
CN106126686B (en) Picture combination method and device and electronic equipment
CN108958860B (en) Screen display state control method and related product
CN113989427A (en) Illumination simulation method and device, electronic equipment and storage medium
CN112484678A (en) Accurate measurement method and device based on virtual three-dimensional space
CN110851227B (en) Display control method and electronic equipment
CN113448972B (en) Map display method, device, terminal and storage medium
US20230259245A1 (en) Method and apparatus for adjusting perspective of direction indicator, electronic device, and storage medium
CN112102483B (en) Method and device for dynamically displaying three-dimensional model on electronic teaching whiteboard
CN113934341B (en) Network policy topology display method and device, electronic equipment and storage medium

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