Icon display method, device, program product and storage medium
By rendering the user's avatar icon on the map interface, the problem of poor icon display flexibility in the existing technology is solved, the user experience and the reality of the digital world are improved, and the difference in perception between reality and the digital world is reduced.
Patent Information
- Application Number
- CN202110491532.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-06
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-05-06
AI Technical Summary
In the existing technology, default icons are used to display the user's location, which has poor flexibility and user experience. It is difficult to reflect the user's sense of reality in the digital world and solve the problem of the difference between the real world and the digital world.
Obtain the locator configuration information of the map interface and the user's real-time positioning information through the page container and rendering engine, obtain the avatar resources according to the pre-registered locator identification, and render the avatar icon at the corresponding position on the map interface to realize the display of the avatar icon in the map.
It improves the diversity and flexibility of locators, enables users to better perceive their presence on the map through avatar locators, reduces the difference between users' feelings in the real world and the digital world, and enhances the reality of the digital world.
Smart Images

Figure CN115309302B
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to an icon display method, device, program product and storage medium. Background Art
[0002] With the popularization of smart terminals, travel applications (programs) are widely installed and used. Combined with positioning technology, travel applications can provide users with various location-based services, including map search, navigation, etc.
[0003] The prior art uses a default icon to display the user's location. As we all know, electronic maps are the expression of the real world in the digital world. How to use technical means to reflect the user's sense of reality in the digital world and solve the difference between the real world and the digital world are technical problems that need to be solved. Summary of the invention
[0004] Multiple aspects of the present application provide an icon display method, device, program product and storage medium to realize the display of avatar icons in a map and improve the user's sense of reality in the digital world.
[0005] The present application embodiment provides an icon display method, including:
[0006] The page container, in response to an opening operation on a target map interface, obtains first positioning mark configuration information corresponding to the target map interface; and provides the first positioning mark configuration information to a rendering engine;
[0007] The rendering engine obtains the user's real-time positioning information; obtains the first avatar resource corresponding to the pre-registered positioning mark identifier; and renders the first avatar resource on the target map interface and the corresponding position of the real-time positioning information according to the configuration information of the first positioning mark.
[0008] The present application also provides an icon display method, including:
[0009] In response to an opening operation on a target map interface, obtaining first positioning mark configuration information corresponding to the target map interface;
[0010] Obtain the user's real-time location information;
[0011] Obtain a first avatar resource corresponding to a pre-registered location marker;
[0012] According to the first positioning mark configuration information, the first avatar resource is rendered at a corresponding position of the real-time positioning information on the target map interface.
[0013] The embodiment of the present application further provides a computer device, comprising: a memory, a processor and a display component; wherein the memory is used to store a computer program;
[0014] The processor is coupled to the memory and the display component, and is used to execute the computer program to perform the steps in the above-mentioned icon display methods.
[0015] An embodiment of the present application also provides a computer program product, including: a computer program; the computer program is executed by a processor to implement the above-mentioned icon display methods.
[0016] An embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned icon display methods.
[0017] In an embodiment of the present application, the page container can respond to an opening operation on the map interface to obtain the positioning mark configuration information corresponding to the map interface; and provide the positioning mark configuration information to the rendering engine; the rendering engine can obtain the user's real-time positioning information; and based on the pre-registered positioning mark identifier, obtain the avatar resource corresponding to the positioning mark identifier; and, based on the positioning mark configuration information, render the avatar resource at the corresponding position of the real-time positioning information in the map interface, so as to realize the avatar icon to display the user's position, thereby realizing the display of the avatar positioning mark in the map. On the one hand, it helps to improve the diversity and flexibility of the positioning mark, and on the other hand, it allows users to better perceive their presence in the map through their avatar positioning mark, which helps to improve the sense of reality in the digital world and reduce the difference in user perception between the real world and the digital world. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1a A schematic diagram of the structure of the rendering architecture provided in the embodiment of the present application;
[0020] Figure 1b A flowchart of an icon display method provided in an embodiment of the present application;
[0021] Figure 2 and Figure 3 A flowchart of another icon display method provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0024] In the prior art, the default icon is used to display the user's location information, which has poor display flexibility and poor user experience. In response to this technical problem, in some embodiments of the present application, the page container can respond to the opening operation of the map interface, obtain the location marker configuration information corresponding to the map interface; and provide the location marker configuration information to the rendering engine; the rendering engine can obtain the user's real-time location information; and according to the pre-registered location marker identifier, obtain the avatar resource corresponding to the location marker identifier; and according to the location marker configuration information, render the avatar resource at the corresponding position of the real-time location information in the map interface, so as to realize the display of the avatar icon in the map. On the one hand, it helps to improve the diversity and flexibility of the location marker, and on the other hand, it can make the user more aware of his presence in the map through his avatar location marker, which helps to improve the sense of reality in the digital world and reduce the difference in the user's perception between the real world and the digital world.
[0025] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0026] It should be noted that the same reference numerals denote the same objects in the following drawings and embodiments, and therefore, once an object is defined in one drawing or embodiment, it does not need to be further discussed in the subsequent drawings and embodiments.
[0027] Figure 1a A schematic diagram of the structure of the rendering architecture provided for the embodiment of the present application. The rendering architecture can be implemented as a rendering architecture of a computer program product, and the functions of each module in the rendering architecture can implement a rendering method, which can be applied to a computer program product. The computer program product can be installed in a computer device. The computer device can be a terminal device such as a smart phone, a computer, a wearable device, or a car navigation device. The computer program product can be a map application software, or it can be other application software that integrates map application capabilities, such as online car-hailing application software, life service application software (takeout delivery), etc.
[0028] In this embodiment, the user can independently set his / her avatar in the computer program product. Accordingly, the terminal where the computer program product is installed can upload the user avatar to the server corresponding to the computer program product for storage.
[0029] When a user uses the computer program product, he or she may start the computer program product. Figure 1b As shown, the terminal where the computer program product is installed can, in response to the startup operation for the computer program product, request the user's avatar resource from the server of the computer program product. The server can respond to the service request of the terminal and return the avatar resource corresponding to the user to the terminal. Figure 1b As shown, the computer program product starts and asynchronously requests the user's avatar resource from the server.
[0030] Furthermore, the terminal may establish a correspondence between the location marker identifier and the user's avatar resource, and store the correspondence.
[0031] For a computer program product, its rendering architecture is as follows Figure 1a As shown, it includes: a page container 11 and a rendering engine 12. Among them, the page container 11 is a component responsible for interacting with the user, and can implement one or more activity components. Multiple refers to 2 or more.
[0032] The rendering engine 12 refers to a component that renders the page or control with which the user interacts. In order to render the avatar icon showing the user's location on the map interface, the terminal can register the above-mentioned location marker identifier in the rendering engine 12. In this way, when rendering the avatar location marker, the rendering engine 12 can read the avatar resource corresponding to the pre-registered location marker identifier from the correspondence between the location marker identifier stored in the terminal and the user's avatar resource based on the pre-registered location marker identifier.
[0033] When rendering the avatar icon, in addition to the avatar resources, it is also necessary to obtain the location marker configuration information corresponding to the icon that displays the user's location. In an embodiment of the present application, the location marker refers to an icon that displays the user's location on a map. In this embodiment, the location marker configuration information can be pre-configured for the map interface. Among them, the location marker configuration information may include: the size, color and other attribute information of the location marker of the icon that displays the user's location. The size of the icon can be a quantitative size description, such as a diameter of 0.3 cm, etc.; it can also be a qualitative size description, such as large (L), medium (M), small (S), etc.
[0034] In this embodiment, the specific data organization format of the positioning mark configuration information is not limited. Optionally, the positioning mark configuration information can be composed of a fixed prefix + size + (color optional), where the color is an optional option. Not selecting represents the default blue mark, and selecting represents the default white mark. For example: photo_M_W, photo is a fixed prefix, "_M" means that the avatar mark size is M, and "_W" means that the default mark displays a white mark; photo_S means that the avatar mark size is S, and the default mark displays a blue mark. The specific positioning mark configuration information can be shown in Table 1 below:
[0035] Table 1 Positioning mark configuration information table
[0036]
[0037] In this embodiment, the location marker configuration information corresponding to different map interfaces can be the same or different. In order to display the avatar icon, the page container 11 can obtain the location marker configuration information corresponding to the map interface in response to the opening operation of the map interface; and provide the location marker configuration information to the rendering engine 12.
[0038] Alternatively, if Figure 1b As shown, the page container 11 can write the location marker configuration information corresponding to the map interface into a domain specific language (DSL) instruction; and transparently transmit the DSL instruction to the rendering engine 12 to provide the location marker configuration information corresponding to the map interface to the rendering engine 12.
[0039] The rendering engine 12 not only needs to obtain the positioning marker configuration information, but also can obtain the user's real-time positioning information and the avatar resource corresponding to the pre-registered positioning marker. The user's real-time positioning information obtained by the rendering engine 12 can be collected in real time by the positioning module on the terminal.
[0040] In this embodiment, the rendering engine 12 may obtain the user's real-time location information and the avatar resource corresponding to the pre-registered location marker identifier in parallel and according to the location marker configuration information, or may obtain the user's real-time location information and the avatar resource corresponding to the pre-registered location marker identifier in series and according to the location marker configuration information. In the case of serially obtaining the user's real-time location information and the avatar resource corresponding to the pre-registered location marker identifier and according to the location marker configuration information, the order of obtaining the user's real-time location information and the avatar resource corresponding to the pre-registered location marker identifier and according to the location marker configuration information is not limited.
[0041] Optionally, based on the correspondence between the positioning marker and the user's avatar resource established by the above terminal, the rendering engine 12 can obtain a pre-registered positioning marker and read the avatar resource corresponding to the pre-registered positioning marker from the correspondence between the positioning marker and the user's avatar resource stored in the terminal.
[0042] For the rendering engine 12, after obtaining the location mark configuration information corresponding to the map interface, the user's real-time location information and the user's avatar resources, the avatar resources can be rendered at the position corresponding to the map interface and the user's real-time location information according to the location mark configuration information corresponding to the map interface, so as to display the user's avatar icon on the map interface, thereby realizing the display of the avatar location mark in the map.
[0043] Optionally, the rendering engine 12 may render the user's avatar resource at a position on the map interface corresponding to the user's real-time location information according to the icon's size, color and other location marker attribute information described by the location marker configuration information corresponding to the map interface, thereby displaying the user's avatar icon on the map interface.
[0044] In this embodiment, since the location mark configuration information corresponding to different map interfaces can be the same or different, in order to improve the icon rendering efficiency, for two adjacent map interfaces with the same location mark configuration information, the rendering engine 12 can reuse the avatar resources corresponding to the previous map interface, without having to read the correspondence between the location mark identifier and the user's avatar resources stored in the terminal. Based on the above analysis, for the map interface currently displayed by the computer device, the user can close the currently displayed map interface and open a new map interface. In the embodiment of the present application, for the convenience of description and distinction, the map interface currently opened by the user can be defined as the target map interface, and the currently displayed map interface is the previous map interface of the target map interface. Accordingly, the rendering engine 12 can also respond to the operation of closing the currently displayed map interface and opening the target map interface to obtain the location mark configuration information corresponding to the currently displayed map interface.
[0045] Furthermore, the rendering engine 12 can determine whether the positioning mark configuration information corresponding to the target map interface is consistent with the positioning mark configuration information corresponding to the currently displayed map interface; if the judgment result is no, the above step of obtaining the avatar resource corresponding to the pre-registered positioning mark identifier is executed. Accordingly, if the judgment result is that the positioning mark configuration information corresponding to the target map interface is consistent with the positioning mark configuration information corresponding to the currently displayed map interface, the rendering engine 12 can obtain the avatar resource corresponding to the avatar icon showing the user's location on the currently displayed map interface; and according to the positioning mark configuration information corresponding to the target map interface, the avatar resource corresponding to the avatar icon on the currently displayed map interface is rendered at the corresponding position of the user's real-time positioning information on the target map interface, thereby displaying the avatar icon of the user's location on the target map interface.
[0046] The rendering architecture provided in this embodiment is that the page container can respond to the opening operation of the map interface, obtain the positioning mark configuration information corresponding to the map interface; and provide the positioning mark configuration information to the rendering engine; the rendering engine can obtain the user's real-time positioning information; and obtain the avatar resource corresponding to the positioning mark identifier based on the pre-registered positioning mark identifier; and, based on the positioning mark configuration information, render the avatar resource at the corresponding position of the real-time positioning information in the map interface, so as to display the avatar icon that locates the user's position on the map interface, thereby realizing the display of the avatar icon in the map. On the one hand, it helps to improve the diversity and flexibility of the positioning marks, and on the other hand, it allows users to better perceive their presence in the map through their avatar positioning marks, which helps to improve the sense of reality in the digital world and reduce the difference in user perception between the real world and the digital world.
[0047] The functions of each module of the above rendering architecture can be implemented as an icon display method. The map icon display method provided in this embodiment is exemplarily described below.
[0048] Figure 2 The following is a flow chart of the icon display method provided in the embodiment of the present application. Figure 2 As shown, the method includes:
[0049] 201. In response to an opening operation on a target map interface, the page container obtains first positioning mark configuration information corresponding to the target map interface.
[0050] 202. Provide the first positioning mark configuration information to the rendering engine.
[0051] 203. The rendering engine obtains the user's real-time location information.
[0052] 204. The rendering engine obtains a first avatar resource corresponding to a pre-registered positioning mark.
[0053] 205. The rendering engine renders the first avatar resource at a corresponding position of the real-time positioning information on the target map interface according to the first positioning mark configuration information.
[0054] In this embodiment, the target map interface refers to the map interface that is currently being opened, which can be any map interface, such as a map navigation guidance interface, a map location sharing interface, a route planning interface, or any map interface in a map application.
[0055] In this embodiment, the page container can respond to the opening operation of the map interface to obtain the positioning mark configuration information corresponding to the map interface; and provide the positioning mark configuration information to the rendering engine; the rendering engine can obtain the user's real-time positioning information; and obtain the avatar resource corresponding to the positioning mark identifier based on the pre-registered positioning mark identifier; and, based on the positioning mark configuration information, render the avatar resource at the corresponding position of the real-time positioning information in the map interface to display the avatar icon that locates the user's position on the map interface, thereby realizing the display of avatar positioning marks in the map. On the one hand, it helps to improve the diversity and flexibility of positioning marks, and on the other hand, it allows users to better perceive their presence in the map through their avatar positioning marks, which helps to improve the sense of reality in the digital world and reduce the difference in user perception between the real world and the digital world.
[0056] In some embodiments, step 202 may be implemented as: writing the first positioning marker configuration information into a DSL instruction; and transparently transmitting the DSL instruction to the rendering engine to provide the first positioning marker configuration information to the rendering engine.
[0057] In some embodiments, the user can independently set his / her avatar in the map application. Accordingly, the terminal where the application to which the map interface belongs is installed can upload the user avatar to the server corresponding to the application for storage.
[0058] When using the application, the user can start the application, such as opening a map APP. Accordingly, in response to the start operation of the application to which the target map interface belongs, the user's avatar resource can be requested from the application's server. The server can respond to the terminal's service request and return the avatar resource corresponding to the user to the terminal.
[0059] Furthermore, a corresponding relationship between the positioning mark and the user's avatar resource can be established and stored. Furthermore, the positioning mark can be registered in the rendering engine.
[0060] Based on the correspondence between the above-mentioned positioning marker identifier and the user's avatar resource, an implementation method of step 204 is: obtaining a pre-registered positioning marker identifier; and reading a first avatar resource corresponding to the pre-registered positioning marker identifier from the correspondence between the positioning marker identifier and the user's avatar resource.
[0061] In this embodiment, since the positioning mark configuration information corresponding to different map interfaces can be the same or different, in order to improve the icon rendering efficiency, for two adjacent map interfaces with the same positioning mark configuration information, the rendering engine can reuse the avatar resources corresponding to the previous map interface, without having to read the correspondence between the positioning mark identifier and the user's avatar resources stored in the terminal. Based on the above analysis, for the map interface currently displayed by the computer device, the user can close the currently displayed map interface and open a new map interface. In the embodiment of the present application, for the convenience of description and distinction, the map interface currently opened by the user can be defined as the target map interface, and the currently displayed map interface is the previous map interface of the target map interface. Correspondingly, the page container can also obtain the second positioning mark configuration information corresponding to the currently displayed map interface; and determine whether the first positioning mark configuration information corresponding to the target map interface is consistent with the second positioning mark configuration information corresponding to the currently displayed map interface; if the judgment result is no, perform the operation of the above step 204. Accordingly, if the judgment result is that the first positioning mark configuration information corresponding to the target map interface is consistent with the second positioning mark configuration information corresponding to the currently displayed map interface, the rendering engine can obtain the second avatar resource corresponding to the avatar icon that displays the user's location on the currently displayed map interface; and according to the positioning mark configuration information corresponding to the target map interface, the second avatar resource is rendered at the corresponding position of the user's real-time positioning information in the target map interface, and then the avatar icon of the user's location is displayed on the target map interface.
[0062] In addition to the above-mentioned icon display method, the embodiment of the present application also provides another icon display method. The following is an illustrative description of another icon display method from the perspective of a terminal on which a map application is installed.
[0063] Figure 3 A flowchart of another icon display method provided in an embodiment of the present application. Figure 3 As shown, the method includes:
[0064] 301. In response to an opening operation on a target map interface, obtain first positioning mark configuration information corresponding to the target map interface.
[0065] 302. Obtain the user's real-time location information.
[0066] 303. Obtain a first avatar resource corresponding to a pre-registered location marker.
[0067] 304. Render a first avatar resource at a corresponding position of the real-time positioning information on the target map interface according to the first positioning mark configuration information.
[0068] In this embodiment, in response to an opening operation on the map interface, the location mark configuration information corresponding to the map interface can be obtained; and the user's real-time location information and the avatar resources corresponding to the pre-registered location mark identifier can be obtained; and, based on the location mark configuration information, the avatar resources are rendered at the corresponding position of the real-time location information on the map interface to display the avatar icon that locates the user's position on the map interface, thereby realizing the display of avatar location marks in the map. On the one hand, it helps to improve the diversity and flexibility of location marks, and on the other hand, it allows users to better perceive their presence in the map through their avatar location marks, which helps to improve the sense of reality in the digital world and reduce the difference in user perception between the real world and the digital world.
[0069] For the specific implementation of the above steps 303 and 304, please refer to the above Figure 2 The relevant contents of the optional embodiments thereof will not be repeated here.
[0070] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 201 and 202 can be device A; for another example, the execution subject of step 201 can be device A, and the execution subject of step 202 can be device B; and so on.
[0071] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this document or may be executed in parallel, and the sequence numbers of the operations, such as 201, 202, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel.
[0072] Accordingly, an embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned icon display method.
[0073] Accordingly, the embodiment of the present application also provides a computer program product, including a computer program; when the computer program is executed by a processor, the above icon display method can be performed. The implementation form of the computer program product can refer to the relevant content of the above rendering architecture embodiment, which will not be repeated here.
[0074] Figure 4 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 4 As shown, the computer device includes: a memory 40a, a processor 40b and a display component 40c.
[0075] In this embodiment, the memory 40a is used to store computer programs;
[0076] The processor 40b is coupled to the memory 40a, and is used to execute a computer program for: in response to an opening operation for the target map interface, obtaining first positioning mark configuration information corresponding to the target map interface; and providing the first positioning mark configuration information to the rendering engine; obtaining the user's real-time positioning information; and using the rendering engine to obtain a first avatar resource corresponding to a pre-registered positioning mark identifier; and, based on the first positioning mark configuration information, rendering the first avatar resource at a corresponding position of the real-time positioning information on the target map interface through the display component 40c.
[0077] Optionally, when providing the first positioning marker configuration information to the rendering engine, the processor 40b is specifically configured to: write the first positioning marker configuration information into a domain specific language instruction; and transparently transmit the domain specific language instruction to the rendering engine to provide the first positioning marker configuration information to the rendering engine.
[0078] Optionally, the processor 40b is also used to: in response to the startup operation of the application to which the map interface belongs, request the user's avatar resources from the application's server through the communication component 40d; establish and store the correspondence between the location marker and the user's avatar resources; and register the location marker in the rendering engine.
[0079] Optionally, when the processor 40b uses the rendering engine to obtain the first avatar resource corresponding to the pre-registered positioning mark identifier, it is specifically used to: obtain the pre-registered positioning mark identifier; and read the first avatar resource corresponding to the pre-registered positioning mark identifier from the corresponding relationship.
[0080] Optionally, the processor 40b is also used to: in response to the operation of closing the current display map interface and opening the target map interface, obtain the second positioning mark configuration information of the current display map interface; determine whether the second positioning mark configuration information is consistent with the first positioning configuration information; if the judgment result is no, perform the step of using the rendering engine to obtain the first avatar resource corresponding to the pre-registered positioning mark identifier. If the judgment result is yes, obtain the second avatar resource corresponding to the avatar icon showing the user's location on the current display map interface; and render the second avatar resource at the corresponding position of the real-time positioning information on the target map interface according to the first positioning mark configuration information. In some other embodiments of the present application, the processor 40b is also used to: in response to the opening operation for the target map interface, obtain the first positioning mark configuration information corresponding to the target map interface; obtain the real-time positioning information of the user; obtain the first avatar resource corresponding to the pre-registered positioning mark identifier; and, according to the first positioning mark configuration information, render the first avatar resource at the corresponding position of the real-time positioning information on the target map interface through the display component 40c to display the avatar icon of the user's location on the target map interface.
[0081] In some optional embodiments, such as Figure 4 As shown, the computer device may also include optional components such as a power supply component 40e and an audio component 40f. Figure 4 The components are shown only schematically, and do not mean that the computer equipment must include Figure 4 The components shown do not necessarily mean that the computer equipment can only include Figure 4 Components shown.
[0082] The computer device provided in this embodiment can, in response to an opening operation on a map interface, obtain the positioning mark configuration information corresponding to the map interface; and provide the positioning mark configuration information to a rendering engine; and obtain the user's real-time positioning information; and use the rendering engine to obtain the avatar resource corresponding to the positioning mark identifier according to a pre-registered positioning mark identifier; and, according to the positioning mark configuration information, render the avatar resource at the corresponding position of the real-time positioning information on the map interface to display the avatar icon that locates the user's position on the map interface, thereby realizing the display of avatar positioning marks in the map. On the one hand, it helps to improve the diversity and flexibility of positioning marks, and on the other hand, it allows users to better perceive their presence in the map through their avatar positioning marks, which helps to create a sense of reality in the digital world and reduce the difference in user perception between the real world and the digital world.
[0083] In an embodiment of the present application, the memory is used to store a computer program and can be configured to store various other data to support operations on the device where it is located. Among them, the processor can execute the computer program stored in the memory to implement the corresponding control logic. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0084] In the embodiment of the present application, the processor can be any hardware processing device that can execute the logic of the above method. Optionally, the processor can be a central processing unit (CPU), a graphics processing unit (GPU) or a microcontroller unit (MCU); it can also be a field programmable gate array (FPGA), a programmable array logic device (PAL), a general array logic device (GAL), a complex programmable logic device (CPLD) and other programmable devices; or an advanced reduced instruction set (RISC) processor (Advanced RISC Machines, ARM) or a system on chip (System on Chip, SOC), etc., but not limited to this.
[0085] In an embodiment of the present application, the communication component is configured to facilitate wired or wireless communication between the device in which it is located and other devices. The device in which the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G, 5G or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component can also be implemented based on near field communication (NFC) technology, radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology or other technologies.
[0086] In an embodiment of the present application, the display component may include a liquid crystal display (LCD) and a touch panel (TP). If the display component includes a touch panel, the display component may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0087] In an embodiment of the present application, a power supply component is configured to provide power to various components of the device in which it is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device in which the power supply component is located.
[0088] In an embodiment of the present application, the audio component may be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal. For example, for a device with a language interaction function, voice interaction with a user can be achieved through an audio component.
[0089] It should be noted that the descriptions such as “first” and “second” in this article are used to distinguish different messages, devices, modules, etc., and do not represent the order of precedence, nor do they limit “first” and “second” to different types.
[0090] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0091] The present application is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be realized 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 produce a device for realizing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0092] 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 a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0093] These computer program instructions may 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, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0094] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0095] The 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. The memory is an example of a computer-readable medium.
[0096] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, 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 temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0097] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0098] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for displaying an icon, wherein: include: The page container obtains first positioning mark configuration information corresponding to the target map interface in response to an opening operation on the target map interface, and provides the first positioning mark configuration information to the rendering engine; The rendering engine obtains the user's real-time location information; obtains a first avatar resource corresponding to a pre-registered location marker; and renders the first avatar resource at a corresponding position of the real-time location information on the target map interface according to the first location marker configuration information; The positioning mark is an icon for displaying the user's location in the map interface, and the first positioning mark configuration information is at least used to indicate the size of the positioning mark; In response to closing the currently displayed map interface and opening the target map interface, obtaining the second positioning mark configuration information of the currently displayed map interface; Determine whether the second positioning mark configuration information is consistent with the first positioning mark configuration information; If the judgment result is no, the step of obtaining the first avatar resource corresponding to the pre-registered positioning mark is executed.
2. The method according to claim 1, wherein: The page container provides the first positioning mark configuration information to the rendering engine, specifically including: Writing the first positioning mark configuration information into a domain specific language instruction; The domain specific language instructions are transparently transmitted to the rendering engine.
3. The method according to claim 1, wherein: Also includes: In response to a start-up operation of an application to which the map interface belongs, requesting an avatar resource of the user from a server of the application; Establishing and storing a corresponding relationship between a location marker identifier and the user's avatar resource; Register the positioning mark identifier in the rendering engine.
4. The method according to claim 3, wherein: The rendering engine obtains a first avatar resource corresponding to the pre-registered positioning mark, including: Acquire a pre-registered positioning mark identifier; and read a first avatar resource corresponding to the pre-registered positioning mark identifier from the corresponding relationship.
5. The method according to claim 1, wherein: Also includes: If the judgment result is yes, obtain a second avatar resource corresponding to the avatar icon showing the user's location on the currently displayed map interface; And according to the first positioning mark configuration information, the second avatar resource is rendered at a corresponding position of the target map interface in the real-time positioning information.
6. A method for displaying an icon, wherein: include: In response to an opening operation on a target map interface, obtaining first positioning mark configuration information corresponding to the target map interface; Obtain the user's real-time location information; Obtain a first avatar resource corresponding to a pre-registered location marker; Rendering the first avatar resource at a corresponding position of the real-time positioning information on the target map interface according to the first positioning mark configuration information; The positioning mark is an icon for displaying the user's location in the map interface, and the first positioning mark configuration information is at least used to indicate the size of the positioning mark; In response to closing the currently displayed map interface and opening the target map interface, obtaining the second positioning mark configuration information of the currently displayed map interface; Determine whether the second positioning mark configuration information is consistent with the first positioning mark configuration information; If the judgment result is no, the step of obtaining the first avatar resource corresponding to the pre-registered positioning mark is executed.
7. A computer device, wherein: include: Memory, processor and display component; wherein the memory is used to store computer programs; The processor is coupled to the memory and the display component, and is configured to execute the computer program to perform the steps in the method according to any one of claims 1 to 6.
8. A computer program product, wherein: include: Computer program; the computer program is executed by a processor to implement the method described in any one of claims 1 to 6.
9. A computer-readable storage medium storing computer instructions, wherein: When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the method according to any one of claims 1 to 6.
