Electronic map display method and device, and electronic equipment

By adjusting the dive angle of the sky camera so that the horizon of the electronic map is on the same plane as the equator, the problem of low matching between the three-dimensional electronic map and the sky pattern is solved, and a more three-dimensional and effective electronic map display is achieved.

CN114663615BActive Publication Date: 2025-08-08ALIBABA (CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210334179.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2025-08-08
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

In the prior art, the matching degree of the three-dimensional electronic map and the sky pattern is not high, resulting in poor user experience.

Method used

By determining the angle of the descent angle of the sky camera, the horizon of the electronic map is on the same plane as the equator, and the electronic map and three-dimensional sky objects are displayed in combination with the perspective of the map camera.

Benefits of technology

The matching degree between electronic maps and sky patterns is improved, achieving a more three-dimensional and effective electronic map display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114663615B_ABST
    Figure CN114663615B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention provide an electronic map display method and apparatus, as well as an electronic device. The image processing method includes: determining an electronic map to be displayed in response to a map display request; determining a rotation angle of a sky camera's depression angle based on the map camera's viewing angle; correcting the sky camera's depression angle according to the rotation angle; and displaying the electronic map and a three-dimensional sky object based on the map camera's viewing angle and the corrected sky camera depression angle. Embodiments of the present invention improve the matching between the electronic map and the sky pattern display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of map rendering technology, and in particular to an electronic map display method and device, and electronic equipment. Background Art

[0002] An electronic map is a map that is stored and accessed in digital form using computer technology. It is usually used in applications that need to provide services based on electronic maps. Such applications usually include map navigation applications, online car-hailing applications, life service applications, etc.

[0003] Taking a map navigation application as an example, when a user is using the application, the application will render an electronic map that matches the user's function. For example, a user can use the navigation function of the map navigation application to plan a navigation route from a starting location to a destination and follow the navigation guidance prompts provided by the application. During the navigation process, existing map navigation applications provide two types of navigation guidance: one is voice guidance, such as prompting the user to go straight, turn left, turn right, etc.; the other is graphic guidance, that is, the navigation route and corresponding navigation guidance actions are rendered on the electronic map.

[0004] To enhance the realism of rendered electronic maps, both for navigation and map browsing, existing technologies can render electronic maps in three dimensions. The inventors discovered that existing technologies for rendering three-dimensional electronic maps require rendering both the real-world roads and buildings depicted on the electronic map and the sky. However, existing technologies typically use static images for the sky, resulting in a poor match between the rendered three-dimensional electronic map and the sky, leading to a poor user experience. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide an electronic map display method and apparatus, and an electronic device to solve the technical problem in the prior art that when an electronic device displays a three-dimensional electronic map, the electronic map and the sky pattern do not match well.

[0006] In a first aspect, an embodiment of the present invention provides an electronic map display method, comprising:

[0007] In response to a map display request, determining an electronic map to be displayed;

[0008] Based on the perspective of the map camera, determine the rotation angle of the sky camera's depression angle;

[0009] performing an angle correction on the depression angle of the sky camera according to the rotation angle so that the horizon of the electronic map and the equator are in the same plane;

[0010] The electronic map and the three-dimensional sky object are displayed based on the viewing angle of the map camera and the corrected depression angle of the sky camera.

[0011] In a second aspect, an embodiment of the present invention provides an electronic map display device, comprising:

[0012] a request detection module, configured to determine an electronic map to be displayed in response to a map display request;

[0013] Angle determination module, used to determine the rotation angle of the sky camera's pitch angle based on the perspective of the map camera;

[0014] an object correction module, configured to correct the depression angle of the sky camera according to the rotation angle so that the horizon of the electronic map and the equator are located in the same plane;

[0015] A map display module is used to display the electronic map and the three-dimensional sky object based on the viewing angle of the map camera and the corrected depression angle of the sky camera.

[0016] In a third aspect, an embodiment of the present invention provides an electronic device comprising: a storage component and a processing component; the storage component is used to store one or more computer instructions; the one or more computer instructions are called by the processing component to execute the electronic map display method described in the first aspect above.

[0017] In a fourth aspect, an embodiment of the present invention provides a computer storage medium storing a computer program, wherein the computer program, when executed by a computer, implements the electronic map display method described in the first aspect.

[0018] In an embodiment of the present invention, in response to a map display request, an electronic map to be displayed can be determined. Based on the viewpoint of the map camera, a rotation angle of the sky camera's depression angle is determined, and the sky camera's depression angle is corrected according to the rotation angle to align the electronic map's horizon with the equator. Subsequently, based on the viewpoint of the map camera and the corrected depression angle of the sky camera, the electronic map and sky objects can be displayed. By correcting the depression angle of the sky camera so that the electronic map's horizon and the equator are aligned, the electronic map and sky objects can be displayed in a more three-dimensional and effective manner, thereby improving the matching between the electronic map display and the sky pattern display. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 A flowchart of an embodiment of an electronic map display method provided by an embodiment of the present invention;

[0021] Figure 2 A flowchart of another embodiment of an electronic map display method provided by an embodiment of the present invention;

[0022] Figure 3 An example diagram of a sky sphere provided by an embodiment of the present invention;

[0023] Figure 4 Another example diagram of a sky sphere provided by an embodiment of the present invention;

[0024] Figure 5 A flowchart of another embodiment of an electronic map display method provided by an embodiment of the present invention;

[0025] Figure 6 An example diagram of an electronic map display provided by an embodiment of the present invention;

[0026] Figure 7 A schematic structural diagram of an embodiment of an electronic map display device provided by an embodiment of the present invention;

[0027] Figure 8 A schematic structural diagram of another embodiment of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0029] The terms used in the embodiments of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The singular forms "a," "the," and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise. "A plurality" generally includes at least two, but does not exclude the inclusion of at least one.

[0030] It should be understood that the term "and / or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0031] As used herein, the words “if” and “if” may be interpreted as “at the time of” or “when” or “in response to determining” or “in response to identifying,” depending on the context. Similarly, the phrases “if it is determined” or “if (stated condition or event) is identified” may be interpreted as “when it is determined” or “in response to determining” or “when identifying (stated condition or event)” or “in response to identifying (stated condition or event),” depending on the context.

[0032] It should also be noted that the terms "include," "comprises," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a product or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such product or system. In the absence of further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the product or system comprising the element.

[0033] The technical solution of the embodiment of the present invention can be applied to the display scenario of electronic maps. By constructing a sky ball or sky box for users who need to display electronic maps, a three-dimensional ground-sky display can be performed, and accurate display of the electronic map and the sky can be achieved, achieving a high matching display of the electronic map and the sky.

[0034] To facilitate understanding of the technical solutions of the present invention, the following technical terms that may appear in the embodiments of the present invention are first explained:

[0035] Map Angle of View: The angle between the map camera's line of sight and the ground (horizontal plane). When the Angle of View is 90 degrees, the camera is looking directly at the ground, and the displayed map is two-dimensional, that is, a flat map. When the Angle of View is less than 90 degrees, the displayed map is three-dimensional, that is, a stereo or 3D map.

[0036] Sky Sphere: A general-purpose rendering engine that uses a technical solution to display a panoramic sky. The Sky Sphere uses a large sphere with a sky image to wrap around a virtual camera set on the sky sphere, which simulates the human eye's line of sight.

[0037] Skybox: An engine that uses a centrally symmetrical polyhedron, such as a six-sided cube, to render the sky. The sky image is rendered according to the texture direction of the sky image, and can replace the sky sphere for three-dimensional sky display.

[0038] To enhance the display quality, electronic maps can be displayed in a three-dimensional format. When displaying a three-dimensional electronic map, the electronic map can be displayed by simulating a horizontal map plane, with a sky image displayed above the horizontal map plane, allowing the user to view the electronic map in three dimensions. In practical applications, the sky image is often one or more static images. However, while viewing an electronic map, the user may be in motion or change the display scale of the electronic map. If the actual map changes while the sky image remains unchanged, the actual map and sky image may display poorly, resulting in a poor display quality.

[0039] In an embodiment of the present invention, in response to a map display request, the electronic map to be displayed can be determined, and the rotation angle of the sky camera's depression angle can be determined based on the map camera's viewing angle. The sky camera's depression angle can then be corrected according to the rotation angle to align the electronic map's horizon with the equator. By correcting the sky camera's depression angle, the three-dimensional sky object is aligned with the map camera's viewing angle, achieving a more three-dimensional and effective electronic map display and improving the matching between the electronic map display and the sky pattern display.

[0040] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0041] like Figure 1 FIG. 1 is a flow chart of an embodiment of a method for displaying an electronic map according to an embodiment of the present invention. The method may include the following steps:

[0042] 101: In response to a map display request, determine an electronic map to be displayed.

[0043] Optionally, the electronic map display method provided in the embodiment of the present invention can be applied to an electronic device, or to a server corresponding to the electronic device. The electronic device may include, for example: a vehicle-mounted navigation device, a mobile phone, a tablet computer, a notebook, a wearable device, or a speaker with a display screen, etc. The embodiment of the present invention does not impose too many restrictions on the specific type of the electronic device. When the technical solution of the example of the present invention is applied to the server, detecting the map display request triggered by the target user may include: detecting the map display request triggered by the target user sent by the electronic device. When displaying the electronic map for the target user, the electronic map may be sent to the electronic device so that the electronic device can display the electronic map for the target user. The server described in the present invention may be an ordinary server or a cloud server, and the embodiment of the present invention does not impose too many restrictions on the specific type of the server.

[0044] A map display request may be triggered by the user or generated based on changes in the user's location. For example, it may be triggered by the user when the electronic map is first requested to be displayed. It may also be generated based on changes in the user's location during the use of the electronic map. For example, a map display request may be generated in real time based on changes in the user's location during navigation using the electronic map. The electronic map to be displayed may be electronic map data determined based on the user's location or area. In actual applications, the electronic map exists in the form of map grid data. When determining the electronic map to be displayed, the map area that needs to be displayed for the user can be determined based on the user's location, so that the map grid data corresponding to the map area can be read from the map grid data. All the map grid data in the entire map area can constitute the electronic map to be displayed.

[0045] 102: Based on the viewing angle of the map camera, determine the rotation angle of the sky camera's depression angle.

[0046] Optionally, the rotation angle of the sky camera's pitch angle may be determined according to the pitch angle of the map camera.

[0047] In the embodiment of the present invention, the map camera is a camera used to render an electronic map, and the sky camera is a camera used to display a three-dimensional sky object.

[0048] The three-dimensional sky object may be a sky sphere or a sky box. The sky box may be a sky rendering engine in the shape of a centrosymmetrical cube, polyhedron, etc. The embodiment of the present invention does not impose too many restrictions on the specific shape of the sky box.

[0049] Stereo sky objects are available pre-built and stored as object files.

[0050] 103: Correct the pitch angle of the sky camera according to the rotation angle so that the horizon of the electronic map is in the same plane as the equator.

[0051] Correct the sky camera's depression angle according to the rotation angle so that the sky camera's depression angle better matches the map camera's viewing angle.

[0052] The horizon is obtained by cutting on the horizontal plane of the map, and the equator refers to the equator of the three-dimensional sky object.

[0053] 104: Displaying an electronic map and a 3D sky object based on the view angle of the map camera and the corrected pitch angle of the sky camera.

[0054] By displaying a three-dimensional sky object, the purpose of displaying a sky pattern in an electronic map can be achieved.

[0055] In an embodiment of the present invention, in response to a map display request, the electronic map to be displayed can be determined, and the rotation angle of the sky camera's depression angle can be determined based on the map camera's viewing angle. The sky camera's depression angle can then be corrected based on the rotation angle to align the electronic map's horizon with the equator. By correcting the sky camera's depression angle, the electronic map is displayed within the corrected 3D sky object, achieving a more 3D and effective electronic map display and improving the matching between the electronic map display and the sky pattern display.

[0056] like Figure 2 FIG. 1 is a flowchart of another embodiment of a map display method provided in an embodiment of the present invention. The method may include the following steps:

[0057] 201: In response to a map display request, determine an electronic map to be displayed.

[0058] It should be noted that some steps in the embodiment of the present invention are similar to Figure 1 Some steps in the illustrated embodiments are the same and will not be repeated here for the sake of brevity.

[0059] 202: Based on the perspective of the map camera, determine the rotation angle of the sky camera's depression angle.

[0060] 203: Correct the pitch angle of the sky camera according to the rotation angle so that the horizon of the electronic map is in the same plane as the equator.

[0061] 204: Displaying the electronic map on the map horizontal plane based on the viewing angle of the map camera.

[0062] The map plane is used to render electronic maps. There's a certain distance between the map camera and the map plane. When the map's top-down angle is small, the distance between the map camera and the map plane is small. In this case, the map plane can display electronic maps farther from the target user. When the map's top-down angle is large, the distance between the map camera and the map plane is large, and the map plane can display electronic maps closer to the target user.

[0063] 205: Displaying a sky texture image of a stereo sky object above the map horizontal plane based on a modified positive pitch angle of the sky camera.

[0064] When rendering, place the map camera at the center of the 3D sky object and the map horizontal plane below the map camera, so that the electronic map can be displayed on the map horizontal plane.

[0065] Displaying the electronic map on the map horizontal plane based on the viewpoint of the map camera may include determining a display area of the electronic map based on the viewpoint of the map camera, acquiring map data from the display area, and rendering the map data on the map horizontal plane. Subsequently, based on the corrected pitch angle of the sky camera, a sky texture image of a three-dimensional sky object may be displayed above the map horizontal plane.

[0066] In an embodiment of the present invention, in response to a map display request, an electronic map to be displayed can be determined. Based on the viewing angle of the target map camera, a rotation angle of the sky camera's depression angle is determined, and the sky camera's angle is corrected according to the rotation angle. Subsequently, based on the viewing angle of the map camera, the electronic map can be displayed on the map horizontal plane, and based on the corrected depression angle of the sky camera, a sky texture image of a stereoscopic sky image can be displayed above the map horizontal plane. By displaying the electronic map on the map horizontal plane and the sky texture image of the stereoscopic sky object above the map horizontal plane based on the viewing angle of the map camera, the electronic map and the stereoscopic sky image can be rendered in association, enabling linked display of the electronic map and the stereoscopic sky object, thereby improving the display effectiveness of the electronic map and the stereoscopic sky object.

[0067] As yet another embodiment, the method may further include:

[0068] Based on the ground-to-air display ratio of the display screen, the boundary line between the map horizontal plane and the three-dimensional sky object is determined.

[0069] The electronic map and sky texture image to be displayed are determined according to the boundary line and the map horizontal plane.

[0070] The boundary line also serves as the horizon of the electronic map.

[0071] Optionally, displaying the electronic map on a map horizontal plane based on a viewing angle of a map camera may include: displaying the electronic map below a boundary line in a display screen based on a viewing angle of the map camera;

[0072] Displaying the sky texture image of the three-dimensional sky object above the map horizontal plane based on the corrected depression angle of the sky camera may include: displaying the sky texture image above the boundary line in the display screen based on the corrected depression angle of the sky camera.

[0073] The ground-to-sky display ratio may be the ratio of the electronic map displayed on the display screen to the sky texture image displayed.

[0074] As a possible implementation, based on the ground-to-air display ratio of the display screen, determining the boundary between the map horizontal plane and the three-dimensional sky object may include:

[0075] According to the ground-to-air display ratio of the display screen, a screen boundary line between the electronic map and the three-dimensional sky object on the display screen is determined.

[0076] The screen boundary line is mapped into the 3D sky object to obtain the boundary line between the map horizontal plane and the 3D sky object.

[0077] Optionally, the ground-to-sky display ratio of the display screen may be a ratio of a horizontal plane of an electronic map to a three-dimensional sky object on the display screen. Determining the screen boundary of the display screen may include determining a screen coordinate system of the display screen. Based on the screen coordinate system of the display screen, a screen matrix of the display screen in the screen coordinate system is determined. The screen boundary of the display screen is determined using the screen matrix and the ground-to-sky display ratio.

[0078] Mapping the screen boundary line into the 3D sky object to obtain the boundary line between the map horizontal plane and the 3D sky object may include: mapping the plane boundary line in the screen coordinate system into the coordinate system of the 3D sky object to obtain the boundary line between the map horizontal plane and the 3D sky object.

[0079] In practical applications, the boundary line between the map horizontal plane and the 3D sky object can be a line segment obtained by mapping the screen boundary line to the 3D sky object. The ground-to-sky display ratio can be determined according to display requirements or historical display ratios, or can also be specified by the user.

[0080] To obtain an accurate rotation angle, in some embodiments, determining the rotation angle of the stereoscopic sky object based on the viewing angle information of the target user may include:

[0081] Determine the first plane where the boundary line and the center point of the 3D Sky object lie.

[0082] Calculate the angle between the first plane and the horizontal plane of the map to obtain the rotation angle of the sky camera's depression angle.

[0083] Optionally, the center point of the 3D sky object is the location of the map camera. The first plane can be a plane formed by connecting the boundary line and the center point of the 3D sky object. For ease of understanding, refer to Figure 3 Taking a spherical 3D sky object as an example, the map camera 301 at the center of the spherical sky object can be placed at the sphere's center, the map horizontal plane 302 can be located below the sphere's center, and the intersection line 303 is located on the map horizontal plane. The plane formed by the intersection line 303 and the sphere's center is the first plane 304. The angle 305 between the first plane 304 and the map horizontal plane 302 can be the rotation angle of the 3D sky object.

[0084] In some embodiments, calculating the angle between the first plane and the horizontal plane of the map to obtain the rotation angle of the 3D sky object includes: determining the display scale of the electronic map; determining the distance between the map camera and the horizontal plane of the map based on the scale to obtain a first distance; projecting the center point of the 3D sky object onto the horizontal plane of the map to obtain a projected point; and calculating the distance from the projected point to the intersection line to obtain a second distance; calculating the distance from the center point of the 3D sky object to the intersection line to obtain a third distance; and calculating the angle between the first plane and the horizontal plane of the map based on the first distance, the second distance, and the third distance.

[0085] When the sky camera is actually rotated, the sky camera may be controlled to rotate along the first plane. In a possible design, the angle correction of the sky camera pitch angle according to the rotation angle may include:

[0086] The depression angle of the stereo camera is rotated according to the rotation angle, and the plane where the equator of the stereo sky object is located is controlled to coincide with the first plane, so as to obtain the corrected depression angle of the sky camera.

[0087] By controlling the plane where the equator of the three-dimensional sky object is located to coincide with the first plane, the horizon of the electronic map is made to coincide with the equator, so that the display area of the three-dimensional sky object is parallel to the user's line of sight. The sky viewed by the user changes with the user's line of sight, and the sky display is more effective and more closely matches the user's line of sight.

[0088] by Figure 3 Take the sky ball shown in the figure as an example, after the sky camera rotates, Figure 4 As shown, after the rotation, the first plane 304 coincides with the equatorial plane 306 of the sky sphere.

[0089] When rendering an electronic map, the electronic map and the sky texture image may be rendered separately. As a possible implementation method, based on the corrected pitch angle of the sky camera, displaying the sky texture image of the three-dimensional sky object above the intersection line on the display screen may include:

[0090] Based on the corrected pitch angle of the sky camera, a sky texture image above the equatorial plane in the three-dimensional sky object is rendered above the intersection line in the display screen.

[0091] When displaying an electronic map, both the electronic map on the map plane and the sky texture image above the map plane can be displayed. In practical applications, since the user's line of sight remains above the map plane and the equatorial plane coincides with the first plane, only the sky texture image above the equatorial plane can be rendered to improve rendering efficiency. For a spherical 3D sky object, which can be a sky sphere, half of the sky sphere above the equatorial plane can be rendered.

[0092] As a possible implementation manner, based on the viewing angle of the map camera, displaying the electronic map below the boundary line on the display screen may include:

[0093] Check the display scale of the electronic map.

[0094] According to the scale, the distance between the map camera and the horizontal plane of the map is determined to obtain a first distance.

[0095] According to the first distance and the boundary line, the area position information corresponding to the map display area on the horizontal plane of the map is determined.

[0096] Obtain target map data corresponding to the location area information from the map grid data.

[0097] Rendering target map data in a map horizontal plane to display an electronic map.

[0098] The regional location information may be the area on the horizontal plane of the map where the electronic map is displayed.

[0099] As another possible implementation, based on the viewing angle of the map camera, displaying the electronic map below the boundary line on the display screen may include:

[0100] determining a mapping area where a display screen of the electronic device is mapped to a horizontal plane of the map;

[0101] According to the coordinate position of the mapping area on the map horizontal plane, the area position information corresponding to the map display area on the map horizontal plane is determined.

[0102] Obtain target map data corresponding to the location area information from the map grid data.

[0103] Rendering target map data in a map horizontal plane to display an electronic map.

[0104] In practical applications, the map grid data may be geometric grid data collected by a map collection system or other equipment. When the map data of a map display area needs to be displayed, the electronic map to be displayed in the map display area may be read from a storage device storing the map grid data.

[0105] In some embodiments, detecting the display scale of the electronic map may include detecting the display scale of the electronic map set by the target user. The display scale may be set by the target user. In practical applications, when the electronic map is initially displayed, a default scale may be used.

[0106] In some embodiments, the data evaluation method provided by the embodiment of the present invention can provide an electronic map display service to the outside in the form of an interface. Figure 5FIG. 1 is a flow chart of another embodiment of an electronic map display method provided by an embodiment of the present invention. The method may include the following steps:

[0107] 501: Detecting a call request to an electronic map display interface, and obtaining processing resources corresponding to the electronic map display interface.

[0108] Use the processing resources corresponding to the electronic map display interface to perform the following steps:

[0109] 502: In response to the map display request, determine the electronic map to be displayed.

[0110] 503: Based on the viewing angle of the map camera, determine the rotation angle of the sky camera's depression angle.

[0111] 504: Correct the depression angle of the sky camera according to the rotation angle so that the horizon of the electronic map and the equator are in the same plane.

[0112] 505: Display the electronic map and the three-dimensional sky object based on the viewing angle of the map camera and the corrected depression angle of the sky camera.

[0113] In one possible design, the electronic map display interface can be an application program interface for providing software services to the outside world, obtained by defining the technical solution provided by the embodiment of the present invention as a processing protocol. For example, it can be an interface in the form of an SDK (Software Development Kit) interface, an API (Application Programming Interface), etc. In actual applications, the electronic map display interface can be obtained by a map display device, such as an in-vehicle navigation device or a mobile phone, and a call request from the map display device can be received through the interface to determine the electronic map to be displayed, and then the processing resources corresponding to the electronic map display interface can be used to perform data evaluation.

[0114] Optionally, the technical solution provided by the embodiment of the present invention can be configured in a cloud server and packaged in a certain packaging method to form an external electronic map display interface, which can be called by target users to provide map display services.

[0115] The specific steps executed by the processing resources of the electronic map display interface in the embodiment of the present invention are as follows: Figure 1 The specific execution steps of the electronic map display method shown in FIG are the same, and the specific implementation methods and technical effects of each technical feature are in Figure 1 The embodiments shown are described in detail and will not be repeated here.

[0116] For ease of understanding, the technical solution of the embodiment of the present invention is described in detail by taking the sky ball as a three-dimensional sky object as an example. Figure 6 , it is assumed that the electronic map display method provided by the embodiment of the present invention is configured in a vehicle-mounted navigation device M1. The vehicle-mounted navigation device M1 can determine 601 the electronic map to be displayed in response to a map display request. For example, a user triggers a map display request for the display screen, or a map display request is generated according to a change in the user's position during the operation of the electronic map. Based on the viewing angle information of the map camera, the rotation angle of the sky camera's depression angle is determined 602. The depression angle of the sky camera is corrected 603 according to the rotation angle. Based on the viewing angle of the map camera and the corrected depression angle of the sky camera, the electronic map and the sky texture image in the three-dimensional sky object are displayed 604. Specifically, the electronic map 605 and the sky texture image 606 in the three-dimensional sky object are displayed on the display screen of the vehicle-mounted navigation device M1.

[0117] like Figure 7 FIG. 1 is a schematic diagram of the structure of an electronic map display device according to an embodiment of the present invention. The device may include the following modules:

[0118] Request detection module 701: used to determine the electronic map to be displayed in response to a map display request.

[0119] Angle determination module 703: used to determine the rotation angle of the depression angle of the sky camera based on the viewing angle of the map camera.

[0120] Correction module 704 is configured to correct the depression angle of the sky camera according to the rotation angle so that the horizon of the electronic map and the equator are located in the same plane.

[0121] The map display module 705 is used to display the electronic map and the three-dimensional sky object based on the viewing angle of the map camera and the corrected depression angle of the sky camera.

[0122] As an embodiment, the map display module can be specifically used to display the electronic map on the map horizontal plane based on the viewing angle of the map camera; and display the sky texture image of the three-dimensional sky object above the map horizontal plane based on the corrected depression angle of the sky camera.

[0123] In some embodiments, the apparatus may further include:

[0124] The boundary determination module is used to determine the boundary line between the map horizontal plane and the three-dimensional sky object based on the ground-to-air display ratio of the display screen.

[0125] The map display module may specifically display the electronic map below the boundary line in the display screen based on the viewing angle of the map camera; and display the sky texture image of the three-dimensional sky object above the boundary line in the display screen based on the corrected depression angle of the sky camera.

[0126] In some embodiments, the intersection determination module can be specifically used to determine the screen intersection line of the electronic map and the three-dimensional sky object on the display screen based on the ground-to-air display ratio of the display screen; map the screen intersection line to the three-dimensional sky object to obtain the intersection line between the map horizontal plane and the three-dimensional sky object.

[0127] In some embodiments, the angle determination module may include:

[0128] The plane determining unit is used to determine a first plane formed by the intersection line and the center point of the three-dimensional sky object.

[0129] An angle calculation unit is used to calculate the angle between the first plane and the horizontal plane of the map to obtain the rotation angle of the three-dimensional sky object.

[0130] As a possible implementation manner, the correction module may be specifically configured to rotate the depression angle of the sky camera according to the rotation angle, and control the plane where the equator is located to coincide with the first plane, so as to obtain the corrected depression angle of the sky camera.

[0131] In some embodiments, the map display module displays the sky texture image of the three-dimensional sky object above the boundary line in the display screen based on the corrected pitch angle of the sky camera. Specifically, the map display module renders the sky texture image above the equatorial plane in the three-dimensional sky object above the boundary line in the display screen based on the corrected pitch angle of the sky camera.

[0132] Figure 7 The electronic map display device can be implemented Figure 1 The implementation principle and technical effects of the electronic map display method described in the embodiment are not described in detail here. The specific manner of each step performed by each module, unit, and sub-unit in the above embodiment has been described in detail in the embodiment of the method, and will not be elaborated here.

[0133] In practical applications, Figure 7 The device shown can be configured as an electronic device. Figure 8FIG. 8 is a schematic diagram of a structure of an electronic device according to an embodiment of the present invention. The electronic device may include a storage component 801 and a processing component 802. The storage component 801 may be used to store one or more computer instructions; the one or more computer instructions may be called by the processing component 802 to execute. Figure 1 Any of the electronic map display methods described in the aforementioned embodiments.

[0134] In addition, the processing component 802 in the embodiment of the present invention can also execute Figure 2 The implementation principle and technical effects of the electronic map display method described in the embodiments are not described in detail here. The specific implementation of the processing component in each step has been described in detail in the embodiment of the method and will not be elaborated here.

[0135] In addition, an embodiment of the present invention further provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed, the electronic map display method in the aforementioned embodiment can be executed.

[0136] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0137] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by a combination of hardware and software. Based on this understanding, the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a computer product. The present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0141] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0142] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0143] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for displaying an electronic map, wherein: include: In response to a map display request, determining an electronic map to be displayed; Determining a rotation angle of the sky camera's depression angle based on the map camera's viewing angle; wherein determining the rotation angle includes: determining a first plane where a boundary line between a map horizontal plane and a 3D sky object and a center point of the 3D sky object are located, and calculating an angle between the first plane and the map horizontal plane to obtain the rotation angle; the center point of the 3D sky object is the location of the map camera; performing an angle correction on the depression angle of the sky camera according to the rotation angle so that the horizon of the electronic map and the equator are in the same plane; The electronic map and the three-dimensional sky object are displayed based on the viewing angle of the map camera and the corrected depression angle of the sky camera.

2. The method according to claim 1, wherein The displaying of the electronic map and the three-dimensional sky object based on the viewing angle of the map camera and the corrected depression angle of the sky camera includes: displaying the electronic map on a map horizontal plane based on the viewing angle of the map camera; A sky texture image of a three-dimensional sky object is displayed above the map horizontal plane based on the corrected depression angle of the sky camera.

3. The method according to claim 2, wherein: After determining the electronic map to be displayed in response to the map display request, the method further includes: Determine the boundary between the map horizontal plane and the three-dimensional sky object based on the ground-to-air display ratio of the display screen; The displaying of the electronic map on a map horizontal plane based on the viewing angle of the map camera includes: displaying the electronic map below the boundary line on the display screen based on the viewing angle of the map camera; The step of displaying a sky texture image of a three-dimensional sky object above the map horizontal plane based on the corrected depression angle of the sky camera comprises: Based on the corrected pitch angle of the sky camera, a sky texture image of the three-dimensional sky object is displayed above the boundary line on the display screen.

4. The method according to claim 3, wherein: The determining of the boundary line between the horizontal plane of the electronic map and the three-dimensional sky object based on the ground-to-air display ratio of the display screen includes: determining a screen boundary line between the electronic map and the three-dimensional sky object on the display screen according to a ground-to-sky display ratio of the display screen; The screen boundary line is mapped into the 3D sky object to obtain a boundary line between the map horizontal plane and the 3D sky object.

5. The method according to claim 1, wherein The step of correcting the depression angle of the sky camera according to the rotation angle so that the horizon plane of the electronic map and the equator are in the same plane includes: The depression angle of the sky camera is rotated according to the rotation angle, and the plane where the equator is located is controlled to coincide with the first plane, so as to obtain a corrected depression angle of the sky camera.

6. The method according to claim 2, wherein: The step of displaying the sky texture image of the three-dimensional sky object above the boundary line on the display screen based on the corrected depression angle of the sky camera comprises: Based on the corrected depression angle of the sky camera, a sky texture image above the plane where the equator of the three-dimensional sky object is located is rendered above the intersection line on the display screen.

7. An electronic map display device, wherein: include: a request detection module, configured to determine an electronic map to be displayed in response to a map display request; An angle determination module is configured to determine a rotation angle of the sky camera's pitch angle based on the map camera's viewing angle; wherein determining the rotation angle comprises: determining a first plane where a boundary line between a map horizontal plane and a 3D sky object and a center point of the 3D sky object are located, and calculating an angle between the first plane and the map horizontal plane to obtain the rotation angle; the center point of the 3D sky object is the location of the map camera; an object correction module, configured to correct the depression angle of the sky camera according to the rotation angle so that the horizon of the electronic map and the equator are located in the same plane; A map display module is used to display the electronic map and the three-dimensional sky object based on the viewing angle of the map camera and the corrected depression angle of the sky camera.

8. An electronic device, wherein: include: A storage component and a processing component; the storage component is used to store one or more computer instructions; the one or more computer instructions are called by the processing component to execute the electronic map display method according to any one of claims 1 to 6.

9. A computer storage medium, wherein: A computer program is stored, and when the computer program is executed by a computer, the electronic map display method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Sky drawing method and device, equipment and medium

    CN109887078A

  • Navigation interface display method and device, terminal, storage medium and program product

    CN113805829A