Port name arrangement display method based on port coordinates and map

Through the intelligent arrangement algorithm, the arrangement of port names is adjusted in real time according to the changes in port coordinates and maps, solving the problems of port names overlap and readability, and achieving clear and effective port information display.

CN119961331APending Publication Date: 2025-05-09LIANKE YUNCHUANG (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510000382.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

The prior art is difficult to effectively arrange port names, prevent overlapping, and maintain readability at different zoom levels.

Method used

An intelligent arrangement algorithm based on port coordinates and maps is adopted to adjust the arrangement position and size of the port name in real time according to the relative distance between ports, the scaling of the map and the change in view of the perspective of the ports, to avoid overlap.

Benefits of technology

It realizes clear display of port names, avoids overlap and occlusion, improves the clarity of information and user experience, and enhances the readability and accuracy of the map.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119961331A_ABST
    Figure CN119961331A_ABST
Patent Text Reader

Abstract

The invention discloses a port name arrangement display method based on port coordinates and a map. The method comprises the following steps: S1, acquiring port coordinate data; s2, loading a base map of the map and drawing port coordinate points; s3, associating the port name with the coordinates; s4, arranging and displaying the port names: calculating and displaying the arrangement position of each port name according to an intelligent arrangement algorithm; s5, dynamic adjustment and optimization: during user operation, the intelligent arrangement algorithm adjusts the positions and sizes of the port names in real time through a conflict detection and solution mechanism to ensure that the port names are not overlapped all the time under different map view angles; and S6, performing user interaction and self-definition, and returning to the step S5 according to self-definition information to perform real-time optimization. According to the method, the arrangement of the names can be adjusted in real time according to the relative distance between the ports, the scaling of the map, the view angle change of the map and the port distribution density, overlapping is avoided, and the definition of information is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of geographic information visualization, and in particular to a method for arranging and displaying port names based on port coordinates and maps. Background Art

[0002] Port information management and display are widely used in the fields of marine fisheries, navigation, meteorology, etc. Traditional port information is usually displayed in the form of text or simple lists, lacking intuitive geographic location visualization. With the development of technology, map services (such as electronic maps, geographic information systems) have become popular, and the display method combining geographic coordinates and maps can display port information more clearly and effectively. However, at present, the display of port names and coordinates still faces challenges such as how to effectively arrange names, prevent overlaps, and maintain readability at different zoom levels. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a method for arranging and displaying port names based on port coordinates and maps, which can adjust the arrangement of names in real time according to the relative distance between ports, map zoom, map perspective change and port distribution density to avoid overlap and improve the clarity of information.

[0004] In order to solve the above technical problems, the technical solutions adopted by the present invention are as follows.

[0005] A method for arranging and displaying port names based on port coordinates and a map comprises the following steps:

[0006] S1. Obtain port coordinate data;

[0007] S2. Load the map base map and draw the port coordinate points;

[0008] S3. Port names are associated with coordinates;

[0009] S4. Arrangement and display of port names: Calculate the arrangement position of each port name and display it according to the intelligent arrangement algorithm;

[0010] S5. Dynamic adjustment and optimization: When operated by the user, the intelligent layout algorithm adjusts the position and size of the port names in real time through the conflict detection and resolution mechanism to ensure that the port names will never overlap under different map perspectives;

[0011] S6. User interaction and customization, and return to step S5 for real-time optimization based on the customized information.

[0012] Preferably, the intelligent arrangement algorithm in step S4 automatically calculates the arrangement position of the port names according to the relative distance between the ports, the map viewing angle and the map zoom ratio, and determines whether to display the port names and adjusts the display mode according to the priority in the port-dense area.

[0013] Preferably, in step S4, the intelligent arrangement algorithm automatically calculates the arrangement position of the port names based on the relative distances between the ports, and the specific method is:

[0014] For two port names and location coordinates P1(x1, y1) and P2(x2, y2), their distance d is calculated by the formula:

[0015]

[0016] When the distance d is less than the preset minimum distance d textmin When the port name is changed, the intelligent layout algorithm adjusts the position of one or two port names according to the set strategy, including but not limited to translation and offset, to meet the spacing requirements.

[0017] Preferably, the intelligent arrangement algorithm in step S4 automatically calculates the arrangement position of the port name according to the map viewing angle to ensure that the name does not overlap or block the map elements. The specific method is:

[0018] The coordinates of the port name are (x, y), the rotation angle is θ, and the coordinates after rotation are (x′, y′), which are calculated using the following rotation formula:

[0019] x′=x cosθ-y sinθ

[0020] y′=x sinθ+y cosθ

[0021] The specific method of the intelligent arrangement algorithm in step S4 to automatically calculate the arrangement position of the port name according to the map zoom ratio is:

[0022] Let the map zoom ratio be s. When s=1, it is normal size; when s>1, it is enlarged; when s<1, it is reduced; let the font size be F s , F s Adjust by scaling:

[0023] F s =F0×S

[0024] Among them, F0 is the original font size;

[0025] At the same time, in order to avoid excessive crowding, the display position of the port name is fine-tuned according to the zoom ratio. When the zoom ratio is small, the position is fine-tuned to prevent overlapping; when the zoom ratio is large, the font position spacing is precisely adjusted.

[0026] Preferably, the calculation formula of the priority in step S4 is:

[0027] P i =w1×I i +w2×T i+w3×S i

[0028] Where: I i is an indicator of port economy or importance; T i is the port traffic flow; S i is the port scale; w1, w2, w3 are weight coefficients.

[0029] Preferably, in step S5, the intelligent arrangement algorithm performs conflict detection according to preset rules to determine whether dynamic adjustment and optimization are required due to conflicts during user operation, and the preset rules include:

[0030] Name overlap determination rules: When two or more port names intersect in the pixel space within the map display area, it is determined that the names overlap. This determination is based on the range of the rectangular boxes occupied by each port name. If these rectangular boxes intersect each other, there is an intersection in the pixel space.

[0031] Evaluation rules for display area congestion: Calculate the number of port names per unit area or the proportion of the total area they occupy within the current map field of view, and set a threshold. When the threshold is exceeded, the current display area is considered to be in a congested state.

[0032] Conflict rules with important map elements: Detect the distance between the port name and important map elements including but not limited to city names, main roads and landmarks; if the distance is less than the preset safety distance, it is considered that there may be a risk of conflict, which requires further evaluation and processing.

[0033] Preferably, in step S5, when dynamic adjustment and optimization are required, the intelligent layout algorithm adjusts the position and size of the port name in real time according to a solution mechanism; the solution mechanism includes moving the port name, reducing the name font, and automatically hiding distant ports.

[0034] Preferably, the specific strategy for moving the port name is:

[0035] Determine the conflicting name group, i.e., a group of port names that overlap with each other or conflict with important elements. For this group of names, calculate their centroid coordinates, which are obtained by weighted average of the coordinates of each port, and the weights are set based on factors including but not limited to port size and importance;

[0036] Taking the center of gravity coordinates as the center, the name is gradually moved along the pre-set direction vector in the direction with more blank areas;

[0037] During the movement process, check in real time whether there is a conflict with other names or important elements again. If there is no conflict, stop moving and determine the new position of the name; if there is still a conflict, continue to adjust the moving direction and step size according to the above strategy until a suitable position is found.

[0038] Preferably, the specific strategy for reducing the name font size is:

[0039] Set different font reduction levels according to the degree of display area crowding or name overlap;

[0040] When reducing the font size, the lower limit of the font readability is also considered, that is, a minimum font size threshold is set; when the calculated reduced font size is lower than the threshold, the conflict is no longer resolved by simply reducing the font size, but is resolved in combination with other resolution mechanisms.

[0041] Preferably, the specific strategy for automatically hiding the remote port is:

[0042] Determine a field of view radius based on the user's current zoom ratio;

[0043] Calculate the distance of each port from the center of the map or the center of the user's current focus area. If the distance is greater than the field of view radius and the port is a relatively unimportant port in the current display area, it will be included in the candidate list for hiding.

[0044] Due to the adoption of the above technical scheme, the technical progress achieved by the present invention is as follows.

[0045] The port names of the present invention are displayed more clearly: the arrangement of the port names is optimized through an intelligent arrangement algorithm to avoid overlapping or blocking of names, thereby ensuring that the port names can be clearly displayed under different map viewing angles and zoom ratios.

[0046] The present invention can improve user experience: through the interactive interface, users can adjust the display mode of the port name according to their needs, support personalized settings, and improve user experience.

[0047] The present invention can enhance the readability and accuracy of the map: by dynamically adjusting the position and size of the port name, it can dynamically adapt to changes in the map, thereby ensuring the readability of the map and the accurate presentation of the port information.

[0048] The present invention can automatically adapt to different port distributions: through an intelligent arrangement algorithm, the position and display mode of the port names can be automatically adjusted according to the port distribution density to avoid name overlap or overcrowding.

[0049] The present invention can improve the efficiency of port information query: through clear and orderly display of port names, users can quickly locate and query target ports, thereby improving the efficiency of obtaining port information. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0051] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0052] A method for arranging and displaying port names based on port coordinates and maps, combined with Figure 1 As shown, the following steps are included:

[0053] S1. Obtain port coordinate data.

[0054] The coordinate information of each port is obtained through the Global Positioning System (GPS), remote sensing technology or from a third-party data provider platform (such as a fishery management agency) and stored in the database. The data of each port includes the name, longitude, latitude, region, etc.

[0055] S2. Load the map base map and draw the port coordinate points.

[0056] Use the integrated map API (such as Google Maps, Bing Maps, OpenStreetMap or custom map engine) to load the map base map and draw the port coordinate points on it. The coordinates of each port are displayed as a marker on the map, and the name of the port is displayed next to the marker. The map view can support different map types (such as satellite maps, street maps, topographic maps, etc.). The port information layer can be superimposed on different map layers as needed, and according to the user's perspective, the map data of the corresponding area is loaded to provide basic map display.

[0057] S3. Port names are associated with coordinates.

[0058] The coordinate information of each port is associated with its name and stored in the database to ensure the accurate correspondence between the name and the coordinates, so that the port name can be accurately located and displayed on the map later. Each port name is associated with a latitude and longitude coordinate, as well as other necessary additional information (such as port capacity, fishing activity area, port grade, fishery resources, etc.).

[0059] S4. Arrangement and display of port names: According to the intelligent arrangement algorithm, the arrangement position of each port name is calculated and displayed.

[0060] The intelligent layout algorithm automatically calculates the layout of port names based on the relative distance between ports, map perspective and map zoom ratio, and decides whether to display port names and adjusts the display mode (font size, position, etc.) based on priority in port-dense areas. The details are as follows:

[0061] (1) The intelligent arrangement algorithm automatically calculates the arrangement position of the port names based on the relative distance between the ports, thereby ensuring that the interval between the display positions of the port names meets a certain standard and preventing name overlap. The specific method is as follows:

[0062] For two port names and location coordinates P1(x1, y1) and P2(x2, y2), their distance d is calculated by the formula:

[0063]

[0064] When the distance d is less than the preset minimum distance d textmin When the port name is changed, the intelligent layout algorithm adjusts the position of one or two port names according to the set strategy (translation, offset, etc.) to meet the spacing requirements.

[0065] (2) The intelligent layout algorithm automatically calculates the layout position of the port name based on the map perspective, so that it faces the correct direction and ensures that the name does not overlap or block the map elements. The specific method is as follows:

[0066] The coordinates of the port name are (x, y), the rotation angle is θ, and the coordinates after rotation are (x′, y′), which are calculated using the following rotation formula:

[0067] x′=x cosθ-y sinθ

[0068] y′=x sinθ+y cosθ.

[0069] (3) The intelligent layout algorithm automatically calculates the layout position of the port names according to the map zoom ratio, changes the font size and corresponding position of the port names, and ensures that the names are clear and do not overlap at different zoom levels. The specific method is as follows:

[0070] Let the map zoom ratio be s (when s=1, it is normal size; when s>1, it is enlarged; when s<1, it is reduced), and let the font size be F s , F s Adjust by scaling:

[0071] F s =F0×S

[0072] Among them, F0 is the original font size;

[0073] At the same time, to avoid overcrowding, the port name display position is fine-tuned according to the zoom ratio:

[0074] When the zoom ratio is small (large view), fine-tune the position to prevent overlap;

[0075] When the zoom level is large (small view), the font position spacing is adjusted precisely.

[0076] (4) The priority calculation formula is:

[0077] P i =w1×I i +w2×T i +w3×S i

[0078] Where: I i is an indicator of port economy or importance; T i is the port traffic flow; S i is the port scale (throughput, number of ships, etc.); w1, w2, w3 are weight coefficients, which can be adjusted according to actual conditions.

[0079] S5. Dynamic adjustment and optimization: When the user operates (such as zooming and panning the map), the intelligent layout algorithm adjusts the position and size of the port name in real time through the conflict detection and resolution mechanism to ensure that the port names will never overlap under different map perspectives and the display effect is always optimal. The details are as follows:

[0080] 1. The intelligent layout algorithm performs conflict detection according to preset rules to determine whether dynamic adjustment and optimization are required due to conflicts during user operations. The preset rules include:

[0081] (1) Name overlap determination rule: The name is moved to a blank area that does not overlap with other names through an algorithm, as follows:

[0082] When two or more port names intersect in the pixel space within the map display area, it is determined that the names overlap; this determination is based on the rectangular frame range occupied by each port name. If these rectangular frames intersect with each other, there is an intersection in the pixel space, which triggers the resolution mechanism process.

[0083] (2) Evaluation rules for display area congestion: The display size of the port names is automatically adjusted according to the density of the port names, as follows:

[0084] Calculate the number of port names per unit area or the proportion of the total area they occupy within the current map field of view, and set a threshold. When the threshold is exceeded, the current display area is determined to be crowded. Even if there is no obvious name overlap, display optimization adjustments may be required.

[0085] (3) Conflict rules with important map elements: When ports are too densely distributed, some port names that are far away from the current field of view will be automatically hidden according to the user's zoom ratio to avoid information being too crowded. The details are as follows:

[0086] Detect the distance between the port name and important map elements such as city names, main roads, and landmarks; if the distance is less than the preset safety distance (this distance can be set to different values ​​according to the importance and display priority of the map element), it is considered that there may be a risk of conflict and further evaluation and processing is required.

[0087] 2. When dynamic adjustment and optimization are required, the intelligent layout algorithm adjusts the position and size of the port names in real time according to the solution mechanism. The solution mechanism includes moving the port names, reducing the name font size, and automatically hiding distant ports, as follows:

[0088] (1) The specific strategy for moving port names is:

[0089] First, determine the conflicting name group, that is, a group of port names that overlap with each other or conflict with important elements. For this group of names, calculate their centroid coordinates. The centroid coordinates can be obtained by weighted average of the coordinates of each port. The weights can be set according to factors such as port size and importance.

[0090] Taking the centroid coordinates as the center, the name is gradually moved along a preset direction vector (for example, determined according to the map direction and the distribution of blank areas, with priority given to the direction with more blank areas), each time moving a smaller step size (such as the movement amount in pixel units).

[0091] During the movement process, check in real time whether there is a conflict with other names or important elements again. If there is no conflict, stop moving and determine the new position of the name; if there is still a conflict, continue to adjust the moving direction and step size according to the above strategy until a suitable position is found.

[0092] The following is a specific example:

[0093] Assume that there are three port names A, B, and C overlapping in a certain map area, and calculate their centroid coordinates as (Xg, Yg). After analysis, it is found that there are more blank areas in the northeast direction of the map, and the initial moving direction vector is set to (dx=1, dy=1) with a step size of 5 pixels. First move A along this direction. After moving, check that it no longer overlaps with other names and keeps a safe distance from important elements, then determine the new position of A; then repeat similar operations for B and C. If new conflicts are encountered during the movement, adjust the moving direction vector according to the actual situation, such as changing it to (dx=0.5, dy=1), etc., and continue to try to move until all names are successfully moved to non-conflicting positions.

[0094] (2) The specific strategies for reducing the font size of names are:

[0095] Different font reduction ratio levels are set according to the severity of display area crowding or name overlap. For example, when the crowding is slight, the font reduction ratio is set to 0.9 (i.e., reduced to 90% of the original); when the crowding is high, the reduction ratio is adjusted to 0.8, 0.7, etc.

[0096] When reducing the font size, the lower limit of font readability is also considered, that is, a minimum font size threshold is set. When the calculated reduced font size is lower than the threshold, the conflict is no longer resolved by simply reducing the font size, but by combining other resolution mechanisms, such as moving the name or hiding part of the name.

[0097] The following is a specific example:

[0098] If there are dense port names in a certain area and the congestion is high after detection, the font size of all conflicting name groups will be reduced to 0.7 times the original size according to the preset rules. However, if the font of a port name is small and will be below the minimum font size threshold (such as 8 pixels) after reduction, the font reduction operation of the name will be suspended, and the conflict will be resolved by moving its position first. If the conflict cannot be resolved after moving, consider whether to hide the name (based on its importance and other relevant factors).

[0099] (3) The specific strategy for automatically hiding distant ports is:

[0100] A field of view radius is determined according to the current zoom ratio of the user. For example, when the zoom ratio is small, the field of view radius is large; when the zoom ratio is large, the field of view radius is small.

[0101] Calculate the distance from each port to the center of the map or the center of the user's current focus area. If the distance is greater than the field of view radius and the port is relatively unimportant in the current display area (which can be judged comprehensively based on factors such as the port level and the recent activity of fishing activities), it will be included in the candidate list that can be hidden.

[0102] The following is a specific example:

[0103] When the map zoom ratio is 1:50000, the field of view radius is set to 10 kilometers. A port P is 12 kilometers away from the center of the map, and it is a small port with few recent fishing activities, so it is determined to be hidden. The system hides its name and provides a prompt icon or menu option on the map interface to display the hidden port information. When the user zooms in on the map to 1:10000, the field of view radius is reduced to 2 kilometers. At this time, the previously hidden ports are re-evaluated. If P is still out of the field of view, but the map displays relatively little information after zooming in, and the names of other ports around P are clearly displayed, the name of P can be restored to display; if the area around P is still crowded, it will continue to remain hidden until the display conditions are met.

[0104] S6. User interaction and customization, and return to step S5 for real-time optimization based on the customized information.

[0105] Provide a user interface, when the user clicks on the port name or label, the detailed information of the port (such as port type, facilities, contact information, etc.) is displayed. Allow users to customize the display of port names, including choosing to display ports in a specific area, modifying the font size, color and transparency of port names, etc., to enhance personalization and operability; in addition, users can also choose to filter and display by port category (such as large ports, deep-water ports, fishery processing ports, etc.), to enhance the user's customization experience.

[0106] When the user customizes, the intelligent layout algorithm responds quickly, completes dynamic adjustment and optimization, and ensures that port names do not overlap. At the same time, for large-scale port data sets, optimized data structures and efficient algorithms are used to ensure smooth operation under large-scale data.

[0107] When in use, the present invention dynamically adjusts the position of the port name according to the relative distance between the ports, the map zoom ratio and the viewing angle. Especially under the influence of factors such as the map viewing angle, zoom and the port distribution density, the display of the name can be optimized in real time to avoid overlapping and ensure that the port name can be clearly readable under different viewing angles. It has a real-time conflict detection and resolution mechanism. When the port names overlap, adjustments will be made automatically, including moving the names, reducing the fonts, automatically hiding the ports away from the field of vision, etc., to maintain the clarity and readability of the information. A user-defined interactive interface is provided, allowing the user to adjust the display mode of the port name according to needs, including font size, color, transparency, etc., and can also filter and display according to the port category. This user interaction function enhances personalized settings and flexibility. At the same time, the name and coordinate information of the port are accurately associated and stored in the database, and are associated with other attributes (such as port grade, fishery resources, etc.) for subsequent display and optimization.

Claims

1. A method for arranging and displaying port names based on port coordinates and maps, characterized in that: The following steps are involved: S1. Obtain port coordinate data; S2. Load the map base map and draw the port coordinate points; S3. Port names are associated with coordinates; S4. Arrangement and display of port names: Calculate the arrangement position of each port name and display it according to the intelligent arrangement algorithm; S5. Dynamic adjustment and optimization: When operated by the user, the intelligent layout algorithm adjusts the position and size of the port names in real time through the conflict detection and resolution mechanism to ensure that the port names will never overlap under different map perspectives; S6. User interaction and customization, and return to step S5 for real-time optimization based on the customized information.

2. The method for arranging and displaying port names based on port coordinates and maps according to claim 1, characterized in that: In step S4, the intelligent arrangement algorithm automatically calculates the arrangement position of the port names according to the relative distance between the ports, the map viewing angle and the map zoom ratio, and determines whether to display the port names and adjusts the display mode according to the priority in the port-dense area.

3. The method for arranging and displaying port names based on port coordinates and maps according to claim 2, characterized in that: In step S4, the intelligent arrangement algorithm automatically calculates the arrangement position of the port names based on the relative distance between the ports. The specific method is: For two port names and location coordinates P1(x1, y1) and P2(x2, y2), their distance d is calculated by the formula: When the distance d is less than the preset minimum distance d textmin When the port name is changed, the intelligent layout algorithm adjusts the position of one or two port names according to the set strategy, including but not limited to translation and offset, to meet the spacing requirements.

4. The method for arranging and displaying port names based on port coordinates and maps according to claim 3 is characterized in that: In step S4, the intelligent arrangement algorithm automatically calculates the arrangement position of the port name according to the map perspective to ensure that the name does not overlap or block the map elements. The specific method is: The coordinates of the port name are (x, y), the rotation angle is θ, and the coordinates after rotation are (x′, y′), which are calculated using the following rotation formula: x′=x′cosθ-y sinθ y′=xsinθ+ycosθ The specific method of the intelligent arrangement algorithm in step S4 to automatically calculate the arrangement position of the port name according to the map zoom ratio is: Let the map zoom ratio be s. When s=1, it is normal size; when s>1, it is enlarged; when s<1, it is reduced; let the font size be F s , F s Adjust by scaling: F s =F0×S Among them, F0 is the original font size; At the same time, in order to avoid excessive crowding, the display position of the port name is fine-tuned according to the zoom ratio. When the zoom ratio is small, the position is fine-tuned to prevent overlapping; when the zoom ratio is large, the font position spacing is precisely adjusted.

5. The method for arranging and displaying port names based on port coordinates and maps according to claim 3 is characterized in that: The calculation formula of the priority in step S4 is: P i =w1×I i +w2×T i +w3×S i Where: I i is an indicator of port economy or importance; T i is the port traffic flow; S i is the port scale; w1, w2, w3 are weight coefficients.

6. The method for arranging and displaying port names based on port coordinates and maps according to claim 1, characterized in that: In step S5, the intelligent arrangement algorithm performs conflict detection according to preset rules to determine whether dynamic adjustment and optimization are required due to conflicts during user operation. The preset rules include: Name overlap determination rules: When two or more port names intersect in the pixel space within the map display area, it is determined that the names overlap. This determination is based on the range of the rectangular boxes occupied by each port name. If these rectangular boxes intersect each other, there is an intersection in the pixel space. Evaluation rules for display area congestion: Calculate the number of port names per unit area or the proportion of the total area they occupy within the current map field of view, and set a threshold. When the threshold is exceeded, the current display area is considered to be in a congested state. Conflict rules with important map elements: Detect the distance between the port name and important map elements including but not limited to city names, main roads and landmarks; if the distance is less than the preset safety distance, it is considered that there may be a risk of conflict, which requires further evaluation and processing.

7. The method for arranging and displaying port names based on port coordinates and maps according to claim 6 is characterized in that: In step S5, when dynamic adjustment and optimization are required, the intelligent layout algorithm adjusts the position and size of the port name in real time according to the solution mechanism; the solution mechanism includes moving the port name, reducing the name font, and automatically hiding the distant port.

8. The method for arranging and displaying port names based on port coordinates and maps according to claim 7 is characterized in that: The specific strategy for moving the port name is: Determine the conflicting name group, i.e., a group of port names that overlap with each other or conflict with important elements. For this group of names, calculate their centroid coordinates, which are obtained by weighted average of the coordinates of each port, and the weights are set based on factors including but not limited to port size and importance; Taking the center of gravity coordinates as the center, the name is gradually moved along the pre-set direction vector in the direction with more blank areas; During the movement process, check in real time whether there is a conflict with other names or important elements again. If there is no conflict, stop moving and determine the new position of the name; if there is still a conflict, continue to adjust the moving direction and step size according to the above strategy until a suitable position is found.

9. The method for arranging and displaying port names based on port coordinates and maps according to claim 7, characterized in that: The specific strategy for reducing the name font size is: Set different font reduction levels according to the degree of display area crowding or name overlap; When reducing the font size, the lower limit of the font readability is also considered, that is, a minimum font size threshold is set; when the calculated reduced font size is lower than the threshold, the conflict is no longer resolved by simply reducing the font size, but is resolved in combination with other resolution mechanisms.

10. The method for arranging and displaying port names based on port coordinates and maps according to claim 7, characterized in that: The specific strategy for automatically hiding distant ports is: Determine a field of view radius based on the user's current zoom ratio; Calculate the distance of each port from the center of the map or the center of the user's current focus area. If the distance is greater than the field of view radius and the port is a relatively unimportant port in the current display area, it will be included in the candidate list for hiding.