CN111680115A - Map custom presentation method and device, computer equipment and storage medium - Google Patents

Map custom presentation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111680115A
CN111680115A CN202010378251.9A CN202010378251A CN111680115A CN 111680115 A CN111680115 A CN 111680115A CN 202010378251 A CN202010378251 A CN 202010378251A CN 111680115 A CN111680115 A CN 111680115A
Authority
CN
China
Prior art keywords
target
map
mode
presentation
address
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
CN202010378251.9A
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.)
China Auto Service Technology Service Co ltd
Original Assignee
China Auto Service Technology Service 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 China Auto Service Technology Service Co ltd filed Critical China Auto Service Technology Service Co ltd
Priority to CN202010378251.9A priority Critical patent/CN111680115A/en
Publication of CN111680115A publication Critical patent/CN111680115A/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
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The embodiment of the invention discloses a custom presentation method of a map, which comprises the steps of receiving a map presentation instruction input by a user, wherein the map presentation instruction comprises a target presentation mode; determining a target map component corresponding to the target presentation mode according to the corresponding relation between the preset presentation mode and the map component; the target map component corresponding to the target presentation mode is called to present the electronic map according to the target presentation mode, so that the user-defined presentation mode of the electronic map is realized, the electronic map can meet different requirements of users, the interactivity between the users and the electronic map is enhanced, and the electronic map can be displayed in a self-defined manner without calling a third-party map component. In addition, a self-defining rendering device of the map, a computer device and a storage medium are also provided.

Description

Map custom presentation method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a map custom presentation method and device, computer equipment and a storage medium.
Background
Currently, map software on mobile terminals plays an increasingly important role in people's lives. However, the current user has various requirements for searching for a location, for example, some users want to search for all locations satisfying the condition at one time, and some users cannot give an accurate location name; some users hope to grasp coordinates and addresses and edit the coordinates and addresses after full name through positioning of the electronic map; some users hope to grab the full name of the address and edit the address after positioning to the designated position through the coordinate; some users hope to be capable of selecting a certain area after setting a map range by themselves; for the requirements, the existing map software is difficult to simultaneously meet the requirements, namely the user cannot present the map in a self-defined mode, and the interactivity is reduced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a map customized presenting method, apparatus, computer device and storage medium capable of improving interactivity between a user and an electronic map without replacing map components.
A method of custom rendering of a map, the method comprising:
receiving a map presenting instruction input by a user, wherein the map presenting instruction comprises a target presenting mode;
determining a target map component corresponding to the target presentation mode according to a corresponding relation between a preset presentation mode and the map component;
and calling a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode.
An apparatus for custom rendering of a map, the apparatus comprising:
the mode acquisition template is used for receiving a map presentation instruction input by a user, wherein the map presentation instruction comprises a target presentation mode;
the component determining module is used for determining a target map component corresponding to the target presentation mode according to the corresponding relation between the preset presentation mode and the map component;
and the map display module is used for calling a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
receiving a map presenting instruction input by a user, wherein the map presenting instruction comprises a target presenting mode;
determining a target map component corresponding to the target presentation mode according to a corresponding relation between a preset presentation mode and the map component;
and calling a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
receiving a map presenting instruction input by a user, wherein the map presenting instruction comprises a target presenting mode;
determining a target map component corresponding to the target presentation mode according to a corresponding relation between a preset presentation mode and the map component;
and calling a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode.
The map custom presentation method, the map custom presentation device, the computer equipment and the storage medium receive a map presentation instruction input by a user, wherein the map presentation instruction comprises a target presentation mode; determining a target map component corresponding to the target presentation mode according to the corresponding relation between the preset presentation mode and the map component; the target map component corresponding to the target presentation mode is called to present the electronic map according to the target presentation mode, so that the user-defined presentation mode of the electronic map is realized, the electronic map can meet different requirements of users, the interactivity between the users and the electronic map is enhanced, and the electronic map can be displayed in a self-defined manner without calling a third-party map component.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow diagram of a method for custom rendering of a map in one embodiment;
FIG. 2 is a flow diagram of a method for presenting an electronic map, according to one embodiment;
FIG. 3 is a flowchart of a method for displaying an electronic map according to another embodiment;
FIG. 4 is a flowchart of a method for displaying an electronic map according to another embodiment;
FIG. 5 is a flowchart of a method for displaying an electronic map according to still another embodiment;
FIG. 6 is a flowchart of a method for displaying an electronic map according to still another embodiment;
FIG. 7 is a block diagram of a custom rendering device for maps in one embodiment;
FIG. 8 is a block diagram showing the construction of a custom presentation device for a map in another embodiment;
FIG. 9 is a block diagram of a computer device in one embodiment.
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.
As shown in fig. 1, in an embodiment, a method for presenting a map by self-definition is provided, where the method for presenting a map by self-definition can be applied to a terminal preinstalled with an electronic map, and the embodiment is exemplified by being applied to a terminal installed with an electronic map. The custom presentation method of the map specifically comprises the following steps:
step 102, receiving a map presenting instruction input by a user, wherein the map presenting instruction comprises a target presenting mode.
The map presentation instruction refers to an instruction for selecting an electronic map presentation mode triggered by a client, and more specifically, the electronic map presentation mode may be a keyword search mode, a coordinate search mode, a track display mode, an area setting mode and/or an address editing mode. In particular, the breaker control request may be triggered by a specific control or instruction for the client. The map presenting instruction comprises a target presenting mode, and the target presenting mode is a mode for indicating the electronic map display required by the user. It can be understood that different users have different requirements on the presentation mode of the electronic map, and therefore, the target presentation mode is used as a basis for selecting and determining the presentation mode of the electronic map, and reference is provided for the presentation mode of the subsequent electronic map.
And 104, determining a target map component corresponding to the target presentation mode according to the corresponding relation between the preset presentation mode and the map component.
The map component refers to an application program for executing a function corresponding to an instruction or a request, and the map component in this embodiment is an application program for executing presentation of an electronic map in a target presentation mode. The map component comprises element data and an element view, wherein the element data is necessary data of map elements in electronic map display, and the element view is a display mode of the map elements of the electronic map. Specifically, the terminal stores mapping tables of map components corresponding to different presentation modes in advance, and searches a target map component matched with the target presentation mode from the mapping tables according to a corresponding relation between a preset presentation mode and the map component. In this embodiment, different target map components are configured in different target presentation modes to form a mapping table. Furthermore, different target map components are stored in the terminal, and the target map components do not need to be reconfigured aiming at a certain presentation mode, so that the software and hardware cost can be saved.
It is worth mentioning that different target presentation modes can be combined to form a new target presentation mode, and meanwhile, element data and element views contained in the target map components corresponding to the different presentation modes are analyzed to determine a new target map component corresponding to the new target presentation mode.
And 106, calling a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode.
Specifically, the terminal displays the electronic map according to the target presentation mode by calling the target map component, so that the electronic map presentation mode can be customized, the electronic map can meet different requirements of a user, the interactivity between the user and the electronic map is enhanced, and the electronic map can be displayed in a self-defined manner without calling a third-party map component.
The self-defined map presenting method comprises the steps of receiving a map presenting instruction input by a user, wherein the map presenting instruction comprises a target presenting mode; determining a target map component corresponding to the target presentation mode according to the corresponding relation between the preset presentation mode and the map component; the target map component corresponding to the target presentation mode is called to present the electronic map according to the target presentation mode, so that the user-defined presentation mode of the electronic map is realized, the electronic map can meet different requirements of users, the interactivity between the users and the electronic map is enhanced, and the electronic map can be displayed in a self-defined manner without calling a third-party map component.
As shown in FIG. 2, in one embodiment, the target presentation mode includes a keyword search mode, a coordinate search mode, a track display mode, a region setting mode, and/or an address editing mode.
The keyword search mode is a mode that a user can display a target address matched with a keyword through the keyword in a map display instruction, for example, the user inputs 'everything' in a search box, and the electronic map can display address information of 'everything' in the world. The coordinate search mode is a mode in which a user can cause the electronic map to show a target address corresponding to a coordinate through the coordinate in the map presentation instruction. The track display mode is a mode in which the user can cause the electronic map to show the track corresponding to the start point and the end point by the start point and the end point in the map presentation instruction. The area setting mode is a mode for labeling an area related to a user. The address editing mode is a mode which can support the user to edit and modify the name of the target address.
Under the condition that the target presentation mode is the keyword search mode, calling a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode, wherein the method comprises the following steps:
step 106A, obtaining target keywords in a map presentation instruction;
step 106B, searching an address successfully matched with the target keyword in a preset address library by a semantic analysis method to serve as a target address;
and 106C, positioning the target address by calling the target map component so as to display the keyword search mode on the electronic map.
The target keyword refers to information related to an address, such as a building name, a road name, and more specifically, a university, such as 985. In particular, the terminal semantically analyzes the target keyword prefix to better understand the logic contained in the search keyword input by the user, thereby more accurately analyzing the user requirements, leading the target address of semantic analysis to be more accurate, the semantic analysis method can be based on the existing semantic analysis algorithm, after completing the semantic analysis, after searching out the target address matched with the address successfully matched with the target keyword, the terminal calls a target map component to position the target address, therefore, the keyword search mode is displayed on the electronic map, and the electronic map can present the target address matched with the keyword only by inputting the keyword, so that the accuracy and comprehensiveness of the search of the keyword search mode are ensured, and the requirement of the user on the electronic map presented by the keyword search mode can be met.
As shown in fig. 3, in an embodiment, in the case that the target presentation mode is the coordinate search mode, invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode includes:
step 106D, obtaining target coordinates in the map presentation instruction, wherein the target coordinates comprise longitude values and latitude values;
106E, searching a map area within at least one preset radius in a circular diffusion mode by taking the target coordinate as a center;
step 106F, acquiring a labeling coordinate corresponding to each labeling position in the map area;
step 106G, determining a target address according to the labeling coordinate and the labeling position;
and 106H, positioning the target address by calling a target map component so as to display a coordinate search mode on the electronic map.
Specifically, for the coordinate search mode, generally, the longitude value and the dimension value in the coordinates of the target address are not accurate enough by the user, for example, the coordinates of the address a are (100.11 ), and the target coordinates input by the user are (90, 90), so in order to improve the efficiency of the coordinate search mode, a map area within at least one preset radius is searched in a circular diffusion manner around the target coordinates, the search range is expanded within a certain range, then the target address can be determined according to the obtained labeled coordinates and labeled positions corresponding to each labeled position in the map area, then the terminal calls the target map component to position the target address, so that the address search mode is displayed on the electronic map, the user only needs to input the coordinates, so that the electronic map can present the target address corresponding to the coordinates, and the accuracy of the coordinate search mode is not only ensured, and can meet the requirement of users for presenting electronic maps in a coordinate search mode.
As shown in fig. 4, in an embodiment, in a case that the target presentation mode is the track display mode, invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode includes:
step 106I, acquiring a track starting point and a track ending point in the map presentation instruction;
step 106J, determining a target navigation track through a path planning method according to the track starting point and the track ending point;
and 106K, presenting the target navigation track by calling the target map component so as to display a track display mode on the electronic map.
Specifically, the target navigation track is determined by a path planning method according to a track starting point and a track end point in the map presentation instruction, wherein the path planning method may be a shortest path algorithm so that the user determines the shortest path, or may be a method in which, in feasible paths corresponding to the track starting point and the track end point, the target navigation track is calculated after weighted calculation analysis is performed according to weights of the feasible paths, so that the actual driving track of the user is obtained. The terminal presents the target navigation track by calling the target map component, so that the track display mode is displayed on the electronic map, and the user can present the track corresponding to the starting point and the end point by only inputting the starting point and the end point, thereby meeting the requirement of the user for presenting the electronic map in the track display mode.
As shown in fig. 5, in an embodiment, in a case that the target presentation mode is the area setting mode, invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode includes:
step 106L, obtaining each address in the map presentation instruction;
step 106M, calculating the frequency of each address, and taking the address with the frequency greater than a preset frequency threshold as a preference address;
step 106N, connecting points corresponding to the preference addresses to obtain a target area;
and 106O, marking the target area by calling the target map component so as to display the area setting mode on the electronic map.
Step 106N, connecting points corresponding to the preference addresses to obtain a target area;
and 106O, marking the target area by calling the target map component so as to display the area setting mode on the electronic map.
Specifically, each address in the map presentation instruction is obtained, the frequency of each address is calculated, and the address with the frequency greater than a preset frequency threshold is used as a preference address; and connecting points corresponding to the preference addresses to obtain a target area, wherein in the embodiment, the target area of the user is determined by counting the address frequency of the user, so that the method has more reasonableness and improves the accuracy of area setting. The terminal marks the target area by calling the target map component, so that the area setting mode is displayed on the electronic map, and the electronic map can display areas corresponding to a plurality of addresses by inputting a plurality of address names by a user, thereby meeting the requirement of the user on displaying the electronic map in the area setting mode.
As shown in fig. 6, in an embodiment, in a case that the target rendering mode is the address editing mode, invoking a target map component corresponding to the target rendering mode to display the electronic map according to the target rendering mode includes:
step 106P, setting the target map component to be in an editable state;
step 106Q, obtaining the name of the address in the map presentation instruction;
and step 106R, editing and saving the name in the target map component in an editable state so as to display the address editing mode on the electronic map.
Specifically, users usually have different interest addresses, and the target map component is set to be in an editable state in order to facilitate personal use of the electronic map by the users; acquiring the name of an address in a map presentation instruction; and editing and storing the name in the target map component in an editable state, so that an address editing mode is displayed on the electronic map, and a user can edit and modify the address name according to the requirement of the user. The interactivity of the electronic map is improved, and the requirement of a user for displaying the electronic map in a track display mode is met.
As shown in fig. 7, in one embodiment, an apparatus for custom rendering of a map is provided, the apparatus comprising:
a mode obtaining module 702, configured to receive a map presentation instruction input by a user, where the map presentation instruction includes a target presentation mode;
a component determining module 704, configured to determine, according to a correspondence between a preset presentation mode and a map component, a target map component corresponding to the target presentation mode;
a map display module 706, configured to invoke a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode.
As shown in FIG. 8, in one embodiment, the target presentation mode includes a keyword search mode, a coordinate search mode, a track display mode, a region setting mode, and/or an address editing mode; in the case that the target presentation mode is the keyword search mode, the map presentation module 706 includes:
a keyword obtaining unit 706A, configured to obtain a target keyword in the map presentation instruction;
the address matching unit 706B is configured to search, in a preset address library, an address successfully matched with the target keyword by using a semantic parsing method, and use the address as a target address;
a first presentation unit 706C for locating the target address by invoking the target map component so that the keyword search mode is presented on the electronic map.
In one embodiment, in the case that the target presentation mode is the coordinate search mode, the map presentation module includes:
the longitude and latitude acquisition unit is used for acquiring a target coordinate in the map presentation instruction, wherein the target coordinate comprises a longitude value and a latitude value;
the searching unit is used for searching at least one map area within a preset radius in a circular diffusion mode from the target coordinate serving as a center to the periphery;
the coordinate acquisition unit is used for acquiring a labeling coordinate corresponding to each labeling position in the map area;
the target address determining unit is used for determining a target address according to the labeling coordinate and the labeling position;
a second presentation unit for locating the target address by invoking the target map component such that the coordinate search mode is presented on the electronic map.
In one embodiment, in the case that the target presentation mode is the trajectory display mode, the map display module includes:
the position determining unit is used for acquiring a track starting point and a track end point in the map presenting instruction;
the track determining unit is used for determining a target navigation track through a path planning method according to the track starting point and the track ending point;
and the third display unit is used for presenting the target navigation track by calling the target map component so as to display the track display mode on the electronic map.
In one embodiment, in the case that the target presentation mode is the area setting mode, the map display module includes:
the address acquisition unit is used for acquiring each address in the map presentation instruction;
the address determination unit is used for calculating the frequency of each address and taking the address with the frequency larger than a preset frequency threshold as a preference address;
the connecting unit is used for connecting points corresponding to the preference addresses to obtain a target area;
and the fourth display unit is used for marking the target area by calling the target map component so as to display the area setting mode on the electronic map.
In one embodiment, in a case where the target presentation mode is the address editing mode, the map presentation module includes:
a state setting unit for setting the target map component to an editable state;
the name acquisition unit is used for acquiring the name of the address in the map presentation instruction by name;
and the fifth display unit is used for editing and saving the name in an editable target map component so as to display the address editing mode on the electronic map.
FIG. 9 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a server including, but not limited to, a high performance computer and a cluster of high performance computers. As shown in fig. 9, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement a custom rendering method of a map. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform a method of custom rendering of a map.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the customized rendering method of the map provided by the present application can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in fig. 9. The memory of the computer device may store therein the various program templates that make up the custom rendering device of the map. Such as mode acquisition module 702, component determination module 704, and map presentation module 706.
A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program: receiving a map presenting instruction input by a user, wherein the map presenting instruction comprises a target presenting mode; determining a target map component corresponding to the target presentation mode according to a corresponding relation between a preset presentation mode and the map component; and calling a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode.
In one embodiment, the target presentation mode includes a keyword search mode, a coordinate search mode, a track display mode, a region setting mode, and/or an address editing mode; when the target presentation mode is the keyword search mode, the invoking a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode includes: acquiring a target keyword in the map presentation instruction; searching an address successfully matched with the target keyword in a preset address library through a semantic analysis method to serve as a target address; locating the target address by invoking the target map component such that the keyword search mode is shown on the electronic map.
In one embodiment, in a case that the target presentation mode is the coordinate search mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map in the target presentation mode includes: acquiring a target coordinate in the map presenting instruction, wherein the target coordinate comprises a longitude value and a latitude value; taking the target coordinate as a center to search a map area within at least one preset radius in a circular diffusion mode towards the periphery; acquiring a labeling coordinate corresponding to each labeling position in the map area; determining a target address according to the labeling coordinate and the labeling position; locating the target address by invoking the target map component such that the coordinate search mode is shown on the electronic map.
In one embodiment, in a case that the target presentation mode is the track display mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode includes: acquiring a track starting point and a track end point in the map presentation instruction; determining a target navigation track by a path planning method according to the track starting point and the track ending point; presenting the target navigation trajectory by invoking the target map component such that the trajectory display mode is shown on the electronic map.
In one embodiment, in a case that the target presentation mode is the area setting mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode includes: acquiring each address in the map presentation instruction; calculating the frequency of each address, and taking the address with the frequency greater than a preset frequency threshold as a preference address; connecting points corresponding to the preference addresses to obtain a target area; labeling the target area by invoking the target map component such that the area setting mode is shown on the electronic map.
In one embodiment, in a case that the target presentation mode is the address editing mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode includes: setting the target map component to an editable state; acquiring the name of an address in the map presentation instruction; editing and saving the name in an editable state target map component so that the address editing mode is shown on the electronic map.
A computer-readable storage medium storing a computer program, the computer program when executed by a processor implementing the steps of: receiving a map presenting instruction input by a user, wherein the map presenting instruction comprises a target presenting mode; determining a target map component corresponding to the target presentation mode according to a corresponding relation between a preset presentation mode and the map component; and calling a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode.
In one embodiment, the target presentation mode includes a keyword search mode, a coordinate search mode, a track display mode, a region setting mode, and/or an address editing mode; when the target presentation mode is the keyword search mode, the invoking a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode includes: acquiring a target keyword in the map presentation instruction; searching an address successfully matched with the target keyword in a preset address library through a semantic analysis method to serve as a target address; locating the target address by invoking the target map component such that the keyword search mode is shown on the electronic map.
In one embodiment, in a case that the target presentation mode is the coordinate search mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map in the target presentation mode includes: acquiring a target coordinate in the map presenting instruction, wherein the target coordinate comprises a longitude value and a latitude value; taking the target coordinate as a center to search a map area within at least one preset radius in a circular diffusion mode towards the periphery; acquiring a labeling coordinate corresponding to each labeling position in the map area; determining a target address according to the labeling coordinate and the labeling position; locating the target address by invoking the target map component such that the coordinate search mode is shown on the electronic map.
In one embodiment, in a case that the target presentation mode is the track display mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode includes: acquiring a track starting point and a track end point in the map presentation instruction; determining a target navigation track by a path planning method according to the track starting point and the track ending point; presenting the target navigation trajectory by invoking the target map component such that the trajectory display mode is shown on the electronic map.
In one embodiment, in a case that the target presentation mode is the area setting mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode includes: acquiring each address in the map presentation instruction; calculating the frequency of each address, and taking the address with the frequency greater than a preset frequency threshold as a preference address; connecting points corresponding to the preference addresses to obtain a target area; labeling the target area by invoking the target map component such that the area setting mode is shown on the electronic map.
In one embodiment, in a case that the target presentation mode is the address editing mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode includes: setting the target map component to an editable state; acquiring the name of an address in the map presentation instruction; editing and saving the name in an editable state target map component so that the address editing mode is shown on the electronic map.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A customized presenting method of a map is based on an electronic map, and is characterized in that the method comprises the following steps:
receiving a map presenting instruction input by a user, wherein the map presenting instruction comprises a target presenting mode;
determining a target map component corresponding to the target presentation mode according to a corresponding relation between a preset presentation mode and the map component;
and calling a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode.
2. The map custom presentation method of claim 1, wherein the target presentation mode comprises a keyword search mode, a coordinate search mode, a track display mode, a region setting mode, and/or an address editing mode;
when the target presentation mode is the keyword search mode, the invoking a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode includes:
acquiring a target keyword in the map presentation instruction;
searching an address successfully matched with the target keyword in a preset address library through a semantic analysis method to serve as a target address;
locating the target address by invoking the target map component such that the keyword search mode is shown on the electronic map.
3. The method of claim 2, wherein in a case that the target presentation mode is the coordinate search mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode comprises:
acquiring a target coordinate in the map presenting instruction, wherein the target coordinate comprises a longitude value and a latitude value;
taking the target coordinate as a center to search a map area within at least one preset radius in a circular diffusion mode towards the periphery;
acquiring a labeling coordinate corresponding to each labeling position in the map area;
determining a target address according to the labeling coordinate and the labeling position;
locating the target address by invoking the target map component such that the coordinate search mode is shown on the electronic map.
4. The method of claim 2, wherein in a case that the target presentation mode is the track display mode, the invoking a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode comprises:
acquiring a track starting point and a track end point in the map presentation instruction;
determining a target navigation track by a path planning method according to the track starting point and the track ending point;
presenting the target navigation trajectory by invoking the target map component such that the trajectory display mode is shown on the electronic map.
5. The method of claim 2, wherein in a case that the target presentation mode is the area setting mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode comprises:
acquiring each address in the map presentation instruction;
calculating the frequency of each address, and taking the address with the frequency greater than a preset frequency threshold as a preference address;
connecting points corresponding to the preference addresses to obtain a target area;
labeling the target area by invoking the target map component such that the area setting mode is shown on the electronic map.
6. The method of claim 2, wherein in a case that the target presentation mode is the address editing mode, the invoking a target map component corresponding to the target presentation mode to present the electronic map according to the target presentation mode comprises:
setting the target map component to an editable state;
acquiring the name of an address in the map presentation instruction;
editing and saving the name in an editable state target map component so that the address editing mode is shown on the electronic map.
7. An apparatus for custom rendering of a map, the apparatus comprising:
the mode acquisition template is used for receiving a map presentation instruction input by a user, wherein the map presentation instruction comprises a target presentation mode;
the component determining module is used for determining a target map component corresponding to the target presentation mode according to the corresponding relation between the preset presentation mode and the map component;
and the map display module is used for calling a target map component corresponding to the target presentation mode to display the electronic map according to the target presentation mode.
8. The custom rendering apparatus of a map according to claim 7, wherein the target rendering mode includes a keyword search mode, a coordinate search mode, a track display mode, a region setting mode, and/or an address editing mode; in a case where the target presentation mode is the keyword search mode, the map presentation module includes:
the keyword acquisition unit is used for acquiring a target keyword in the map presentation instruction;
the address matching unit is used for searching an address successfully matched with the target keyword in a preset address library by a semantic analysis method to serve as a target address;
the first display unit is used for positioning the target address by calling the target map component so as to display the keyword search mode on the electronic map.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of the method of custom rendering of a map as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of a method for custom rendering of a map according to any one of claims 1 to 6.
CN202010378251.9A 2020-05-07 2020-05-07 Map custom presentation method and device, computer equipment and storage medium Pending CN111680115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010378251.9A CN111680115A (en) 2020-05-07 2020-05-07 Map custom presentation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010378251.9A CN111680115A (en) 2020-05-07 2020-05-07 Map custom presentation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111680115A true CN111680115A (en) 2020-09-18

Family

ID=72434168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010378251.9A Pending CN111680115A (en) 2020-05-07 2020-05-07 Map custom presentation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111680115A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1757905A1 (en) * 2005-08-24 2007-02-28 Xanavi Informatics Corporation Navigation apparatus and navigation processing method
CN102915348A (en) * 2012-09-27 2013-02-06 北京百度网讯科技有限公司 Method and system for recommending search information to user in map
CN104848869A (en) * 2015-05-29 2015-08-19 李涛 Map navigation method, map navigation device and map navigation system
CN105868359A (en) * 2016-03-29 2016-08-17 重庆中陆承大科技有限公司 Address information management and control method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1757905A1 (en) * 2005-08-24 2007-02-28 Xanavi Informatics Corporation Navigation apparatus and navigation processing method
CN102915348A (en) * 2012-09-27 2013-02-06 北京百度网讯科技有限公司 Method and system for recommending search information to user in map
CN104848869A (en) * 2015-05-29 2015-08-19 李涛 Map navigation method, map navigation device and map navigation system
CN105868359A (en) * 2016-03-29 2016-08-17 重庆中陆承大科技有限公司 Address information management and control method and system

Similar Documents

Publication Publication Date Title
CN107798557B (en) Electronic device, service place recommendation method based on LBS data and storage medium
US11475088B2 (en) Providing notifications based on geofencing search results
US8782041B1 (en) Text search for weather data
CN105608101B (en) Address utilizes method, device and mobile terminal in text
US10254120B2 (en) API for obtaining geographic location data
EP2518642A1 (en) Method and terminal device for updating word stock
US9811395B1 (en) Multi-platform mapping API
CN103268730A (en) Method and device for displaying associated dimension points on electric map interface
CN109783589B (en) Method, device and storage medium for resolving address of electronic map
US20230194302A1 (en) Method of updating map data, electronic device and storage medium
CN109471909B (en) Method, apparatus and computer readable storage medium for address location
CN112699195A (en) Geospatial data processing method, geospatial data processing device, computer equipment and storage medium
CN113032078A (en) Page display method and device, electronic equipment and computer readable storage medium
CN111680115A (en) Map custom presentation method and device, computer equipment and storage medium
CN112180411A (en) Positioning test method and device, computer equipment and storage medium
CN109613577B (en) Position determination method, device, terminal equipment and storage medium
CN112818024B (en) Map data processing method, device, equipment and storage medium
WO2021139480A1 (en) Gis service aggregation method and apparatus, and computer device and storage medium
CN112432646B (en) Route navigation method, storage medium and equipment
CN113063424B (en) Method, device, equipment and storage medium for intra-market navigation
CN104411001A (en) Information processing method and electronic equipment
CN110909097B (en) Polygonal electronic fence generation method and device, computer equipment and storage medium
US9723088B2 (en) Facilitating users to share physical locations
US7814502B2 (en) Shared landmark user interfaces
CN115930982A (en) Multi-destination navigation method and device, computer equipment and 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