Electronic map control method and device, electronic equipment and storage medium

By determining the logistics business area and display area with boundaries in the electronic map in the logistics field, and loading the display area and surrounding areas according to the mouse movement path, the problem of too many small and adjacent areas in the electronic map is solved, and user experience and logistics efficiency are improved.

CN119645279APending Publication Date: 2025-03-18SF TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311189789.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-14
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the prior art, when electronic maps in the logistics field are divided into custom areas, there are too many areas with small areas or multiple small areas adjacent, resulting in poor user viewing and operation experience.

Method used

By obtaining the preset geographical data format of the electronic map and the map latitude and longitude of each preset area, multiple logistics business areas with boundaries are determined, and a collection of logistics display areas is determined based on these business areas. If the mouse moves the latitude and longitude coordinates in the logistics display area, enlarge and display the business information of the area, and load the corresponding logistics display area and surrounding areas according to the mouse move path.

Benefits of technology

It improves the user's experience of viewing and operating electronic maps in the logistics field, enhances the logistics efficiency of the logistics industry, and solves the problem of too many small areas and adjacent areas by reasonably dividing and displaying logistics business areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645279A_ABST
    Figure CN119645279A_ABST
Patent Text Reader

Abstract

The invention provides an electronic map control method and device, electronic equipment and a storage medium. The electronic map control method comprises the steps that a preset geographic data format of an electronic map, map longitudes and latitudes of all preset areas and mouse moving longitude and latitude coordinates are obtained; determining a plurality of logistics business areas with boundaries based on a preset geographic data format and the map longitude and latitude of each preset area; determining a logistics display area set based on each logistics business area, the map latitude and longitude corresponding to each logistics business area and a preset area condition; if the map longitude and latitude of the logistics display area set comprise the mouse moving longitude and latitude coordinates, amplifying the logistics display area, and displaying the business information of the logistics display area; according to the method, the electronic map is controlled to load the logistics display area and the preset peripheral area corresponding to the moving path according to the preset setting based on the logistics display area set and the moving path formed by the plurality of mouse moving longitude and latitude coordinates, so that the user experience of viewing and operating the electronic map in the logistics field is improved, and the logistics efficiency of the logistics industry is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of map technology, and in particular relates to a control method, device, electronic device and storage medium for an electronic map. Background Art

[0002] Currently, electronic maps in the logistics field are divided into custom areas based on administrative divisions, but some custom areas are relatively small in area, or there may be multiple custom areas of relatively small area adjacent to each other, resulting in a poor viewing and operation experience for users.

[0003] The existing technology has the problem of poor user experience in viewing and operating electronic maps in the logistics field. Summary of the invention

[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for controlling an electronic map, which can solve the problem of poor user experience in viewing and operating electronic maps in the logistics field.

[0005] In a first aspect, an embodiment of the present application provides a method for controlling an electronic map, including: obtaining a preset geographic data format of the electronic map, the map longitudes and latitudes of each preset area, and the longitude and latitude coordinates of the mouse movement; determining multiple logistics business areas with boundaries based on the preset geographic data format and the map longitudes and latitudes of each preset area; determining a logistics display area set based on each logistics business area, the map longitudes and latitudes corresponding to each logistics business area, and a preset area condition; if the map longitudes and latitudes of the logistics display area set include the longitude and latitude coordinates of the mouse movement, enlarging the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement, and displaying the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement; based on the logistics display area set and a moving path formed by multiple longitude and latitude coordinates of the mouse movement, controlling the electronic map to load the logistics display area and the preset surrounding area corresponding to the moving path according to preset settings.

[0006] Compared with the prior art, the present embodiment has the following beneficial effects: by obtaining the preset geographic data format of the electronic map, the map longitude and latitude coordinates of each preset area, and the longitude and latitude coordinates of the mouse movement; based on the preset geographic data format and the map longitude and latitude coordinates of each preset area, determining multiple logistics business areas with boundaries; based on each logistics business area, the map longitude and latitude corresponding to each logistics business area, and the preset area condition, determining a logistics display area set; if the map longitude and latitude of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, enlarging the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement, and displaying the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement; based on the logistics display area set and the moving path formed by the multiple longitude and latitude coordinates of the mouse movement, controlling the electronic map to load the logistics display area and the preset surrounding area corresponding to the moving path according to the preset settings, since the logistics business area that meets the preset area requirement is set to be able to be enlarged and displayed following the longitude and latitude coordinates of the mouse movement, and the logistics display area and the preset surrounding area corresponding to the mouse moving path can be loaded according to the preset settings, the user's experience of viewing and operating the electronic map in the logistics field is greatly improved, and the logistics efficiency of the logistics industry is also improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0008] Figure 1 It is a flowchart of a method for controlling an electronic map provided in one embodiment of the present application;

[0009] Figure 2 It is a flow chart of determining a set of logistics display areas through a bounding box tree structure based on each logistics business area, the longitude and latitude of the map corresponding to each logistics business area, and a preset area condition provided by another embodiment of the present application;

[0010] Figure 3 Another embodiment of the present application provides a flow chart of enlarging the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement, and displaying the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement if the longitude and latitude of the map of the logistics display area set includes the longitude and latitude coordinates of the mouse movement;

[0011] Figure 4 It is a schematic diagram of a process of vector slicing the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement according to a preset magnification ratio through a quadtree structure if the longitude and latitude of the map of the logistics display area set includes the longitude and latitude coordinates of the mouse movement provided by another embodiment of the present application;

[0012] Figure 5 This is a schematic diagram of an application scenario for enlarging and displaying the Ningbo logistics display area provided by an embodiment of the present application;

[0013] Figure 6 It is a flow chart of controlling an electronic map to load a logistics display area and a preset surrounding area corresponding to a moving path according to preset settings based on a set of logistics display areas and a moving path formed by a plurality of mouse moving longitude and latitude coordinates provided by another embodiment of the present application;

[0014] Figure 7 It is a schematic diagram of the structure of the control device of the electronic map provided in the embodiment of the present application. DETAILED DESCRIPTION

[0015] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0016] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0017] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0018] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0019] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0020] Maps are an important form of display. Most of the daily map displays are based on the various provincial administrative regions of the country. In the logistics industry, the various provincial administrative regions of the country and the cities / districts under each provincial administrative region are used as the basis for regional division.

[0021] At present, electronic maps in the logistics field will make custom area divisions based on administrative divisions, and clearly show the business situation of each area by marking each area; through mouse operation, relevant detailed information of the selected area can also be viewed and related operations can be performed, but some custom areas are relatively small in area, or there will be multiple custom areas with relatively small areas adjacent to each other, resulting in a poor viewing and operation experience for users.

[0022] The existing technology has the problem of poor user experience in viewing and operating electronic maps in the logistics field.

[0023] The electronic map control method of the present application obtains a preset geographic data format of the electronic map, the map longitude and latitude of each preset area, and the longitude and latitude coordinates of the mouse movement; based on the preset geographic data format and the map longitude and latitude of each preset area, multiple logistics business areas with boundaries are determined; based on each logistics business area, the map longitude and latitude corresponding to each logistics business area, and the preset area condition, a logistics display area set is determined; if the map longitude and latitude of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is enlarged, and the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is displayed; based on the logistics display area set and the moving path formed by the multiple longitude and latitude coordinates of the mouse movement, the electronic map is controlled to load the logistics display area and the preset surrounding area corresponding to the moving path according to the preset settings. Since the logistics business area that meets the preset area requirement is set to be able to be enlarged and displayed following the longitude and latitude coordinates of the mouse movement, and the logistics display area and the preset surrounding area corresponding to the mouse moving path can be loaded according to the preset settings, the user's experience of viewing and operating the electronic map in the logistics field is greatly improved, which is convenient for logistics companies to coordinate according to the business information of each area, and improves the logistics efficiency of the logistics industry.

[0024] The technical solution of the present application is described below through specific embodiments.

[0025] First, as Figure 1 As shown, the embodiment of the present application provides a method for controlling an electronic map, including:

[0026] S100, obtaining a preset geographic data format of an electronic map, the map longitude and latitude of each preset area, and the longitude and latitude coordinates of the mouse movement.

[0027] In one embodiment, the preset geographic data format is Geojson format, wherein Geojson format is a format for encoding various geographic data structures, a geographic spatial information data exchange format based on JavaScript Object Notation (JSON for short), and Geojson format is an open standard geographic data format that can be used to describe various geographic information on a map. In Geojson format, custom fences can be created by defining various types of geometric objects such as points, lines, and polygons. Longitude and latitude are the combination of longitude and latitude to form a coordinate system, called a geographic coordinate system.

[0028] In one embodiment, based on the fence data in Geojson format of the national electronic map, the fence data in Geojson format of the logistics electronic map is obtained, the customized business areas of the logistics company are formed based on the national administrative regions, and the map latitude and longitude of each customized business area of ​​the logistics company is obtained based on the map latitude and longitude of each national administrative region. For example, the customized Sichuan business area is formed by merging Sichuan Province and Tibet Autonomous Region in the national administrative region; the customized Guangzhou business area is formed by merging Guangzhou City, Qingyuan City, and Shaoguan City.

[0029] In one embodiment, the entire electronic map is defined as a basic map container. The map engine of the basic map container loads the Geojson format data of the custom business area for map rendering and displays the fence of the custom business area. At the same time, the mouse movement event in the basic map container is monitored. The mouse movement event will trigger the corresponding event function, thereby obtaining the corresponding mouse latitude and longitude coordinates of the mouse in the basic map container.

[0030] S200, determining a plurality of logistics business areas with boundaries based on a preset geographic data format and the longitude and latitude of a map of each preset area.

[0031] In one embodiment, based on a preset geographic data format and the map longitude and latitude of each preset area, multiple logistics business areas with boundaries are determined, which is conducive to accurately determining a customized logistics business area on an electronic map.

[0032] In the application, based on the fence data in Geojson format of the national electronic map and combined with the needs of logistics companies, more than 40 logistics business areas were customized. The scope of each logistics business area is very different from the administrative division of the country. For example, since the customized Guangzhou logistics business area is formed by the merger of Guangzhou, Qingyuan and Shaoguan, the administrative division has two boundaries, which is not convenient for displaying the Guangzhou logistics business area and related business information.

[0033] In one embodiment, based on a preset geographic data format and the longitude and latitude of a map of each preset area, multiple logistics business areas with boundaries are determined, including: based on the preset geographic data format and the longitude and latitude of a map of each preset area, each logistics business area with only one boundary is determined by a region tree method, thereby avoiding the existence of multiple boundaries in each logistics business area, facilitating the statistics of various data in each logistics business area, and improving the accuracy of each logistics business area on the electronic map.

[0034] In one embodiment, based on the preset geographic data format and the map longitude and latitude of each preset area, the Guangzhou logistics business area with only one boundary is determined through the regional tree method. This eliminates the two internal boundaries of the administrative area and only retains the boundary between the Guangzhou logistics business area and other logistics business areas, which is conducive to the display of the Guangzhou logistics business area and related business information, as well as the operation of the Guangzhou logistics business area.

[0035] In one embodiment, the region tree is an R-tree (Region Tree), and based on the preset geographic data format and the longitude and latitude of the map of each preset region, each logistics business area with only one boundary is determined by the region tree method, including: based on the preset geographic data format and the longitude and latitude of the map of each preset region, the longitude and latitude of the boundary of the logistics business area is determined to form a boundary set; all boundaries in the boundary set are traversed, and the longitude and latitude of any two boundaries are judged by the R-tree method whether there is overlap in longitude and latitude; if there is overlap in longitude and latitude of the two boundaries, the two boundaries are combined into a composite boundary; after the composite boundary is formed, the two boundaries before the combination are deleted, and the composite boundary is added to the boundary set, and the above steps are repeated until each logistics business area with only one boundary in the boundary set. It can be understood that each logistics business area with only one boundary is converted into fence data in a new Geojson format for subsequent calls.

[0036] S300, determining a set of logistics display areas based on each logistics business area, the longitude and latitude of the map corresponding to each logistics business area, and a preset area condition.

[0037] In one embodiment, a logistics display area set is determined based on each logistics business area, the map longitude and latitude corresponding to each logistics business area, and a preset area condition. The logistics display area set is a set of magnifying glass display areas, which is conducive to magnifying and displaying logistics business areas that are not convenient to display, thereby improving the user experience.

[0038] In one embodiment, based on each logistics business area, the longitude and latitude of the map corresponding to each logistics business area, and a preset area condition, a logistics display area set is determined, including:

[0039] Based on each logistics business area, the map longitude and latitude corresponding to each logistics business area and the preset area conditions, the logistics display area set is determined through the bounding box tree structure.

[0040] In one embodiment, based on each logistics business area, the map longitude and latitude corresponding to each logistics business area, and the preset area conditions, a set of logistics display areas is determined through a bounding box tree structure, which improves the division and query efficiency of the logistics display areas and improves the user experience.

[0041] In one embodiment, Figure 2 As shown, based on each logistics business area, the map longitude and latitude corresponding to each logistics business area, and the preset area conditions, the logistics display area set is determined through a bounding box tree structure, including:

[0042] S310: If the area of ​​one or more adjacent logistics business areas meets a preset area condition, set the one or more adjacent logistics business areas as logistics display areas.

[0043] In one embodiment, if the area of ​​a logistics business zone meets the preset area condition, or if the sum of the area areas of multiple adjacent logistics business zones meets the preset area condition, setting a logistics business zone or multiple adjacent logistics business zones as a logistics display area is beneficial to reducing the amount of calculation and improving the response speed of the electronic map.

[0044] In one embodiment, the preset area condition is that the area of ​​a logistics business area or the sum of the areas of multiple adjacent logistics business areas is less than or equal to 5% of the area of ​​the electronic map, which facilitates the definition of the logistics display area, improves the response speed of the electronic map, and improves the user experience.

[0045] S320: Determine a rectangular boundary box corresponding to any logistics display area based on each logistics display area and the longitude and latitude of the map corresponding to each logistics display area.

[0046] In one embodiment, based on each logistics display area and the map longitude and latitude corresponding to each logistics display area, a rectangle inscribed in the logistics display area is formed according to the maximum map longitude and latitude and the minimum map longitude and latitude of the logistics display area, thereby determining the rectangular bounding box corresponding to any logistics display area.

[0047] S330: Form leaf nodes of a bounding box tree based on the rectangular bounding box corresponding to any logistics display area.

[0048] S340, forming a bounding box tree structure based on the rectangular bounding boxes of the leaf nodes of each layer, and the bounding box tree structure is a corresponding logistics display area set.

[0049] In one embodiment, the rectangular bounding boxes corresponding to the adjacent leaf nodes of each layer are merged into the leaf nodes of the previous layer until all the rectangular bounding boxes are merged into an overall rectangular bounding box, and the largest rectangular bounding box is the root node of the bounding box tree, so the rectangular bounding boxes of the leaf nodes of each layer form a bounding box tree structure. Since the bounding box tree structure includes all the logistics display areas, that is, the bounding box tree structure is a corresponding set of logistics display areas, it is convenient to search for logistics display areas in the bounding box tree structure, improve the response speed of electronic map reading, and improve the user experience.

[0050] S400: If the longitude and latitude of the map of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is enlarged, and the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is displayed.

[0051] In one embodiment, if the map longitude and latitude of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is enlarged, and the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is displayed. This is conducive to enlarging the logistics business area with a small area, facilitating user display and operation, improving the user experience, and also facilitating the logistics company to handle related business and improve logistics efficiency.

[0052] In one embodiment, a logistics display area corresponding to the longitude and latitude coordinates moved by the mouse is enlarged, and a magnifying glass container is defined. The magnifying glass container is a container rendered in the basic map container using absolute positioning (Position: absolute) in Cascading Style Sheets (CSS), wherein the Cascading Style Sheets are used to render the style of the label on the enlarged page; the initial value of the transparency (Opacity) in the Cascading Style Sheets properties of the magnifying glass container is set to 0 (i.e., completely opaque); the trigger point events (Pointer-events) in the Cascading Style Sheets properties of the magnifying glass container are set to none, which does not affect the interaction between the user and the basic map container (i.e., the electronic map), wherein Pointer-events is a pointer attribute, which is used to control whether a specific graphic element can become the target of the pointer event under preset conditions; the Z-axis level of the magnifying glass container is greater than the basic map container level, for example, the Z-axis level of the magnifying glass container is set to the basic map container level plus 1.

[0053] In one embodiment, if the map longitude and latitude of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, that is, the mouse movement event has been triggered, the longitude and latitude corresponding to the longitude and latitude coordinates of the mouse movement are in the map longitude and longitude of the logistics display area set.

[0054] In one embodiment, Figure 3As shown, if the map latitude and longitude of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is enlarged, and the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is displayed, including:

[0055] S410: If the map longitude and latitude of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, vector slices are performed on the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement through a quadtree structure according to a preset magnification ratio.

[0056] In one embodiment, if the map longitude and latitude of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is vector sliced ​​through a quadtree structure according to a preset magnification ratio, thereby improving the efficiency of finding the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement, improving the response speed of the electronic map, and improving the user experience.

[0057] In one embodiment, Figure 4 As shown, if the map latitude and longitude of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, vector slicing of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is performed through a quadtree structure according to a preset magnification ratio, including:

[0058] S411, based on the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement and the preset magnification ratio, determine the package rectangle of the logistics display area after the package is magnified as the root node of the quadtree.

[0059] In one embodiment, based on the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement, the maximum longitude and latitude and the minimum longitude and latitude of the logistics display area are determined; the maximum longitude and latitude and the minimum longitude and latitude form a package rectangle of the logistics display area; the package rectangle is enlarged based on a preset magnification ratio to determine the enlarged package rectangle, and the package rectangle of the logistics display area after the package is enlarged is determined as the root node of the quadtree.

[0060] S412: Recursively divide the map area corresponding to the wrapping rectangle into four child nodes layer by layer until the area of ​​the map area corresponding to any child node is less than or equal to the map area threshold.

[0061] In one embodiment, the map area corresponding to the enclosing rectangle is recursively divided into 4 child nodes layer by layer, that is, the map area corresponding to the enclosing rectangle of the root node is divided into 4 sub-map areas, 1 sub-map area corresponds to 1 child node, and then the sub-map area corresponding to each child node of the first layer is further divided into 4 grandchild map areas, until the area of ​​the map area corresponding to any child node is less than or equal to the map area threshold.

[0062] In one embodiment, one map area is divided into four sub-map areas, specifically by obtaining the coordinates of the center point of the map area in the horizontal and vertical directions, and extending the map area in the horizontal and vertical directions with the center point coordinates as the center, so as to divide the enclosing rectangle corresponding to the map area into four sub-enclosing rectangles of equal area, and each sub-enclosing rectangle corresponds to one subnode.

[0063] In one embodiment, the map area threshold is 20% of the electronic map area before zooming in, or the map area threshold is 5% of the electronic map area after zooming in, which is conducive to dividing the area of ​​the map area corresponding to any child node according to the electronic map, avoiding the map area of ​​each child node being too large, resulting in incomplete information, and improving the display accuracy of the electronic map.

[0064] S413: Encapsulate the code and boundary coordinates of the wrapping rectangle corresponding to any child node into a rectangle object.

[0065] In one embodiment, the package rectangle corresponding to any child node has a unique code, and the code and boundary coordinates of the package rectangle corresponding to any child node are encapsulated as a rectangular object, so as to facilitate accurate and rapid identification of the child node corresponding to the code, the package rectangle corresponding to the child node, and the logistics display area corresponding to the package rectangle.

[0066] S414, forming a quadtree structure based on the rectangular objects of each layer.

[0067] S420, based on the result of the vector slice and the preset magnification ratio, the logistics display area corresponding to the longitude and latitude coordinates where the mouse is moved is magnified, and the business information of the logistics display area corresponding to the longitude and latitude coordinates where the mouse is moved is displayed.

[0068] In one embodiment, the preset zoom ratio ranges from 2 to 4, which is helpful to limit the magnification ratio of the magnifying glass within a reasonable range of the electronic map, avoiding incomplete information display due to excessive zoom ratio, or unclear displayed information due to excessive zoom ratio, thereby improving the user experience.

[0069] In one embodiment, the business information includes the name, revenue, achievement rate, customer complaint rate and corresponding trend indicators of the logistics display area.

[0070] In one embodiment, Figure 5 As shown, the Ningbo Logistics Exhibition Area is enlarged and the business information of the Ningbo Logistics Exhibition Area is displayed.

[0071] S500, based on the logistics display area set and the moving path formed by a plurality of mouse movement longitude and latitude coordinates, control the electronic map to load the logistics display area and the preset surrounding area corresponding to the moving path according to the preset settings.

[0072] In one embodiment, based on a set of logistics display areas and a moving path formed by multiple mouse movement longitude and latitude coordinates, the electronic map is controlled to load the logistics display area and the preset surrounding area corresponding to the moving path according to preset settings, which is conducive to enlarging and displaying the loaded logistics display area and the preset surrounding area along the moving path formed by the mouse movement.

[0073] In one embodiment, the preset settings include preset magnification transparency attribute settings, preset coordinate conversion settings, and preset display content loading settings.

[0074] In one embodiment, Figure 6 As shown, based on the logistics display area set and the moving path formed by multiple mouse movement longitude and latitude coordinates, the electronic map is controlled to load the logistics display area and the preset surrounding area corresponding to the moving path according to the preset settings, including:

[0075] S510, based on the logistics display area set and the moving path formed by multiple mouse movement longitude and latitude coordinates, determine the logistics display area and the preset surrounding area corresponding to the moving path, wherein the preset surrounding area is the surrounding area outside the logistics display area from the mouse movement longitude and latitude coordinates to the preset field of view radius.

[0076] In one embodiment, the area formed by moving the mouse from the longitude and latitude coordinates to the preset field of view radius is less than or equal to 15% of the area of ​​the electronic map, thereby preventing the logistics display area of ​​the magnifying glass from being too large, causing the preset surrounding area to also become larger, reducing the sense of inappropriate proportion between the magnifying glass area and the electronic map, and improving the user experience.

[0077] S520, based on the logistics display area and the preset surrounding area corresponding to the moving path, control the electronic map to load the logistics display area and the preset surrounding area corresponding to the moving path according to the preset magnification transparency attribute setting, the preset coordinate conversion setting, and the preset display content setting.

[0078] In one embodiment, the preset magnification transparency attribute is set to:

[0079] If the longitude and latitude coordinates of the mouse are not within the longitude and latitude of the map in the logistics display area, set the transparency (Opacity) in the cascading style sheet properties of the magnifying glass container to 0 (i.e. completely opaque);

[0080] If the longitude and latitude coordinates of the mouse are within the longitude and latitude coordinates of the map in the logistics display area, the transparency (Opacity) in the cascading style sheet properties of the magnifying glass container is set to 1 (ie, completely transparent).

[0081] In one embodiment, the preset coordinate conversion is set to convert the longitude and latitude coordinates of the mouse movement into absolute coordinates of the electronic map, where the absolute coordinates are the coordinates of the electronic map in a coordinate system formed by a horizontal coordinate axis x and a vertical coordinate axis y in a display device.

[0082] In one embodiment, the preset display content is set to determine the logistics display area and the preset surrounding area corresponding to the moving path, and the logistics display area and the preset surrounding area corresponding to the moving path are displayed according to a preset magnification ratio.

[0083] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0084] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0085] The present application obtains a preset geographic data format of an electronic map, the map longitudes and latitudes of each preset area, and the longitudes and latitudes of the mouse movement; determines a plurality of logistics business areas with boundaries based on the preset geographic data format and the map longitudes and latitudes of each preset area; determines a set of logistics display areas based on each logistics business area, the map longitudes and latitudes corresponding to each logistics business area, and preset area conditions; if the map longitudes and latitudes of the logistics display area set include the longitudes and latitudes of the mouse movement coordinates, zooms in on the logistics display area corresponding to the longitudes and latitudes of the mouse movement coordinates, and displays business information of the logistics display area corresponding to the longitudes and latitudes of the mouse movement coordinates; based on the logistics display area set and a moving path formed by a plurality of longitudes and latitudes of the mouse movement coordinates, controls the electronic map to load the logistics display area and the preset surrounding area corresponding to the moving path according to preset settings; since the logistics business area that meets the preset area requirements is set to be able to be zoomed in and displayed following the longitudes and latitudes of the mouse movement, and the logistics display area and the preset surrounding area corresponding to the mouse moving path can be loaded according to the preset settings, the user experience of viewing and operating electronic maps in the logistics field is greatly improved, and the logistics efficiency of the logistics industry is also improved.

[0086] Corresponding to the electronic map control method described in the above embodiment, Figure 7 A structural block diagram of an electronic map control device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0087] Second, as Figure 7 As shown, this embodiment provides a control device 100 for an electronic map, including:

[0088] The acquisition module 110 is used to acquire the preset geographic data format of the electronic map, the map longitude and latitude coordinates of each preset area, and the longitude and latitude coordinates of the mouse movement;

[0089] A first determination module 120, configured to determine a plurality of logistics business areas having boundaries based on the preset geographic data format and the longitude and latitude of the map of each of the preset areas;

[0090] A second determination module 130 is used to determine a set of logistics display areas based on each of the logistics business areas and the longitude and latitude of the map corresponding to each of the logistics business areas, where the logistics display areas are the logistics business areas;

[0091] The enlarged display module 140 is used to enlarge the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement if the longitude and latitude of the map of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, and display the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement;

[0092] The control module 150 is used to control the electronic map to load the logistics display area and the preset surrounding area corresponding to the moving path according to the preset settings based on the logistics display area set and the moving path formed by the multiple mouse movement longitude and latitude coordinates.

[0093] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0094] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0095] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements a method as described in any one of the contents of the first aspect above.

[0096] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method as described in any one of the contents of the first aspect above is implemented.

[0097] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, enables the terminal device to execute any of the methods described in the first aspect above.

[0098] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0099] The electronic map control method provided in the embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.

[0100] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiments when executed by a processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.

[0101] The computer-readable medium may include at least: any entity or device capable of carrying computer program codes to a camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disk. In some jurisdictions, according to legislation and patent practice, a computer-readable medium cannot be an electric carrier signal or a telecommunication signal.

[0102] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0103] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0104] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0105] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0106] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for controlling an electronic map, characterized in that: include: Obtaining the preset geographic data format of the electronic map, the map longitude and latitude coordinates of each preset area, and the longitude and latitude coordinates of the mouse movement; Determining a plurality of logistics business areas with boundaries based on the preset geographic data format and the longitude and latitude of the map of each of the preset areas; Determine a set of logistics display areas based on each of the logistics business areas, the longitude and latitude of the map corresponding to each of the logistics business areas, and a preset area condition; If the longitude and latitude of the map of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is enlarged, and the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is displayed; Based on the logistics display area set and the moving path formed by the multiple mouse movement longitude and latitude coordinates, the electronic map is controlled to load the logistics display area and the preset surrounding area corresponding to the moving path according to the preset settings.

2. The method according to claim 1, characterized in that The determining of a plurality of logistics business areas with boundaries based on the preset geographic data format and the longitude and latitude of the map of each preset area includes: Based on the preset geographic data format and the map longitude and latitude of each preset area, each logistics business area with only one boundary is determined by a region tree method.

3. The method according to claim 1, characterized in that The determining of the logistics display area set based on each of the logistics business areas, the longitude and latitude of the map corresponding to each of the logistics business areas, and a preset area condition includes: Based on each of the logistics business areas, the map longitude and latitude corresponding to each of the logistics business areas, and a preset area condition, a set of logistics display areas is determined through a bounding box tree structure.

4. The method according to claim 3, characterized in that The determining of the logistics display area set through a bounding box tree structure based on each of the logistics business areas, the longitude and latitude of the map corresponding to each of the logistics business areas, and a preset area condition includes: If the area of ​​one or more adjacent logistics business areas meets the preset area condition, setting one or more adjacent logistics business areas as the logistics display area; Determine a rectangular bounding box corresponding to any of the logistics display areas based on the logistics display areas and the longitude and latitude of the map corresponding to the logistics display areas; Forming leaf nodes of a bounding box tree based on a rectangular bounding box corresponding to any of the logistics display areas; The rectangular bounding boxes of the leaf nodes of each layer form a bounding box tree structure, and the bounding box tree structure is the corresponding set of logistics display areas.

5. The method according to claim 1, characterized in that If the longitude and latitude of the map of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, zooming in on the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement, and displaying the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement, comprises: If the longitude and latitude of the map of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, vector slicing is performed on the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement through a quadtree structure according to a preset magnification ratio; Based on the result of the vector slicing and the preset magnification ratio, the logistics display area corresponding to the longitude and latitude coordinates where the mouse is moved is magnified, and the business information of the logistics display area corresponding to the longitude and latitude coordinates where the mouse is moved is displayed.

6. The method according to claim 5, characterized in that If the longitude and latitude of the map of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, vector slicing the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement is performed through a quadtree structure according to a preset magnification ratio, including: Based on the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement and the preset magnification ratio, determining the package rectangle of the logistics display area after the package is magnified as the root node of the quadtree; Recursively dividing the map area corresponding to the wrapping rectangle into 4 child nodes layer by layer until the area of ​​the map area corresponding to any of the child nodes is less than or equal to the map area threshold; Encapsulate the code and boundary coordinates of the wrapping rectangle corresponding to any of the child nodes into a rectangle object; A quadtree structure is formed based on the rectangular objects of each layer.

7. The method according to claim 1, characterized in that The preset settings include preset magnification transparency attribute settings, preset coordinate conversion settings, and preset display content loading settings; The method of controlling the electronic map to load the logistics display area and the preset surrounding area corresponding to the moving path according to the preset settings based on the logistics display area set and the moving path formed by the plurality of mouse moving longitude and latitude coordinates includes: Based on the logistics display area set and the moving path formed by the plurality of mouse movement longitude and latitude coordinates, determine the logistics display area and the preset surrounding area corresponding to the moving path, wherein the preset surrounding area is the surrounding area outside the logistics display area from the mouse movement longitude and latitude coordinates to the preset field of view radius; Based on the logistics display area and the preset surrounding area corresponding to the moving path, the electronic map is controlled to load the logistics display area and the preset surrounding area corresponding to the moving path according to the preset magnification transparency attribute setting, the preset coordinate conversion setting, and the preset display content setting.

8. A control device for an electronic map, characterized in that: include: An acquisition module, used to acquire a preset geographic data format of an electronic map, the map longitude and latitude coordinates of each preset area, and the longitude and latitude coordinates of the mouse movement; A first determination module, configured to determine a plurality of logistics business areas having boundaries based on the preset geographic data format and the longitude and latitude of the map of each of the preset areas; A second determination module is used to determine a set of logistics display areas based on each of the logistics business areas, the longitude and latitude of the map corresponding to each of the logistics business areas, and a preset area condition; A magnifying display module, for magnifying the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement if the longitude and latitude of the map of the logistics display area set includes the longitude and latitude coordinates of the mouse movement, and displaying the business information of the logistics display area corresponding to the longitude and latitude coordinates of the mouse movement; The control module is used to control the electronic map to load the logistics display area and the preset surrounding area corresponding to the moving path according to the preset settings based on the logistics display area set and the moving path formed by the multiple mouse movement longitude and latitude coordinates.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Real time roaming and scaling method of vector map in mobile navigation equipment

    CN101435708A

  • Geographical location display method and apparatus

    CN105005457A

  • Method and apparatus of displaying data on map, medium, and computing device

    CN107393410A

  • Systems, methods, and non-transitory computer-readable mediums that provide for partitioning of an original geographic area into multiple geographic seed areas as part of balancing a business-related workload

    US20150242788A1