Positioning element presentation method and device, equipment and storage medium
By updating the display position of the positioning element in the map component based on the positioning information and the movement information of the target object, the problem of inaccurate positioning in the prior art is solved, and higher positioning accuracy is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2026-03-20
AI Technical Summary
The positioning provided by existing network platforms in map components is not accurate enough and cannot meet the needs of users. This is mainly because the time difference of the acquired positioning data causes the displayed position of the positioning element to deviate from the actual position.
Draw a location element at the first display position of the map component, obtain the location information of the target object, and determine the second display position based on the movement distance and speed within a preset historical time period. Update the map component to present the location element at the second display position.
By combining location information with the movement information of the target object, the accuracy of the displayed position of the location element is improved, thus meeting the user's location needs.
Smart Images

Figure CN121702369A_ABST
Abstract
Description
Technical Field
[0001] The exemplary embodiments disclosed herein generally relate to the field of computers, and particularly to methods, apparatuses, devices, and computer-readable storage media for presenting positioning elements. Background Technology
[0002] In recent years, with the continuous improvement of computer and navigation technologies, more and more users are using map components on online platforms for location or navigation. However, existing online platforms provide inaccurate location information during the location or navigation process, failing to meet user needs. Summary of the Invention
[0003] In a first aspect of this disclosure, a method for presenting a location element is provided, comprising: drawing a location element corresponding to a target object at a first display position of a map component, the location element being used to indicate the location of the target object in the real world; acquiring location information associated with the target object; determining a second display position based on the location information and the movement distance of the target object within a preset historical time period; and updating the map component to present the location element at the second display position.
[0004] In a second aspect of this disclosure, a presentation apparatus for a location element is provided. The apparatus includes: a drawing module configured to draw a location element corresponding to a target object at a first display position of a map component, the location element indicating the target object's location in the real world; an acquisition module configured to acquire location information associated with the target object; a determination module configured to determine a second display position based on the location information and the target object's movement distance within a preset historical time period; and an update module configured to update the map component to present the location element at the second display position.
[0005] In a third aspect of this disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the device to perform the methods of the first or second aspect.
[0006] In a fourth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program that can be executed by a processor to implement the methods of the first or second aspect.
[0007] It should be understood that the content described in this content section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0008] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein:
[0009] Figure 1 A schematic diagram is shown of an example environment in which embodiments of the present disclosure may be implemented;
[0010] Figures 2A to 2C Example interfaces according to some embodiments of this disclosure are shown;
[0011] Figure 3 A flowchart illustrating an example process for presenting a positioning element according to some embodiments of the present disclosure is shown;
[0012] Figure 4 A schematic structural block diagram of an example apparatus for positioning elements according to some embodiments of the present disclosure is shown; and
[0013] Figure 5 A block diagram of an electronic device capable of implementing several embodiments of the present disclosure is shown. Detailed Implementation
[0014] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0015] It should be noted that the headings of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and embodiments of any type may be included under any section / subsection. Furthermore, embodiments described in any section / subsection may be combined in any way with any other embodiments described in the same section / subsection and / or different sections / subsections.
[0016] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below. The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0017] The embodiments of this disclosure may involve user data, data acquisition, and / or use. All of these aspects comply with applicable laws, regulations, and relevant provisions. In the embodiments of this disclosure, all data collection, acquisition, processing, manipulation, forwarding, and use are conducted with the user's knowledge and confirmation. Accordingly, in implementing the embodiments of this disclosure, the type, scope of use, and usage scenarios of any data or information that may be involved should be communicated to the user and their authorization obtained in accordance with relevant laws and regulations through appropriate means. The specific methods of notification and / or authorization may vary depending on the actual situation and application scenario, and the scope of this disclosure is not limited in this respect.
[0018] In this specification and the embodiments, any processing of personal information will be carried out only under the premise of legality (such as obtaining the consent of the personal information subject, or being necessary for the performance of a contract), and will only be carried out within the scope stipulated or agreed upon. A user's refusal to process personal information other than that necessary for basic functions will not affect the user's use of basic functions.
[0019] As mentioned above, with the continuous improvement of computer and navigation technologies, more and more users are using map components on online platforms for location or navigation. However, in the process of providing location or navigation services to users, existing online platforms experience a time lag in acquiring location data from navigation satellites, resulting in a discrepancy between the location indicated in the map component and the user's actual location, thus failing to meet user needs.
[0020] Embodiments of this disclosure propose a presentation scheme for location elements. According to this scheme, a location element corresponding to a target object can be drawn at a first display position of a map component. The location element is used to indicate the location of the target object in the real world. Location information associated with the target object is obtained. A second display position is determined based on the location information and the movement speed of the target object within a preset historical time period. The map component is then updated to present the location element at the second display position.
[0021] In this way, the embodiments of this disclosure can determine the updated display position of a location element based on the acquired location information and the moving speed of the target object within a preset historical time period. Thus, by determining the updated display position of a location element after acquiring location information and combining it with the moving speed of the target object within a preset historical time period, the embodiments of this disclosure overcome the problem of large deviations between the displayed position and the actual position caused by time differences in acquiring location information, thereby improving the accuracy of the displayed position and meeting user needs.
[0022] The following section provides a detailed description of various example implementations of this scheme, with reference to the accompanying drawings.
[0023] Example Environment
[0024] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. For example... Figure 1 As shown, example environment 100 may include electronic device 110.
[0025] In this example environment 100, electronic device 110 may run an application 120 that supports user interface interaction. Application 120 may be any suitable type of application for user interface interaction, examples of which may include, but are not limited to, navigation applications, location applications, or other suitable applications. User 140 may interact with application 120 via electronic device 110 and / or its attached devices.
[0026] exist Figure 1 In environment 100, if application 120 is active, electronic device 110 can use application 120 to present interface 150 for supporting interface interaction.
[0027] In some embodiments, electronic device 110 communicates with server 130 to provide services to application 120. Electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, handheld computers, portable gaming terminals, VR / AR devices, personal communication system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, electronic device 110 can also support any type of user-facing interface (such as "wearable" circuitry).
[0028] Server 130 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks, and big data and artificial intelligence platforms. Server 130 may include, for example, computing systems / servers such as mainframes, edge computing nodes, computing devices in a cloud environment, etc. Server 130 can provide backend services for applications 120 that support user interface interaction in electronic devices 110.
[0029] A communication connection can be established between server 130 and electronic device 110. This communication connection can be established via wired or wireless means. The communication connection may include, but is not limited to, Bluetooth, mobile network, Universal Serial Bus (USB), and Wireless Fidelity (WiFi) connections; the embodiments of this disclosure are not limited in this respect. In the embodiments of this disclosure, server 130 and electronic device 110 can achieve signaling interaction through the communication connection between them.
[0030] It should be understood that the structure and function of the various elements in environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of this disclosure.
[0031] The following description will continue with reference to the accompanying drawings, which will provide some exemplary embodiments of this disclosure.
[0032] Example Interaction
[0033] Figures 2A to 2C Example interfaces 200A to 200C according to some embodiments of the present disclosure are shown. Interfaces 200A to 200C may, for example, be provided by... Figure 1 The electronic device 110 shown is provided.
[0034] In some embodiments, such as Figure 2A As shown, electronic device 110 can display map component 205 on target interface 200A. As an example, electronic device 110 can display map component 205 on target interface 200A in response to receiving a user's navigation request.
[0035] As an example, continue to refer to Figure 2AThe electronic device 110 can draw a positioning element 210 corresponding to the target object at a first display position 206 in the map component 205. The positioning element 210 is used to indicate the position of the target object in the real world. As an example, the electronic device 110 drawing the positioning element 210 corresponding to the target object at the first display position 206 can indicate that the position of the target object in the real world is the position corresponding to the first display position 206.
[0036] In some embodiments, continue to refer to Figure 2A The electronic device 110 can display a target path 208 related to the trip of the target object in the map component 205. As an example, the target path 208 can indicate a route planned for the target object based on the trip. The target object can move based on the target path 208 to reach its destination.
[0037] As an example, the target object may refer to a user or device (e.g., a vehicle, drone, etc.) located using electronic device 110.
[0038] In some embodiments, continue to refer to Figure 2A The electronic device 110 can acquire location information associated with a target object. As an example, the location information may include the coordinates of the target object when the electronic device 110 requests its location. It is understood that, due to the continuous movement of the target object, when the target object receives the location information, it has already left its original position (i.e., it has shifted relative to the coordinates corresponding to the location information). As an example, the electronic device 110 can directly or indirectly acquire the location information associated with the target object from a device providing location services (e.g., a base station, navigation satellite, etc.).
[0039] In some embodiments, the electronic device 110 may determine the second display position based on location information and the movement distance of the target object within a preset historical period.
[0040] In some embodiments, the electronic device 110 can determine the movement distance of the target object within a preset historical period based on the target object's historical location information within that period. For example, the preset historical period may include the time interval between the moment the electronic device 110 currently acquires location information and the moment it last acquired location information. Alternatively, the preset historical period may include a preset time interval before the electronic device 110 acquired the current location information.
[0041] As an example, the preset historical time period may include the time period between a first historical moment and a second historical moment. As an example, the historical location information of the target object within the preset historical time period may include first location information corresponding to the first historical moment (e.g., geographic coordinates A) and second location information corresponding to the second historical moment (e.g., geographic coordinates B). Furthermore, the electronic device 110 may determine the movement distance of the target object within the preset historical time period based on the first and second location information.
[0042] In some embodiments, continue to refer to Figure 2A The electronic device 110 determines the second display location based on the location information and the movement distance of the target object within a preset historical period. This can include the electronic device 110 determining a reference location corresponding to the location information in the map component 205. As an example, the electronic device 110 can determine the corresponding reference location in the map component 205 based on the coordinates (e.g., geographic coordinates C) corresponding to the location information (as will be explained later, the reference location can be the location of the display anchor point 209 in the map component 205).
[0043] In some embodiments, determining a second display position based on location information and the movement distance of a target object within a preset historical time period may include: determining an offset based on the movement distance. As an example, the offset may indicate the movement distance of the target object within the time period from when the electronic device 110 requests location to when it receives location information.
[0044] In some embodiments, continue to refer to Figure 2A The electronic device 110 determining the offset based on the travel distance may include: determining a reference distance corresponding to the size based on the size of the positioning element 210 in the map component 205 and the scaling ratio of the map component 205 (e.g., the scaling ratio of the map component's size to the real-world size, or a map scale). Further, the electronic device 110 may determine the offset based on the travel distance and the reference distance. As an example, such as... Figure 2A As shown, the size and length of the positioning element 210 in the map component 205 is D1. The scaling ratio can be, for example, 1:X. As an example, X in 1:X can be any suitable number (e.g., 100,000), and this disclosure is not intended to limit the specific value of X. As an example, the process of calculating the reference distance D can be implemented, for example, as D = D1 * X. As an example, the reference distance can indicate the reference length of the map component in the real world.
[0045] In some embodiments, continue to refer to Figure 2A The electronic device 110 may determine the offset based on the travel distance by: determining the offset based on the travel distance and the reference distance.
[0046] In some embodiments, continue to refer to Figure 2A The offset can be positively correlated with the ratio of the traveled distance to the reference distance. For example, if the traveled distance is D2, the offset Q can be calculated as Q = k * (D2 / (0.5 * D)) * D1. Here, k is a scaling factor, and its value can be, for example, 1. This disclosure is not intended to limit the specific value of k.
[0047] As an example, the scaling factor k can also be determined based on the target object's acceleration during a preset historical period. For example, if the acceleration is 0, k can be 1; if the acceleration is greater than 0, k can be greater than 1; and if the acceleration is less than 0, k can be between 0 and 1. As an example, the acceleration can be determined based on historical location information corresponding to the preset historical period.
[0048] In some embodiments, continue to refer to Figure 2A The offset can indicate the distance between the display anchor point 209 of the positioning element 210 and the center position of the positioning element 210. As an example, the display anchor point 209 can indicate that the electronic device 110 has obtained positioning information corresponding to the location in the map component 205.
[0049] In some embodiments, determining the second display position 207 based on positioning information and the movement distance of the target object within a preset historical time period may include: determining the second display position 207 based on a reference position and an offset Q. As an example, such as... Figure 2A As shown, the reference position is the location of the display anchor point 209, and the second display position 207 can be determined based on the offset Q and the movement direction of the target object.
[0050] In some embodiments, continue to refer to Figure 2A The first display position 206, display anchor point 209, and second display position 207 in map component 205 are presented as an example to clearly illustrate the positional change process of the positioning element 210. During actual user use of map component 205, the first display position 206, display anchor point 209, and / or second display position 207 may be presented or not presented in map component 205 based on settings by relevant technical personnel or user selection.
[0051] In some embodiments, the electronic device 110 may update the map component 205 to present the location element 210 at the second display location.
[0052] In some embodiments, such as Figure 2BAs shown, the electronic device 110 can display the change process of the location element 210 from the first display position 206 to the second display position 207 in the map component 205. That is, the electronic device 110 can display the movement process (or movement animation) of the location element 210 from the first display position 206 to the second display position 207 in the map component 205. As an example, the location element 210 can move from the first display position 206 to the second display position 207 along a target path 208 related to the trip. As an example, the movement process of the location element 210 can be implemented based on computer graphics technology or related technologies, and this disclosure is not intended to limit the specific implementation technology of the movement process of the location element 210.
[0053] In some embodiments, continue to refer to Figure 2B At least one parameter of the change process of the positioning element 210 from the first display position 206 to the second display position 207 is determined based on the motion information of the target object. For example, at least one parameter of the change process may include the moving speed and / or moving acceleration of the positioning element. For example, the moving speed and / or moving acceleration of the positioning element may be determined based on the moving speed or moving acceleration of the target object within a preset historical time period. Therefore, the movement process of the positioning element 210 in the map component 205 can reflect the moving speed and / or moving acceleration of the target object within a preset time period, thereby improving the accuracy of the displayed position of the positioning element 210 and meeting the user's needs.
[0054] In some embodiments, such as Figure 2C As shown, the electronic device 110 can display the positioning element 210 at the second display position 207. As an example, such as... Figure 2C As shown, the display anchor point 209 of the positioning element 210 lags behind the position of the positioning element 210 in the map component 205. The lag distance can be an offset Q.
[0055] Based on the process described above, embodiments of this disclosure can determine the offset of a target object's location based on its historical location information within a preset historical time period. Furthermore, embodiments of this disclosure can determine the display position of a location element in a map component based on the offset and received location information associated with the target object, thereby reflecting the target object's true location in the real world. In addition, embodiments of this disclosure can also present the movement process of the location element based on the target object's motion information.
[0056] In this way, the embodiments of this disclosure can present users with location elements in the map component that better reflect the user's real location and the process of changes in the location elements, thereby improving the accuracy of the location elements and meeting the user's needs.
[0057] Example process
[0058] Figure 3 A flowchart illustrating an example process 300 for locating an element according to some embodiments of the present disclosure is shown. Process 300 can be implemented at electronic device 110. Reference is made below. Figure 1 To describe process 300.
[0059] As shown in the figure, in box 310, the electronic device 110 draws a positioning element corresponding to the target object at the first display position of the map component. The positioning element is used to indicate the position of the target object in the real world.
[0060] In box 320, electronic device 110 acquires location information associated with the target object.
[0061] In frame 320, electronic device 110 determines a second display position based on positioning information and the movement distance of the target object within a preset historical time period.
[0062] In box 340, electronic device 110 updates the map component to present the location element at the second display location.
[0063] In some embodiments, determining the second display location based on the location information and the movement distance of the target object within a preset historical time period includes: determining a reference location corresponding to the location information in the map component; determining an offset based on the movement distance; and determining the second display location based on the reference location and the offset.
[0064] In some embodiments, determining the offset based on the movement distance includes: determining a reference distance corresponding to the size based on the size of the location element in the map component and the scaling ratio of the map component; and determining the offset based on the movement distance and the reference distance.
[0065] In some embodiments, the offset is positively correlated with the ratio of the travel distance to the reference distance.
[0066] In some embodiments, the offset indicates the distance between the display anchor point of the positioning element and the center position of the positioning element.
[0067] In some embodiments, updating the map component to present the location element at the second display location includes: presenting the location element in the map component as a change from the first display location to the second display location.
[0068] In some embodiments, at least one parameter of the change process is determined based on motion information of the target object.
[0069] Example devices and equipment
[0070] Embodiments of this disclosure also provide corresponding apparatus for implementing the above methods or processes. Figure 4 A schematic structural block diagram of an example device 400 for locating elements according to certain embodiments of the present disclosure is shown. Device 400 may be implemented as or included in an electronic device. Various modules / components in device 400 may be implemented by hardware, software, firmware, or any combination thereof.
[0071] like Figure 4 As shown, the device 400 includes a drawing module 410 configured to draw a location element corresponding to a target object at a first display position of a map component, the location element indicating the position of the target object in the real world; an acquisition module 420 configured to acquire location information associated with the target object; a determination module 430 configured to determine a second display position based on the location information and the movement speed of the target object within a preset historical time period; and an update module 440 configured to update the map component to present the location element at the second display position.
[0072] In some embodiments, the determining module 430 is further configured to: determine a reference position corresponding to the positioning information in the map component; determine an offset based on the movement distance; and determine a second display position based on the reference position and the offset.
[0073] In some embodiments, the determining module 430 is further configured to: determine a reference distance corresponding to the size based on the size of the positioning element in the map component and the scaling ratio of the map component; and determine an offset based on the movement distance and the reference distance.
[0074] In some embodiments, the offset is positively correlated with the ratio of the travel distance to the reference distance.
[0075] In some embodiments, the offset indicates the distance between the display anchor point of the positioning element and the center position of the positioning element.
[0076] In some embodiments, the update module 440 is further configured to: present the process of a location element changing from a first display position to a second display position in the map component.
[0077] In some embodiments, at least one parameter of the change process is determined based on motion information of the target object.
[0078] Figure 5 A block diagram of an electronic device 500 in which one or more embodiments of the present disclosure may be implemented is shown. It should be understood that... Figure 5 The electronic device 500 shown is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. Figure 5 The electronic device 500 shown can be used to achieve Figure 1 Electronic devices 110.
[0079] like Figure 5 As shown, electronic device 500 is in the form of a general-purpose electronic device. Components of electronic device 500 may include, but are not limited to, one or more processors or processing units 510, memory 520, storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. Processing unit 510 may be a physical or virtual processor and is capable of performing various processes according to programs stored in memory 520. In a multiprocessor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing capability of electronic device 500.
[0080] Electronic device 500 typically includes multiple computer storage media. Such media can be any accessible media that is accessible to electronic device 500, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 520 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage device 530 can be removable or non-removable media and can include machine-readable media, such as flash drives, disks, or any other media that can be used to store information and / or data and can be accessed within electronic device 500.
[0081] Electronic device 500 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not explicitly stated... Figure 5 As shown, disk drives for reading from or writing to removable, non-volatile disks (e.g., "floppy disks") and optical disk drives for reading from or writing to removable, non-volatile optical disks can be provided. In these cases, each drive can be connected to a bus (not shown) via one or more data media interfaces. Memory 520 may include computer program product 525 having one or more program modules configured to perform various methods or actions of various embodiments of this disclosure.
[0082] Communication unit 540 enables communication with other electronic devices via a communication medium. Additionally, the functionality of components of electronic device 500 can be implemented using a single computing cluster or multiple computing machines capable of communicating via communication connections. Therefore, electronic device 500 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.
[0083] Input device 550 can be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 560 can be one or more output devices, such as a monitor, speaker, printer, etc. Electronic device 500 can also communicate with one or more external devices (not shown) via communication unit 540 as needed. These external devices include storage devices, display devices, etc., and can communicate with one or more devices that enable user interaction with electronic device 500, or with any device that enables electronic device 500 to communicate with one or more other electronic devices (e.g., network card, modem, etc.). Such communication can be performed via input / output (I / O) interface (not shown).
[0084] According to an exemplary implementation of this disclosure, a computer-readable storage medium is provided that stores computer-executable instructions thereon, wherein the computer-executable instructions are executed by a processor to implement the methods described above. According to an exemplary implementation of this disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which are executed by a processor to implement the methods described above.
[0085] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0086] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0087] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0088] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0089] Various implementations of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. A method for rendering positioned elements, comprising: At the first display position of the map component, a positioning element corresponding to the target object is drawn, the positioning element being used to indicate the position of the target object in the real world; Obtain the location information associated with the target object; Based on the location information and the movement distance of the target object within a preset historical time period, a second display location is determined; as well as Update the map component to present the location element at the second display location.
2. The method according to claim 1, wherein determining the second display location based on the positioning information and the movement distance of the target object within a preset historical time period includes: In the map component, a reference location corresponding to the positioning information is determined; The offset is determined based on the travel distance; as well as The second display position is determined based on the reference position and the offset.
3. The method according to claim 2, wherein determining the offset based on the moving distance comprises: Based on the size of the positioning element in the map component and the scaling ratio of the map component, a reference distance corresponding to the size is determined; as well as The offset is determined based on the travel distance and the reference distance.
4. The method of claim 3, wherein the offset is positively correlated with the ratio of the travel distance to the reference distance.
5. The method of claim 3, wherein the offset indicates the distance between the display anchor point of the positioning element and the center position of the positioning element.
6. The method of claim 1, wherein updating the map component to present the location element at the second display location comprises: The map component presents the process of the location element changing from a first display position to a second display position.
7. The method of claim 6, wherein at least one parameter of the change process is determined based on the motion information of the target object.
8. A rendering device for positioning elements, comprising: The drawing module is configured to draw a positioning element corresponding to the target object at the first display position of the map component, the positioning element being used to indicate the position of the target object in the real world; The acquisition module is configured to acquire location information associated with the target object; The determination module is configured to determine a second display position based on the positioning information and the moving speed of the target object within a preset historical time period; as well as An update module is configured to update the map component to present the location element at the second display location.
9. An electronic device, comprising: At least one processing unit; as well as At least one memory, coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, which, when executed by the at least one processing unit, cause the electronic device to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, the computer program being executable by a processor to implement the method according to any one of claims 1 to 7.