CN113127584A - Map annotation method, device, electronic equipment and storage medium - Google Patents

Map annotation method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113127584A
CN113127584A CN201911419616.1A CN201911419616A CN113127584A CN 113127584 A CN113127584 A CN 113127584A CN 201911419616 A CN201911419616 A CN 201911419616A CN 113127584 A CN113127584 A CN 113127584A
Authority
CN
China
Prior art keywords
target map
map
contact
target
container
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
CN201911419616.1A
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.)
Shenzhen Intellifusion Technologies Co Ltd
Original Assignee
Shenzhen Intellifusion Technologies 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 Shenzhen Intellifusion Technologies Co Ltd filed Critical Shenzhen Intellifusion Technologies Co Ltd
Priority to CN201911419616.1A priority Critical patent/CN113127584A/en
Publication of CN113127584A publication Critical patent/CN113127584A/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

Abstract

The embodiment of the invention provides a map annotation method, a map annotation device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring pixel coordinates of the contact in a target map container; calculating the actual longitude and latitude coordinates of the contact in a target map according to the pixel coordinates; and selecting a preset identifier which is preset based on the actual longitude and latitude coordinates to render the contact. According to the invention, the pixel coordinates of the contact points in the target map container are determined, the pixel coordinates are converted into the actual longitude and latitude coordinates, the contact points are rendered based on the actual longitude and latitude coordinates and the preset identification, and then the target label object can be rendered on the target map, so that a user can conveniently label the target label object which needs to be labeled on the target map according to the self requirement. And further improving the labeling effect of labeling the target label on the target map.

Description

Map annotation method, device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of maps, in particular to a map annotation method, a map annotation device, electronic equipment and a storage medium.
Background
Currently, the prior art provides basic map display, zoom, drag, search, location, trajectory display, and the like. Different geographic positions can be displayed according to user requirements, the position of the label on the map can be accurately known, and the label and the map can be clicked to generate interaction. However, in the prior art, the display mode of the label on the map is single. The user can not label the target label style which the user wants according to the customization of the use scene. Therefore, the labeling effect of the label of the map in the prior art is poor.
Disclosure of Invention
The embodiment of the invention provides a map annotation method which can improve the annotation effect of labeling a target annotation on a target map.
In a first aspect, an embodiment of the present invention provides a map annotation method, where the method includes:
acquiring pixel coordinates of the contact in a target map container;
calculating the actual longitude and latitude coordinates of the contact in a target map according to the pixel coordinates;
and selecting a preset identifier which is preset based on the actual longitude and latitude coordinates to render the contact.
Optionally, before the obtaining the pixel coordinates of the touch point in the target map container, the method further includes:
when a target map is opened, judging whether a contact point is stored in the target map container;
if the target map container does not store the contact, detecting whether a click command exists on a target map interface in real time;
if the target map interface has a click command, determining that the target map container generates a contact, and executing the step of acquiring the pixel coordinates of the contact in the target map container;
or, if the target map container already stores the touch point, executing the step of acquiring the pixel coordinate of the touch point in the target map container.
Optionally, the method further includes:
when a new contact is detected, calculating the number of the existing contacts in the target map container;
judging whether the number of the existing contacts exceeds the preset number of contacts or not;
if the number of the existing contacts exceeds the preset number of contacts, judging whether the existing contacts need to be cleared;
if the existing contact needs to be cleared, clearing the existing contact in the target map container;
and after the existing contact in the target map container is cleared, executing the step of determining that the target map container generates the contact if the target map interface has a click command.
Optionally, before the obtaining the pixel coordinates of the touch point in the target map container, the method further includes:
acquiring an operation instruction for replacing the current map background of the target map;
and taking a preset target picture as a new map background of the target map according to the operation instruction.
Optionally, after the preset identifier selected based on the actual longitude and latitude coordinates is used to render the contact, the method further includes:
and displaying the preset identification corresponding to the rendered contact on the new map background of the target map.
Optionally, the pixel coordinates of the target map container correspond to the pixel coordinates of the new map background.
In a second aspect, an embodiment of the present invention further provides a map annotation apparatus, where the apparatus includes:
the pixel coordinate acquisition module is used for acquiring the pixel coordinates of the contact in the target map container;
the latitude and longitude coordinate calculation module is used for calculating the actual latitude and longitude coordinates of the contact in a target map according to the pixel coordinates;
and the rendering module is used for selecting a preset identifier to render the contact based on the actual longitude and latitude coordinates.
Optionally, before the pixel coordinate obtaining module, the apparatus further includes:
the first judgment module is used for judging whether the target map container stores the contact points or not when the target map is opened;
the detection module is used for detecting whether a click instruction exists on the target map interface in real time if the contact is not stored in the target map container;
the determining module is used for determining that the target map container generates a contact point if the target map interface has a click instruction, and executing the step of acquiring the pixel coordinates of the contact point in the target map container;
or, the first loop module is configured to execute the step of obtaining the pixel coordinates of the touch point in the target map container if the target map container already stores the touch point.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: the map annotation method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the map annotation method provided by the embodiment.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps in the map annotation method provided in the foregoing embodiment.
In the embodiment of the invention, the pixel coordinates of the contact in the target map container are obtained; calculating the actual longitude and latitude coordinates of the contact in a target map according to the pixel coordinates; and selecting a preset identifier which is preset based on the actual longitude and latitude coordinates to render the contact. According to the invention, the pixel coordinates of the contact points in the target map container are determined, the pixel coordinates are converted into the actual longitude and latitude coordinates, the contact points are rendered based on the actual longitude and latitude coordinates and the preset identification, and then the target label object can be rendered on the target map, so that a user can conveniently label the target label object which needs to be labeled on the target map according to the self requirement. And further improving the labeling effect of labeling the target label on the target map.
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.
Fig. 1 is a flowchart of a picture archiving method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another map annotation method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a method for displaying a place icon according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating another map annotation method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a module of a map note device according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of another map annotation device according to an embodiment of the present invention;
FIG. 7 is a block diagram of another map annotation device according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of another map annotation device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device 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.
Referring to fig. 1, fig. 1 is a flowchart of a picture archiving method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
and 101, acquiring pixel coordinates of the touch point in the target map container.
The contact points are points generated after the user clicks on the map interface. In specific implementation, the map interface is clicked by a user through a mouse, a finger, an electronic pen, and the like, and in this embodiment, the map interface is mainly clicked by the mouse. The target map container comprises a pixel coordinate system and pixel points of the target map and pixel coordinates corresponding to each pixel point. The pixel coordinate is an offset generated after clicking the target map. The target map is a map currently used by the user. The user is an engineer of the target map project or a worker having the ability to configure, etc. The pixel coordinates of the touch point in the target map are actually the specific position of the touch point in the target map. The location of the touch point may be used to represent the location of the target marker in the target map. The target object may be a camera, a building, a road entrance, a service site, or the like, and in this embodiment, the target object is mainly a camera. Determining the pixel coordinates of the touch point in the target map container may also be referred to as determining the pixel coordinates of the target marker in the target map container. When the target map is used as a building map, the camera may be a camera provided in a building, and when the target map is used as a road map, the camera may be a monitoring camera provided on a road, or the like.
Specifically, when there is a touch point in the target map container, the pixel coordinates of the touch point relative to the target map container are correspondingly obtained according to the offset generated when the touch point is generated relative to the background of the target map.
And 102, calculating the actual longitude and latitude coordinates of the contact points in the target map according to the pixel coordinates.
The actual longitude and latitude coordinates are the longitude and latitude coordinates of the earth, and can also be called as geographical coordinates.
Specifically, after the pixel coordinates of the contact point in the target map container are obtained, the container point mark may be used to convert the pixel coordinates of the contact point in the target map container into the actual longitude and latitude coordinates of the earth. It should be noted that, when the pixel coordinates and the actual longitude and latitude coordinates are converted, the conversion is performed according to a preset scaling between the target map and the actual longitude and latitude of the earth.
And 103, selecting a preset identifier to render the contact based on the actual longitude and latitude coordinates.
The preset mark can be an icon, a picture, a symbol, a character and the like; for example, if the contact is to be rendered as a camera icon, the preset camera icon may be selected to render the contact.
Specifically, after the actual longitude and latitude corresponding to the contact point is determined, the contact point can be rendered according to the actual longitude and latitude corresponding to the contact point and according to the preset identification of the target marker, so that the target marker corresponding to the contact point and the position of the target marker in the target map container are obtained.
In the embodiment of the invention, the pixel coordinates of the contact in the target map container are obtained; calculating the actual longitude and latitude coordinates of the contact in a target map according to the pixel coordinates; and selecting a preset identifier which is preset based on the actual longitude and latitude coordinates to render the contact. According to the invention, the pixel coordinates of the contact points in the target map container are determined, the pixel coordinates are converted into the actual longitude and latitude coordinates, the contact points are rendered based on the actual longitude and latitude coordinates and the preset identification, and then the target label object can be rendered on the target map, so that a user can conveniently label the target label object which needs to be labeled on the target map according to the self requirement. And further improving the labeling effect of labeling the target label on the target map.
Referring to fig. 2, fig. 2 is a schematic flowchart of another map annotation method according to an embodiment of the present invention, and on the basis of fig. 1, before step 101, the method further includes:
step 201, when the target map is opened, judging whether the contact points are stored in the target map container.
Step 202, if the contact point is not stored in the target map container, detecting whether the target map interface has a click command in real time.
Step 203, if the target map interface has a click command, determining that the target map container generates a touch point, and executing the step of acquiring the pixel coordinates of the touch point in the target map container.
Or, in step 204, if the contact point is already stored in the target map container, the step of acquiring the pixel coordinate of the contact point in the target map container is executed.
Specifically, when the user starts the target map, if the target map has been used before, the contact points may have already been saved in the target map container, that is, when the user uses the target map before, the user clicks the target map interface, so that the corresponding contact points are generated, and the contact points may also be rendered and saved. Therefore, each time the target map is started, it is necessary to determine whether the contact point already exists in the target map. If the object map container has no touch point, it indicates that the user did not click the object map interface before using the object map container, and thus no touch point is generated, or it may indicate that the user uses the object map for the first time. At this time, whether the target map interface generates a click instruction needs to be detected in real time, and when the target map interface is detected to have the click instruction, it can be shown that a user clicks the target map interface through a mouse, and an offset is generated according to the mouse relative to the background of the target map, so that a corresponding contact generated in the target map container can be determined. It can be said that the object map container creates a new touch point. As the user continues to click on the target map interface, the target map container will generate a corresponding number of touch points. After determining that the touch points already exist in the target map container, step 101 may be repeatedly performed to obtain the corresponding pixel coordinates of each touch point in the target map container. This facilitates the step 102 and 103 of rendering each contact.
Alternatively, when the user starts the target map, if there is a touch point already in the target map container, it indicates that the user has used the target map before, and the user clicks the target map interface of the target map to generate a touch point, and the touch point at this time may be referred to as a history touch point. If the object map container in the historical usage record corresponding to the object map has already recorded the touch point, step 101 may be performed directly to obtain the pixel coordinates of the historical touch point in the object map container. Step 102 and step 103 are executed again to render the historical contact, where the rendering process can be understood as a process of restoring the rendering process of the historical contact to obtain the rendering label of the historical contact. It should be noted that there may be one or more history contacts in the process, and when there are a plurality of history contacts, the step 101-.
In the embodiment of the invention, historical contact points in the target map container can be rendered, and contact points generated after the target map container is rendered can also be rendered, so that all contact points in the target map container can be rendered and recorded. The target marker corresponding to the historical contact and the contact generated later and the position of the corresponding target marker in the target map container can be combined by a user conveniently in the using process.
The target map may be started through a browser, or may be started through application software (APP).
Optionally, referring to fig. 3 and fig. 3, a flowchart of another method for icon annotation provided in the embodiment of the present invention is shown. On the basis of fig. 1, the method further comprises:
step 301, when a new contact is detected, calculating the existing number of contacts in the target map container.
Step 302, judging whether the number of the existing contacts exceeds the preset number of contacts.
And 303, if the number of the existing contacts exceeds the preset number of the contacts, judging whether the existing contacts need to be cleared.
And step 304, if the existing contact points need to be cleared, clearing the existing contact points in the target map container.
Step 305, after clearing the existing contacts in the target map container, execute step 202.
The new contact is a contact newly generated after the target map is opened, and is not a contact existing before the target map container. The preset number of the contacts is the preset maximum number of the contacts. The number of the existing contacts is the number of the contacts actually existing in the target map container.
Specifically, after the target map is opened, when the user clicks the target map interface each time, once a new contact is generated, the number of existing contacts in the target map container needs to be calculated, and whether the number of contacts actually existing in the target map container exceeds the preset maximum number of contacts is judged. If the number of the contacts actually existing in the target map exceeds the preset maximum number of the contacts, the number of the contacts in the target map container is excessive, when the contacts are rendered, the corresponding target markers are excessive, the corresponding storage number is also relatively excessive, when the contacts are displayed on the background of the target map, the displayed target markers on the target map interface are too many, dense and numb, influence on appearance is caused, and the contacts are inconvenient for a user to view. Moreover, when the target map is changed to the use scene, the reusability of the target map is low. This may reduce the usability and the like of the target map. At this time, it is necessary to determine whether or not the existing contact of the target map container needs to be deleted, that is, whether or not the history contact needs to be deleted. And when the user determines to delete the historical contact, directly deleting the data corresponding to the existing contact. When the existing contact in the target map container is deleted, step 202 is executed to detect whether the target map container generates a new contact.
Further, when the user determines that the existing contact of the target map container does not need to be deleted, the offset generated based on the point clicking the target map interface relative to the background of the target map can be obtained, that is, the corresponding pixel coordinate of the new contact in the target map container is directly obtained, and the pixel coordinate of the contact in the target map container is converted into the actual longitude and latitude coordinate of the earth through the contexturpoin ToLatLng (container point mark). And rendering the new contact according to the actual longitude and latitude coordinates.
In the embodiment of the invention, the number of the existing contacts in the target map container can be detected in real time, the number of the existing contacts is compared with the preset maximum number of the contacts, and if the number of the existing contacts exceeds the preset maximum number of the contacts, the existing contacts of the target map container can be eliminated, so that the number of the contacts of the target map container can be reduced, and the use performance of the target map can be improved.
Optionally, referring to fig. 4 and fig. 4, which are schematic flow diagrams of another map annotation method provided by an embodiment of the present invention, on the basis of fig. 1, before step 101, the method further includes:
step 401, obtaining an operation instruction for replacing the current map background of the target map.
And step 402, taking a preset target picture as a new map background of the target map according to the operation instruction.
The operation instruction is a preset instruction used for executing the change of the background of the target map. The operation instruction can be triggered by clicking a corresponding operation frame on the target map interface by the user. The preset target picture is a preset user-defined picture which can be used as a map background. The custom pictures can be stored in the picture database, and the number and the types of the custom pictures can be multiple, so that the requirements of users on map backgrounds can be met in different use scenes, and the visual effect is enriched. The user can select the required picture to generate a new map background according to the using scene to replace the currently used map background of the target map.
Specifically, when the target map is configured, the background of the target map can be replaced by using a preset target picture according to the needs of the use scene of the target map, so that different needs are met. The background of the target map is replaced when the target map is installed and configured. For example, company a develops a certain target map project, the target map project is mainly served by a public security department or a traffic management department, and when the public security department or the traffic management department uses the target map, engineers of the target map project of company a or workers with configuration capability can be required to set corresponding target map backgrounds for the departments according to the use scenes of the target map. For example, when the target map is used as a road map, a preset road background picture may be used as a background of the target map. When the target map is used as a building map, a preset building picture can be used as the background of the target map.
For example, if the target object to be marked in the target map is a camera, when the target map is used as a building map, the camera may be a camera arranged in a building, so that the user can mark each camera on the building map to a corresponding position. When the target map is used as a road map, the cameras can be monitoring cameras arranged on the road, so that a user can mark each camera to a corresponding position on the building map. Therefore, the user can intuitively know the position of each camera in the target map.
It should be noted that, the user-defined picture is used as the map background of the target map, which does not affect the map function of the target map, and is only convenient for the user to use or for the user to enrich the visual effect of the target map when using the target map.
It should be noted that, the target map has many usage scenarios, the tile display of the open source map is the same, and the displayed map background is single and not in line with the actual usage situation in different usage scenarios.
In the embodiment of the invention, the user-defined picture can be selected to be used as the map background of the target map according to different use scenes of the target map, so that the visual effect can be enriched, the use scenes can be met, and the characteristics of the map are reserved.
Optionally, after the preset identifier is selected based on the actual longitude and latitude coordinates to render the contact, the method further includes:
and displaying the preset identification corresponding to the rendered contact on the new map background of the target map.
And the new map background is the map background which is replaced when the target map is configured.
Specifically, after the touch point rendering is completed, the rendered corresponding preset identifier may be directly displayed on the new map background of the target map, so that the user may know the position of the rendered touch point and the specific position of the rendered touch point in the target map, and may visually know the type of the rendered object. It should be noted that each contact in the target map container has a binding relationship with the preset identifier displayed on the new map background of the target map, and as long as any one of the contact in the target map container or the preset identifier displayed on the map background of the target map is cleared, the corresponding other contact will also be cleared.
In the embodiment of the invention, the rendered touch points can be displayed on the background of the target map by corresponding preset marks and further displayed on the interface of the target map, so that the user can watch the touch points conveniently.
Optionally, the pixel coordinates of the target map container correspond to the pixel coordinates of the new map background.
Specifically, when the pixel coordinates of the target map container correspond to the pixel coordinates of the new map background, the positions of the touch points in the map container and the positions of the corresponding touch points in the new map background are displayed, so that when the touch points are rendered, the touch points in the target map container can be displayed on the corresponding new map background, and the position offset during touch point rendering is avoided. The pixel coordinates of the target map container are scaled the same as the pixel coordinates of the new map background. More specifically, the pixel coordinates of the touch point in the target map container correspond to the actual longitude and latitude coordinates of the earth according to a certain scaling ratio. And the pixel coordinates of the new map background correspond to the actual longitude and latitude coordinates of the earth according to a certain scaling.
When the target map background does not need to be replaced, the pixel coordinates of the target map container correspond to the pixel coordinates of the map background currently used by the target map. The pixel coordinates of the map background currently used by the target map are also corresponding to the actual longitude and latitude coordinates of the earth according to a certain scaling.
In the embodiment of the invention, the pixel coordinates of the target map container correspond to the pixel coordinates of the target map background and the actual longitude and latitude coordinates of the earth, so that the contact can be accurately marked and displayed, and the accuracy of contact rendering is further improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a module of a map annotation device according to an embodiment of the present invention, and as shown in fig. 5, the map annotation device includes:
the pixel coordinate acquisition module is used for acquiring the pixel coordinates of the contact in the target map container;
the longitude and latitude coordinate calculation module is used for calculating the actual longitude and latitude coordinates of the contact in the target map according to the pixel coordinates;
and the rendering module is used for selecting a preset identifier to render the contact based on the actual longitude and latitude coordinates.
Referring to fig. 6, fig. 6 is a schematic block structure diagram of another map annotation apparatus provided in an embodiment of the present invention, and on the basis of fig. 5, before the pixel coordinate obtaining module, the map annotation apparatus further includes:
the first judgment module is used for judging whether the target map container stores the contact or not when the target map is opened;
the detection module is used for detecting whether a click instruction exists on the target map interface in real time if the contact is not stored in the target map container;
the determining module is used for determining that the target map container generates a contact point if the target map interface has a click instruction, and executing the step of acquiring the pixel coordinates of the contact point in the target map container;
or, the first loop module is configured to execute the step of acquiring the pixel coordinates of the touch point in the target map container if the target map container already stores the touch point.
Optionally, referring to fig. 7, fig. 7 is a schematic block structure diagram of another map labeling apparatus according to an embodiment of the present invention, where the map labeling apparatus further includes:
and the existing contact number calculating module is used for calculating the existing number of contacts in the target map container when a new contact is detected.
And the second judgment module is used for judging whether the number of the existing contacts exceeds the preset number of the contacts.
And the third judging module is used for judging whether the existing contacts need to be cleared if the number of the existing contacts exceeds the number of the preset contacts.
The clearing module is used for clearing the existing contact in the target map container if the existing contact needs to be cleared;
and the second circulation module is used for executing the step of determining that the target map container generates the contact if the target map interface has a click instruction after the existing contact in the target map container is cleared.
Optionally, referring to fig. 8, fig. 8 is a schematic block structure diagram of another map annotation device provided in the embodiment of the present invention. On the basis of fig. 5, before the pixel coordinate obtaining module, the map labeling apparatus further includes:
the operation instruction acquisition module is used for acquiring an operation instruction for replacing the current map background of the target map;
and the replacing module is used for taking the preset target picture as a new map background of the target map according to the operation instruction.
Optionally, after the preset identifier is selected based on the actual longitude and latitude coordinates to render the contact, the method further includes:
and the display module is used for displaying the preset identification corresponding to the rendered contact on the new map background of the target map.
Optionally, the pixel coordinates of the target map container correspond to the pixel coordinates of the new map background.
The map marking device provided by the embodiment of the invention can realize each implementation mode in the method embodiment and corresponding beneficial effects, and is not repeated here for avoiding repetition.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device includes: the map annotation method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps in the map annotation method provided by the embodiment, and the processor executes the following steps:
acquiring pixel coordinates of the contact in a target map container;
calculating the actual longitude and latitude coordinates of the contact in the target map according to the pixel coordinates;
and selecting a preset identifier to render the contact based on the actual longitude and latitude coordinates.
Optionally, the processor executes the following steps before acquiring the pixel coordinates of the touch point in the target map container:
when the target map is opened, judging whether the contact points are stored in the target map container;
if the target map container does not store the contact, detecting whether the target map interface has a click command in real time;
if the target map interface has a click command, determining that the target map container generates a contact, and executing the step of acquiring the pixel coordinates of the contact in the target map container;
or, if the target map container already stores the touch point, the step of acquiring the pixel coordinate of the touch point in the target map container is executed.
Optionally, the processor further performs the following steps:
when a new contact is detected, calculating the number of the existing contacts in the target map container;
judging whether the number of the existing contacts exceeds the preset number of contacts or not;
if the number of the existing contacts exceeds the preset number of the contacts, judging whether the existing contacts need to be cleared;
if the existing contact needs to be cleared, clearing the existing contact in the target map container;
and after the existing contact in the target map container is cleared, executing a step of determining that the target map container generates the contact if the target map interface has a click command.
Optionally, the processor executes the following steps before acquiring the pixel coordinates of the touch point in the target map container:
acquiring an operation instruction for replacing the current map background of the target map;
and taking a preset target picture as a new map background of the target map according to the operation instruction.
Optionally, after the processor selects a preset identifier to render the contact based on the actual longitude and latitude coordinates, the processor further performs the following steps:
and displaying the preset identification corresponding to the rendered contact on the new map background of the target map.
Optionally, the pixel coordinates of the target map container correspond to the pixel coordinates of the new map background.
It should be noted that the electronic device may be an intelligent terminal, a mobile phone, a tablet computer, and the like in a map annotation system.
The electronic device provided by the embodiment of the present invention can implement each implementation manner in the above method embodiments and corresponding beneficial effects, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the map labeling method provided in the embodiment of the present invention, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here.
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 computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A method for annotating a map, the method comprising:
acquiring pixel coordinates of the contact in a target map container;
calculating the actual longitude and latitude coordinates of the contact in a target map according to the pixel coordinates;
and selecting a preset identifier which is preset based on the actual longitude and latitude coordinates to render the contact.
2. The method of map annotation of claim 1, wherein prior to said obtaining pixel coordinates of the touch point in the target map container, the method further comprises:
when a target map is opened, judging whether a contact point is stored in the target map container;
if the target map container does not store the contact, detecting whether a click command exists on a target map interface in real time;
if the target map interface has a click command, determining that the target map container generates a contact, and executing the step of acquiring the pixel coordinates of the contact in the target map container;
or, if the target map container already stores the touch point, executing the step of acquiring the pixel coordinate of the touch point in the target map container.
3. The map labeling method of claim 2, further comprising:
when a new contact is detected, calculating the number of the existing contacts in the target map container;
judging whether the number of the existing contacts exceeds the preset number of contacts or not;
if the number of the existing contacts exceeds the preset number of contacts, judging whether the existing contacts need to be cleared;
if the existing contact needs to be cleared, clearing the existing contact in the target map container;
and after the existing contact in the target map container is cleared, executing the step of determining that the target map container generates the contact if the target map interface has a click command.
4. The method of map annotation of claim 1, wherein prior to said obtaining pixel coordinates of the touch point in the target map container, the method further comprises:
acquiring an operation instruction for replacing the current map background of the target map;
and taking a preset target picture as a new map background of the target map according to the operation instruction.
5. The map annotation method of claim 4, wherein after the touch point is rendered by selecting a preset identifier preset based on the actual longitude and latitude coordinates, the method further comprises:
and displaying the preset identification corresponding to the rendered contact on the new map background of the target map.
6. The map annotation method of claim 5, wherein the pixel coordinates of the target map container correspond to the pixel coordinates of the new map background.
7. A map annotating device, characterized in that the device comprises:
the pixel coordinate acquisition module is used for acquiring the pixel coordinates of the contact in the target map container;
the latitude and longitude coordinate calculation module is used for calculating the actual latitude and longitude coordinates of the contact in a target map according to the pixel coordinates;
and the rendering module is used for selecting a preset identifier to render the contact based on the actual longitude and latitude coordinates.
8. The map labeling apparatus of claim 7, prior to the pixel coordinate acquisition module, the apparatus further comprising:
the first judgment module is used for judging whether the target map container stores the contact points or not when the target map is opened;
the detection module is used for detecting whether a click instruction exists on the target map interface in real time if the contact is not stored in the target map container;
the determining module is used for determining that the target map container generates a contact point if the target map interface has a click instruction, and executing the step of acquiring the pixel coordinates of the contact point in the target map container;
or, the first loop module is configured to execute the step of obtaining the pixel coordinates of the touch point in the target map container if the target map container already stores the touch point.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the map annotation method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps in the map annotation method according to any one of claims 1 to 6.
CN201911419616.1A 2019-12-31 2019-12-31 Map annotation method, device, electronic equipment and storage medium Pending CN113127584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911419616.1A CN113127584A (en) 2019-12-31 2019-12-31 Map annotation method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911419616.1A CN113127584A (en) 2019-12-31 2019-12-31 Map annotation method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113127584A true CN113127584A (en) 2021-07-16

Family

ID=76769463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911419616.1A Pending CN113127584A (en) 2019-12-31 2019-12-31 Map annotation method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113127584A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113793405A (en) * 2021-09-15 2021-12-14 杭州睿胜软件有限公司 Method, computer system and storage medium for presenting distribution of plants

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10221093A (en) * 1997-02-07 1998-08-21 Nissan Motor Co Ltd Navigation system
CN101526355A (en) * 2008-03-07 2009-09-09 佛山市顺德区顺达电脑厂有限公司 Method for transforming weather background patterns of electronic map in real time
CN102214240A (en) * 2011-07-05 2011-10-12 成都智汇科技有限公司 Method for loading advertisements on electronic map
CN102750871A (en) * 2011-03-22 2012-10-24 哈曼贝克自动系统股份有限公司 Curved labeling in digital maps
CN102967315A (en) * 2012-11-09 2013-03-13 广东欧珀移动通信有限公司 Navigation map improvement method and device
CN104166943A (en) * 2014-07-04 2014-11-26 国家电网公司 Method and device for drawing cable line graph
CN105260431A (en) * 2015-09-30 2016-01-20 百度在线网络技术(北京)有限公司 Electronic map based information acquisition method and apparatus
WO2016131390A1 (en) * 2015-02-16 2016-08-25 高德软件有限公司 Electronic map display method, apparatus and electronic device
CN108694882A (en) * 2017-04-11 2018-10-23 百度在线网络技术(北京)有限公司 Method, apparatus and equipment for marking map
CN109977179A (en) * 2019-02-19 2019-07-05 中电海康集团有限公司 A kind of poly- scattered method for visualizing of grid dividing realization magnanimity atural object mark point of layering

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10221093A (en) * 1997-02-07 1998-08-21 Nissan Motor Co Ltd Navigation system
CN101526355A (en) * 2008-03-07 2009-09-09 佛山市顺德区顺达电脑厂有限公司 Method for transforming weather background patterns of electronic map in real time
CN102750871A (en) * 2011-03-22 2012-10-24 哈曼贝克自动系统股份有限公司 Curved labeling in digital maps
CN102214240A (en) * 2011-07-05 2011-10-12 成都智汇科技有限公司 Method for loading advertisements on electronic map
CN102967315A (en) * 2012-11-09 2013-03-13 广东欧珀移动通信有限公司 Navigation map improvement method and device
CN104166943A (en) * 2014-07-04 2014-11-26 国家电网公司 Method and device for drawing cable line graph
WO2016131390A1 (en) * 2015-02-16 2016-08-25 高德软件有限公司 Electronic map display method, apparatus and electronic device
CN105260431A (en) * 2015-09-30 2016-01-20 百度在线网络技术(北京)有限公司 Electronic map based information acquisition method and apparatus
CN108694882A (en) * 2017-04-11 2018-10-23 百度在线网络技术(北京)有限公司 Method, apparatus and equipment for marking map
CN109977179A (en) * 2019-02-19 2019-07-05 中电海康集团有限公司 A kind of poly- scattered method for visualizing of grid dividing realization magnanimity atural object mark point of layering

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113793405A (en) * 2021-09-15 2021-12-14 杭州睿胜软件有限公司 Method, computer system and storage medium for presenting distribution of plants

Similar Documents

Publication Publication Date Title
CN111708858B (en) Map data processing method, device, equipment and storage medium
US10412594B2 (en) Network planning tool support for 3D data
CN106679665B (en) Route planning method and device
CN105306899B (en) Method and device for processing monitoring video
JP5770179B2 (en) Presenting a digital map
JP5315424B2 (en) Image display control apparatus and control method thereof
CN105547312A (en) Electronic navigation method and apparatus
CN111680238B (en) Information sharing method, device and storage medium
CN112068753A (en) Method and device for searching business object
CN111290931A (en) Method and device for visually displaying buried point data
US9418351B2 (en) Automated network inventory using a user device
CN113127584A (en) Map annotation method, device, electronic equipment and storage medium
CN113643324B (en) Target association method and device
CN112711536A (en) Automatic dial testing method and system, and computer readable storage medium
CN105704444A (en) Video shooting management method and system based mobile map and time geography
KR20110058089A (en) Apparatus and method of managing objects and events by using vector based geographic information system
CN112153568A (en) Wi-Fi identification and binding method, device and equipment based on service scene
CN111813979A (en) Information retrieval method and device and electronic equipment
CN108763414B (en) Live-action display method and device, terminal equipment and storage medium
CN116363082A (en) Collision detection method, device, equipment and program product for map elements
CN106021588B (en) Video eagle eye pattern presentation method and device
CN114528367A (en) Service data information statistical method based on digital twin and computer storage medium
CN110879686B (en) Label erasing method and device and electronic equipment
CN113082699B (en) Game display control method and device and electronic terminal
CN111259094B (en) Drawing exporting method based on external line resources

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