CN112287064A - Rendering method and device for map engine anchor point - Google Patents

Rendering method and device for map engine anchor point Download PDF

Info

Publication number
CN112287064A
CN112287064A CN202011557511.5A CN202011557511A CN112287064A CN 112287064 A CN112287064 A CN 112287064A CN 202011557511 A CN202011557511 A CN 202011557511A CN 112287064 A CN112287064 A CN 112287064A
Authority
CN
China
Prior art keywords
anchor
event
anchor point
triggering
map
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011557511.5A
Other languages
Chinese (zh)
Inventor
吴红静
贾双成
贾郭峰
朱磊
王斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhidao Network Technology Beijing Co Ltd
Original Assignee
Zhidao Network Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhidao Network Technology Beijing Co Ltd filed Critical Zhidao Network Technology Beijing Co Ltd
Priority to CN202011557511.5A priority Critical patent/CN112287064A/en
Publication of CN112287064A publication Critical patent/CN112287064A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a rendering method and a device of a map engine anchor point, wherein the method comprises the following steps: triggering an anchor event in a map engine; under the condition that the thread corresponding to the anchor point event is judged not to be the current thread, the anchor point event is put into a candidate queue with a preset priority level of the anchor point; and under the condition of idle threads, executing rendering processing corresponding to the anchor event according to the anchor candidate queue with the preset priority level. By using the method and the device, the phenomenon of pause in the map rendering process can be avoided, and the user experience is improved.

Description

Rendering method and device for map engine anchor point
Technical Field
The invention relates to the technical field of data processing, in particular to a rendering method and device for a map engine anchor point.
Background
The map engine is a set of function libraries which provide driving and managing geographic data and realize functions such as rendering, inquiring and the like from the view of an application layer, and all application layer software can easily complete the functions only by calling a function interface provided by the map engine. The map engine typically encapsulates and protects the organizational management mechanism of the geographic data, providing map movement, scaling, rendering, spatial querying, etc. to the upper layers.
Map software, i.e., electronic maps, is an application that is built on top of a map engine. With the development of internet technology, the application field of electronic maps is wider and wider, people can use the electronic maps to conveniently acquire various information such as hotels, tourist attractions, dining shops and the like, and the information is acquired based on anchor points added on the maps, namely mark points added by users. In map display, the marked points are generally recalculated and rendered after each map change (such as dragging or zooming). Therefore, when a large number of marked points are drawn in the map, the rendering time of the client is undoubtedly greatly increased, and an obvious pause phenomenon often occurs, which affects user experience.
Disclosure of Invention
The embodiment of the invention provides a rendering method and device for a map engine anchor point, which can avoid the phenomenon of pause in the map rendering process and improve the user experience.
Therefore, the embodiment of the invention provides the following technical scheme:
the embodiment of the invention provides a rendering method of a map engine anchor point, which comprises the following steps:
triggering an anchor event in a map engine;
under the condition that the thread corresponding to the anchor point event is judged not to be the current thread, the anchor point event is put into a candidate queue with a preset priority level of the anchor point;
and under the condition of idle threads, executing rendering processing corresponding to the anchor event according to the anchor candidate queue with the preset priority level.
Optionally, the method further comprises:
and grading the anchor points according to the category number of the anchor points.
Optionally, the method further comprises:
acquiring the category of the anchor point;
and determining the priority level of the anchor point according to the category of the anchor point, and setting a preset priority level candidate queue of the anchor point.
Optionally, the triggering an anchor event in the map engine includes any one of:
triggering an anchor point event in a map engine after receiving a map-based query result;
triggering an anchor point event in a map engine after the position of a guided object is changed during navigation;
and triggering an anchor point event in the map engine after receiving the dragging or zooming operation of the mouse on the map display interface.
Optionally, the method further comprises:
and directly executing the rendering processing corresponding to the anchor event under the condition that the thread corresponding to the anchor event is judged to be the current thread.
A rendering apparatus of a map engine anchor, the apparatus comprising:
the event triggering module is used for triggering an anchor point event in the map engine;
the judging module is used for determining whether the thread corresponding to the anchor point event is the current thread;
the anchor event management module is used for judging whether the thread corresponding to the anchor event is the current thread or not by the judgment module; putting the anchor point event into a candidate queue with a preset priority level of the anchor point;
and the rendering module is used for executing rendering processing corresponding to the anchor point event according to the preset priority level candidate queue of the anchor point under the condition that an idle thread occurs.
Optionally, the apparatus further comprises:
and the setting module is used for grading the anchor points according to the category number of the anchor points.
Optionally, the apparatus further comprises:
the category determination module is used for acquiring the category of the anchor point;
and the queue setting module is used for determining the priority level of the anchor point according to the category of the anchor point and setting a preset priority level candidate queue of the anchor point.
Optionally, the event triggering module is specifically configured to:
triggering an anchor point event in a map engine after receiving a map-based query result;
triggering an anchor point event in a map engine after the position of a guided object is changed during navigation;
and triggering an anchor point event in the map engine after receiving the dragging or zooming operation of the mouse on the map display interface.
Optionally, the apparatus further comprises:
the rendering module is further configured to directly execute the rendering process corresponding to the anchor event when the determining module determines that the thread corresponding to the anchor event is the current thread.
The embodiment of the invention also provides rendering equipment of the map engine anchor point, which comprises a processor, a memory, an input module, an output module and a communication bus; the memory is used for storing an execution instruction, the input module and the output module are used for interacting with a user, the processor, the memory, the input module and the output module are connected through the communication bus, and the processor calls the execution instruction stored in the memory and is used for executing the method of the embodiment of the invention and any possible implementation manner of the method.
Embodiments of the present invention also provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program specifically includes instructions for executing some or all of the steps described in the method according to the embodiments of the present invention.
Embodiments of the present invention also provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps as described in the methods of the embodiments of the present invention. The computer program product may be, for example, a software installation package.
In the technical scheme provided by the embodiment of the invention, anchor points are classified and candidate queues corresponding to various priority levels are set, when an anchor point event is triggered, under the condition that a thread corresponding to the anchor point event is judged not to be a current thread, the anchor point event is firstly put into a preset priority level candidate queue of the anchor point, and when an idle thread is waited, rendering processing corresponding to the anchor point event is executed according to the preset priority level candidate queue of the anchor point, so that the occurrence of a pause phenomenon is effectively reduced, and the user experience is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a rendering method of a map engine anchor point according to an embodiment of the present invention;
fig. 2 is a block diagram of a rendering apparatus for a map engine anchor point according to an embodiment of the present invention;
fig. 3 is another block diagram of a rendering apparatus of a map engine anchor point according to an embodiment of the present invention;
fig. 4 is another structural block diagram of a rendering apparatus of a map engine anchor point according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Furthermore, the terms "first" and "second", etc., are used to distinguish between different objects and are not used to describe a particular order. The following detailed description is made with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a rendering method for a map engine anchor point according to an embodiment of the present invention is shown, where the method at least includes the following steps:
in step 101, an anchor event is triggered in a map engine.
Triggering anchor events in the map engine may include, but is not limited to, any of the following application scenarios:
triggering an anchor point event in a map engine after receiving a map-based query result;
triggering an anchor point event in a map engine after the position of a guided object is changed during navigation;
and triggering an anchor point event in the map engine after receiving the dragging or zooming operation of the mouse on the map display interface.
Based on the wide application of the map engine, the triggering of the anchor point event is not limited to the above situations in the solution of the embodiment of the present invention.
It should be noted that the map engine based application can be configured in a computer, a Mobile Device, and the Mobile Device can include, but is not limited to, a Mobile phone, a Mobile tablet, a Personal Digital Assistant (PDA), a car machine located in an automobile, an intelligent wearable Device (such as a smart watch, a smart bracelet, etc.), a Mobile Internet Device (MID), and the like. The rendering method of the map engine anchor point provided by the embodiment of the invention can be applied to the mobile equipment. For example, when a user performs positioning or navigation in a map engine on a mobile device, a map data acquisition request may be input on an operation interface of the map engine. Specifically, the user may perform manual input through a touch screen and/or a keyboard on the mobile device, or may perform voice input through a microphone (e.g., a microphone) built in the mobile device. The mobile equipment analyzes a map data acquisition request input by a user to obtain a to-be-displayed area and information such as a first scaling for the to-be-displayed area, and the map display range can be determined according to the to-be-displayed area.
Furthermore, because a large number of different types of mark points may be drawn in the map, and in some applications, it is not necessary to render all the mark points on the current map interface, in another embodiment of the method of the present invention, anchor points of different types may be classified and managed, and then loaded when loading is needed, and hidden when loading is not needed, i.e., loaded as needed, so that the workload of re-rendering the map can be effectively reduced, and the loading efficiency can be improved. Which anchors need to be loaded and which anchors do not need to be loaded can be determined according to actual application needs.
Step 102, judging whether the thread corresponding to the anchor event is a current thread; if not, step 103 is performed.
Step 103, putting the anchor event into a candidate queue with a preset priority level of the anchor.
In a multi-threaded environment, different anchor events may be triggered in different threads, while some threads may not be under the control of, i.e., should not be triggered at, the current thread. The current thread refers to a thread when the current operation is triggered, and is not necessarily an application main thread. Thus, when an anchor event is triggered, the associated resources may not be ready such that the program crashes or bugs.
In the embodiment of the present invention, when an anchor event is triggered, it is checked whether a thread where the anchor event is located is a current thread, that is, whether resources related to the anchor are ready is checked, and whether to execute rendering processing corresponding to the anchor event is determined according to a check result.
In order to enable the anchor point event which is not triggered by the current thread to be sequentially processed, the anchor points can be classified and candidate queues corresponding to various priority levels can be set.
The anchor point refers to a marked point in the map, and can be any point marked by a user, such as a hotel, a park, a school, a hospital and the like.
In the embodiment of the invention, all anchor points can be classified, and anchor points of different classes can adopt different icons or contents.
Considering that the importance of different anchor events may not be the same, some anchor events are urgent and need to be executed immediately, while some are not so important and can be suspended. To this end, embodiments of the present invention rank anchors, that is, prioritize the execution of anchor events. In particular, the anchors may be ranked according to their number of categories, the number of priority levels being equal to or less than the number of categories of the anchor. Of course, other ways may be adopted to grade the anchor points according to the actual application requirements, and the embodiment of the present invention is not limited.
Correspondingly, when the anchor event is placed in the anchor candidate queue with the preset priority level, the category of the anchor needs to be obtained first, for example, the category of the anchor can be obtained from a database, then the priority level of the anchor can be determined according to the category of the anchor, and the anchor candidate queue with the preset priority level is set.
And 104, under the condition of idle threads, executing rendering processing corresponding to the anchor event according to the priority level candidate queue of the anchor.
Of course, when it is determined that the thread corresponding to the anchor event is the current thread, the rendering process corresponding to the anchor event may be directly performed.
According to the rendering method of the map engine anchor point provided by the embodiment of the invention, the anchor point is classified and the candidate queues corresponding to the priority levels are set, when the anchor point event is triggered, the anchor point event is firstly put into the preset priority level candidate queue of the anchor point under the condition that the thread corresponding to the anchor point event is judged not to be the current thread, and when an idle thread appears, the rendering processing corresponding to the anchor point event is executed according to the preset priority level candidate queue of the anchor point, so that the hysteresis phenomenon appearing in the rendering of the anchor point is effectively reduced, and the user experience is greatly improved. By using the scheme of the invention, the anchor point rendering efficiency can be improved, and the waste of system resources caused by the fact that the same event is triggered for multiple times can be avoided.
Correspondingly, an embodiment of the present invention further provides a rendering apparatus for a map engine anchor point, as shown in fig. 2, which is a schematic structural diagram of the apparatus.
In this embodiment, the apparatus includes the following modules:
an event triggering module 201, configured to trigger an anchor event in a map engine;
a determining module 202, configured to determine whether a thread corresponding to the anchor event is a current thread;
the anchor event management module 203 is configured to place the anchor event into a candidate queue with a preset priority level of the anchor under the condition that the determining module 202 determines that the thread corresponding to the anchor event is not the current thread;
and the rendering module 204 is configured to, in the presence of an idle thread, execute rendering processing corresponding to the anchor event according to the anchor candidate queue with the preset priority level.
In the embodiment of the present invention, the event triggering module 201 may trigger an anchor event in any one of the following cases:
triggering an anchor point event in a map engine after receiving a map-based query result;
triggering an anchor point event in a map engine after the position of a guided object is changed during navigation;
and triggering an anchor point event in the map engine after receiving the dragging or zooming operation of the mouse on the map display interface.
Based on the wide application range of the map engine, the triggering of the anchor point event in the solution of the embodiment of the present invention is not limited to the above situations, and is not listed here.
In addition, in another embodiment of the apparatus of the present invention, the rendering module 204 is further configured to directly execute the rendering process corresponding to the anchor event when the determining module 202 determines that the thread corresponding to the anchor event is the current thread.
In order to enable the anchor point event which is not triggered by the current thread to be processed orderly subsequently, in another embodiment of the device of the present invention, the anchor points may be ranked and candidate queues corresponding to the respective priority levels may be set.
Fig. 3 is another block diagram of a rendering apparatus of a map engine anchor point according to an embodiment of the present invention.
Unlike the embodiment shown in fig. 2, in this embodiment, the apparatus further includes:
a setting module 301, configured to rank anchor points according to their category numbers;
a category determination module 302, configured to obtain a category of the anchor point;
a queue setting module 303, configured to determine the priority level of the anchor point according to the category of the anchor point, and set a candidate queue of a preset priority level of the anchor point.
In this embodiment of the present invention, the setting module 301 may specifically rank the anchor points according to the number of categories of the anchor points, where the number of priority levels is equal to or less than the number of categories of the anchor points. Of course, other ways may be adopted to grade the anchor points according to the actual application requirements, and the embodiment of the present invention is not limited.
According to the rendering device of the map engine anchor point provided by the embodiment of the invention, the anchor point is classified and the candidate queues corresponding to the priority levels are set, when the anchor point event is triggered, the anchor point event is firstly put into the preset priority level candidate queue of the anchor point under the condition that the thread corresponding to the anchor point event is judged not to be the current thread, and when an idle thread appears, the rendering processing corresponding to the anchor point event is executed according to the preset priority level candidate queue of the anchor point, so that the hysteresis phenomenon appearing in the rendering of the anchor point is effectively reduced, and the user experience is greatly improved. By using the scheme of the invention, the anchor point rendering efficiency can be improved, and the waste of system resources caused by the fact that the same event is triggered for multiple times can be avoided.
The rendering method and device of the map engine anchor point provided by the embodiment of the invention can be applied to various map-based application environments, such as map-based query, navigation system, interest point recommendation, vehicle real-time monitoring and other applications.
Referring to fig. 4, an embodiment of the present invention further provides a rendering apparatus 400 for a map engine anchor, where the apparatus 400 may be used to execute the rendering method for a map engine anchor provided by the embodiment of the present invention. The apparatus 400 may be the mobile device described in the foregoing embodiments, or may be a component of the mobile device. As shown in fig. 3, the apparatus 400 may include: at least one processor 401, such as a Central Processing Unit (CPU), a memory 402, at least one input module 403, at least one output module 404, and the like. Wherein the components are communicatively coupled via one or more communication buses 405. Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 3 is not intended to limit embodiments of the present invention, and may be a bus or star configuration, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
in the embodiment of the present invention, the memory 402 may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 402 may optionally be at least one storage device located remotely from the aforementioned processor 401. As shown in fig. 4, the memory 402 may include one or more execution instructions (programs), data (e.g., hierarchical data), etc., and the embodiments of the present invention are not limited thereto.
In the embodiment of the present invention, the input module 403 may be configured to receive various operation instructions input by a user, and may include, but is not limited to, a touch screen, a key, a voice pickup (e.g., a microphone), and the like. The output module 404 may be used to output various types of data information, which may include, but is not limited to, a display screen, a touch screen, a speaker, and the like.
In the apparatus shown in fig. 4, the processor 401 may be configured to call one or more execution instructions stored in the memory 402 to perform some or all of the steps of the above-described embodiment of the method of the present invention.
The modules or sub-modules in all embodiments of the present invention may be implemented by a general-purpose Integrated Circuit such as a CPU, or by an ASIC (Application Specific Integrated Circuit).
Embodiments of the present invention also provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program specifically includes instructions, which may be used to perform some or all of the steps described in the method provided by the embodiments of the present invention. The computer readable storage medium may be located in the rendering device of the map engine anchor point provided in the foregoing embodiments.
Embodiments of the present invention also provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps as described in the method provided by the embodiments of the present invention. For example, the computer program product may be a software installation package, and the computer may be the rendering device applied to a map engine anchor point as provided in the previous embodiments.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The unit modules in the device provided by the embodiment of the invention can be combined, divided and deleted according to actual needs.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The rendering method of the map engine anchor point and the related device provided by the embodiment of the invention are described in detail above, a specific example is applied in the text to explain the principle and the embodiment of the invention, and the description of the above embodiment is only used to help understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A rendering method for a map engine anchor, the method comprising:
triggering an anchor event in a map engine;
under the condition that the thread corresponding to the anchor point event is judged not to be the current thread, the anchor point event is put into a candidate queue with a preset priority level of the anchor point;
and under the condition of idle threads, executing rendering processing corresponding to the anchor event according to the anchor candidate queue with the preset priority level.
2. The method of claim 1, further comprising:
and grading the anchor points according to the category number of the anchor points.
3. The method of claim 2, further comprising:
acquiring the category of the anchor point;
and determining the priority level of the anchor point according to the category of the anchor point, and setting a preset priority level candidate queue of the anchor point.
4. The method of claim 1, wherein triggering an anchor event in a map engine comprises any one of:
triggering an anchor point event in a map engine after receiving a map-based query result;
triggering an anchor point event in a map engine after the position of a guided object is changed during navigation;
and triggering an anchor point event in the map engine after receiving the dragging or zooming operation of the mouse on the map display interface.
5. The method according to any one of claims 1 to 4, further comprising:
and directly executing the rendering processing corresponding to the anchor event under the condition that the thread corresponding to the anchor event is judged to be the current thread.
6. An apparatus for rendering a map engine anchor, the apparatus comprising:
the event triggering module is used for triggering an anchor point event in the map engine;
the judging module is used for determining whether the thread corresponding to the anchor point event is the current thread;
the anchor event management module is used for judging whether the thread corresponding to the anchor event is the current thread or not by the judgment module; putting the anchor point event into a candidate queue with a preset priority level of the anchor point;
and the rendering module is used for executing rendering processing corresponding to the anchor point event according to the preset priority level candidate queue of the anchor point under the condition that an idle thread occurs.
7. The apparatus of claim 6, further comprising:
and the setting module is used for grading the anchor points according to the category number of the anchor points.
8. The apparatus of claim 7, further comprising:
the category determination module is used for acquiring the category of the anchor point;
and the queue setting module is used for determining the priority level of the anchor point according to the category of the anchor point and setting a preset priority level candidate queue of the anchor point.
9. The apparatus of claim 6, wherein the event triggering module is specifically configured to:
triggering an anchor point event in a map engine after receiving a map-based query result;
triggering an anchor point event in a map engine after the position of a guided object is changed during navigation;
and triggering an anchor point event in the map engine after receiving the dragging or zooming operation of the mouse on the map display interface.
10. The apparatus of any one of claims 6 to 9, further comprising:
the rendering module is further configured to directly execute the rendering process corresponding to the anchor event when the determining module determines that the thread corresponding to the anchor event is the current thread.
CN202011557511.5A 2020-12-25 2020-12-25 Rendering method and device for map engine anchor point Pending CN112287064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011557511.5A CN112287064A (en) 2020-12-25 2020-12-25 Rendering method and device for map engine anchor point

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011557511.5A CN112287064A (en) 2020-12-25 2020-12-25 Rendering method and device for map engine anchor point

Publications (1)

Publication Number Publication Date
CN112287064A true CN112287064A (en) 2021-01-29

Family

ID=74426305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011557511.5A Pending CN112287064A (en) 2020-12-25 2020-12-25 Rendering method and device for map engine anchor point

Country Status (1)

Country Link
CN (1) CN112287064A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564246A (en) * 2022-02-18 2022-05-31 北京炎黄盈动科技发展有限责任公司 Method, device, equipment and medium for drawing graph anchor points on line

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591721A (en) * 2011-12-30 2012-07-18 北京新媒传信科技有限公司 Method and system for distributing thread execution task
US20130027346A1 (en) * 2011-07-27 2013-01-31 Andriy Yarosh Method and apparatus for parallel scanning and data processing for touch sense arrays
CN106156216A (en) * 2015-04-26 2016-11-23 上海为臻信息科技有限公司 The response optimization method that massive map data scales in real time
CN107430627A (en) * 2015-04-01 2017-12-01 微软技术许可有限责任公司 The priority ranking request of map layer
CN107590226A (en) * 2017-09-05 2018-01-16 中国电子科技集团公司第二十八研究所 A kind of map vector rendering intent based on tile
CN109710716A (en) * 2018-12-24 2019-05-03 成都四方伟业软件股份有限公司 Map smoothness rendering method, terminal device and computer readable storage medium
CN109765989A (en) * 2017-11-03 2019-05-17 奥多比公司 The dynamic mapping of virtual and physics interaction
CN111562894A (en) * 2019-02-14 2020-08-21 阿里巴巴集团控股有限公司 Layer display method, device and equipment
CN111739136A (en) * 2019-06-14 2020-10-02 腾讯科技(深圳)有限公司 Rendering method, computer device, and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130027346A1 (en) * 2011-07-27 2013-01-31 Andriy Yarosh Method and apparatus for parallel scanning and data processing for touch sense arrays
CN102591721A (en) * 2011-12-30 2012-07-18 北京新媒传信科技有限公司 Method and system for distributing thread execution task
CN107430627A (en) * 2015-04-01 2017-12-01 微软技术许可有限责任公司 The priority ranking request of map layer
CN106156216A (en) * 2015-04-26 2016-11-23 上海为臻信息科技有限公司 The response optimization method that massive map data scales in real time
CN107590226A (en) * 2017-09-05 2018-01-16 中国电子科技集团公司第二十八研究所 A kind of map vector rendering intent based on tile
CN109765989A (en) * 2017-11-03 2019-05-17 奥多比公司 The dynamic mapping of virtual and physics interaction
CN109710716A (en) * 2018-12-24 2019-05-03 成都四方伟业软件股份有限公司 Map smoothness rendering method, terminal device and computer readable storage medium
CN111562894A (en) * 2019-02-14 2020-08-21 阿里巴巴集团控股有限公司 Layer display method, device and equipment
CN111739136A (en) * 2019-06-14 2020-10-02 腾讯科技(深圳)有限公司 Rendering method, computer device, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564246A (en) * 2022-02-18 2022-05-31 北京炎黄盈动科技发展有限责任公司 Method, device, equipment and medium for drawing graph anchor points on line

Similar Documents

Publication Publication Date Title
US10445083B2 (en) Application containers with dynamic sub-package loading
EP3403177B1 (en) Managing delivery of code and dependent data using application containers
US9954989B2 (en) Lock screen graphical user interface
US8843833B2 (en) Information-processing device and program
CN107277225B (en) Method and device for controlling intelligent equipment through voice and intelligent equipment
KR20150071252A (en) Method and apparatus for controlling a composition of a picture in electronic device
CN103616992A (en) Method and device for controlling application programs
CN108769234B (en) Application downloading method and device, storage medium and electronic equipment
US11431182B2 (en) Resource statistics collection method and apparatus and terminal
CN111240777A (en) Dynamic wallpaper generation method and device, storage medium and electronic equipment
KR20170067744A (en) Navigating application interface
CN112287064A (en) Rendering method and device for map engine anchor point
EP2328087A1 (en) Information processing device and program
WO2022017328A1 (en) Method for displaying lock screen interface of electronic device and electronic device
CN107562747B (en) Information display method and system, electronic equipment and database
CN112732652A (en) Information display method and device and electronic equipment
CN111930873A (en) Data processing method applied to map engine and related device
CN114546113A (en) Menu operation method and device, storage medium and electronic equipment
CN112005217A (en) Independent thread API call to service a request
CN114510334A (en) Class instance calling method and device, electronic equipment and automatic driving vehicle
CN110377654B (en) Data request processing method and device, electronic equipment and computer-readable storage medium
CN113535285A (en) Interface display method, device, equipment and storage medium
CN113906411A (en) Contextual feedback for natural understanding systems in chat robots
CN112287249A (en) Rendering method and device for map engine small-area events
CN112988160B (en) Server compiling method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210129

RJ01 Rejection of invention patent application after publication