Map editing method and device, electronic equipment and storage medium

By converting map raster images into preset format images and determining the editing area, the performance bottleneck when editing large-area maps is solved, efficient local editing is achieved, and the efficiency and versatility of map data editing are improved.

CN120689534APending Publication Date: 2025-09-23BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410330757.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-21
Publication Date
2025-09-23

Smart Images

  • Figure CN120689534A_ABST
    Figure CN120689534A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a map editing method and device, electronic equipment and a storage medium, and the method comprises the steps: responding to a map display operation, and displaying a to-be-edited map; in response to a triggering operation on the target control, converting a grid map corresponding to the to-be-edited map into a to-be-edited image in a preset format; in response to an editing operation on the to-be-edited image, determining an editing area of the editing operation in the to-be-edited map; and based on the editing information of each grid in the editing area, determining a target map corresponding to the to-be-edited map. According to the technical scheme provided by the embodiment of the invention, the technical effect of editing the local map is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular to a map editing method, device, electronic device, and storage medium. Background Art

[0002] When editing a map based on a map editor, optionally, the map editor performs operations including creating a map or changing map content, and the entire map needs to be arranged according to a predetermined grid size, and each grid is edited to obtain the changed map data.

[0003] In scenarios with large map areas, that is, a large number of grids, tens of thousands of grids need to be rendered at once, which may exceed the performance limit of the graphics drawing tools used by the editor or browser, resulting in system crashes and freezes during the editing process, making it impossible to effectively edit map data. Summary of the Invention

[0004] The present disclosure provides a map editing method, device, electronic device and storage medium to achieve the effect of effectively and efficiently editing map data without increasing costs.

[0005] In a first aspect, an embodiment of the present disclosure provides a map editing method, the method comprising:

[0006] In response to the map display operation, displaying the map to be edited;

[0007] In response to a triggering operation on a target control, converting a raster image corresponding to the map to be edited into an image to be edited in a preset format;

[0008] In response to an editing operation on the image to be edited, determining an editing area of ​​the editing operation in the map to be edited;

[0009] Based on the editing information of each grid in the editing area, a target map corresponding to the map to be edited is determined.

[0010] In a second aspect, an embodiment of the present disclosure further provides a map editing device, the device comprising:

[0011] A map display module for displaying the map to be edited, configured to display the map to be edited in response to a map display operation;

[0012] An image display module to be edited, configured to convert a raster image corresponding to the map to be edited into an image to be edited in a preset format in response to a triggering operation on a target control;

[0013] an editing area determining module, configured to determine, in response to an editing operation on the image to be edited, an editing area of ​​the editing operation in the map to be edited;

[0014] The target map determining module is used to determine a target map corresponding to the map to be edited based on the editing information of each grid in the editing area.

[0015] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0016] one or more processors;

[0017] a storage device for storing one or more programs,

[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the map editing method as described in any one of the embodiments of the present invention.

[0019] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute the map editing method as described in any one of the embodiments of the present invention.

[0020] The technical solution provided by the embodiment of the present disclosure can display the map to be edited in response to the map display operation. If it is detected that the display of the image to be edited corresponding to the map to be edited is triggered, the grid image corresponding to the map to be edited can be converted into the image to be edited in a preset format. Based on the frame selection operation on the image to be edited, the editing area in the map to be edited is determined. Furthermore, after the editing area is determined, the grids in the editing area can be in an editable state to edit the map data of the corresponding grids, thereby obtaining a target map with changes in the map data. This solves the problem in the prior art that when the map area is large, tens of thousands of grids need to be rendered at one time, and there are high performance requirements for graphics drawing tools, resulting in poor versatility in map data editing. It is achieved that only a local map in the map to be edited can be edited, and the effect of efficiently editing it is achieved without requiring the performance of the browser or graphics drawing tool. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0022] Figure 1 This is a flowchart of a map editing method provided by an embodiment of the present disclosure;

[0023] Figure 2 This is a flowchart of a map editing method provided by an embodiment of the present disclosure;

[0024] Figure 3 is a schematic diagram of displaying a full grid in a map to be edited provided by an embodiment of the present disclosure;

[0025] Figure 4 is a schematic diagram of displaying a preset format grid image provided by an embodiment of the present disclosure;

[0026] Figure 5 is a schematic diagram including an editing area provided by an embodiment of the present disclosure;

[0027] Figure 6 This is a schematic structural diagram of a map editing device provided by an embodiment of the present disclosure;

[0028] Figure 7 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0030] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0031] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0032] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0033] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0035] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0036] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0037] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0038] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0039] Before introducing the technical solutions provided by the embodiments of the present disclosure, an exemplary application scenario can be first described. The device for executing the map editing method provided by the embodiments of the present disclosure can be integrated into application software that supports interactive functions, and the software can be installed in an electronic device. Optionally, the electronic device can be a mobile terminal or a PC. The application software can be software with information editing functions. The specific application software will not be described in detail here, as long as the information editing function can be implemented. It can also be a specially developed application program to implement editing operations on map data.

[0040] It should be noted that the technical solution provided by the embodiments of the present disclosure can be applied to content editing in the map data development stage, and can also be applied to scenarios where full or partial updates are performed on map data after the map data is generated. For specific implementation methods, please refer to the detailed description of the embodiments of the present disclosure.

[0041] It should also be noted that corresponding applications or corresponding editing interfaces can be developed based on the solutions provided in the embodiments of the present disclosure, or the solutions provided in the embodiments of the present disclosure can be integrated into any application or map data editor that needs to modify map data and has map data changes.

[0042] Figure 1 This is a flowchart of a map editing method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to any scenario where map data needs to be edited. The map editing method can be executed by a map editing device, which can be integrated into a computer device. Optionally, the computer device can include a PC or a mobile terminal.

[0043] like Figure 1 As shown, the method includes:

[0044] S110 . In response to the map display operation, display the map to be edited.

[0045] Among them, the map to be edited can be a map whose map content needs to be edited. Multiple maps can be stored in advance. Such maps can be maps in use or pre-created and unused maps. The map that matches the map display operation is used as the map to be edited. It can be understood that any map that needs to be edited can be triggered and selected from many maps as the map to be edited. Alternatively, the identifier corresponding to each map can be pre-set, based on the edit content in the corresponding edit box. Optionally, the edit content can be a map identifier, and the corresponding map can be called as the map to be edited.

[0046] Specifically, when a map is detected and edited, it indicates that the map display operation has been triggered. At this time, the map selected by the trigger can be used as the map to be edited and displayed. Alternatively, in the map selection control to be edited, enter the map ID to be edited. After completing the entry and clicking the confirmation control, the corresponding map to be edited can be called according to the map ID and displayed.

[0047] It should also be noted that when displaying the map to be edited, the grid corresponding to the edited map can be displayed, and the grid data corresponding to each grid can be recorded. The grid data can include information such as whether the grid is passable or whether it is a waiting point.

[0048] S120 : In response to a triggering operation on a target control, converting a raster image corresponding to the map to be edited into an image to be edited in a preset format.

[0049] The target control can be a control that converts the map to be edited into an image to be edited. The full raster image corresponding to the map to be edited can be converted into an image format, and the resulting image can be used as the image to be edited. The preset format can be an image format, optionally in PNG or JPG format. The raster image is an image represented in raster form, consistent with the map to be edited, with each grid cell used to record the data content corresponding to that point.

[0050] Specifically, when a triggering target control is detected, the full raster image corresponding to the map to be edited can be converted into an image to be edited in a picture format.

[0051] In other words, a corresponding raster image can be created based on the map to be edited, and then converted to a preset format to obtain the background image of the image to be edited. The advantage of this setting is that it avoids the problem of the existing technology that requires rendering all rasters when updating the data of only one raster, which leads to high performance requirements of the drawing software. After the raster image is converted to a background image, the editing area corresponding to the editing operation can be determined according to the user's editing operation, and the raster data within the editing area can be processed, achieving the effect of processing only part of the raster data.

[0052] S130: In response to an editing operation on the image to be edited, determining an editing area of ​​the editing operation in the map to be edited.

[0053] Among them, the editing operation can be understood as an operation of selecting the area to be edited from the image to be edited. Optionally, a frame is selected in the image to be edited based on a graphic drawing tool to obtain a framed area, and the selected framed area is used as the editing area.

[0054] Specifically, trigger the selection tool and use the mouse to select an area within the image to be edited. This area is then used as the editing area. This means that the editing area is a portion of the map to be edited, effectively editing a portion of the map. This means that only the portion of the map needs to be edited, and accordingly, only the grid corresponding to that portion of the map needs to be rendered, significantly reducing the performance requirements on the browser or graphics drawing tool.

[0055] S140: Determine a target map corresponding to the map to be edited based on the editing information of each grid in the editing area.

[0056] After determining the editing area, you can retrieve the grids corresponding to the editing area and edit each grid to obtain the grid data corresponding to each grid. After editing each grid, you can render the grid to obtain the regional map corresponding to the editing area. Based on the regional map, you can update the map to be edited to obtain the target map after editing the editing area.

[0057] Based on the above, it can be seen that the solution provided by the embodiment of the present disclosure can address the problem that the rendered graphic data is too large and may exceed the upper limit of the browser or the graphics drawing tool used, that is, a local map editing method is used to process the map data, thereby improving the efficiency of local map editing without increasing costs.

[0058] The technical solution provided by the embodiment of the present disclosure can display the map to be edited in response to the map display operation. If it is detected that the display of the image to be edited corresponding to the map to be edited is triggered, the grid image corresponding to the map to be edited can be converted into the image to be edited in a preset format. Based on the frame selection operation on the image to be edited, the editing area in the map to be edited is determined. Furthermore, after the editing area is determined, the grids in the editing area can be in an editable state to edit the map data of the corresponding grids, thereby obtaining a target map with changes in the map data. This solves the problem in the prior art that when the map area is large, tens of thousands of grids need to be rendered at one time, and there are high performance requirements for graphics drawing tools, resulting in poor versatility in map data editing. It is achieved that only a local map in the map to be edited can be edited, and the effect of efficiently editing it is achieved without requiring the performance of the browser or graphics drawing tool.

[0059] Figure 2 This is a flowchart of a map editing method provided by an embodiment of the present disclosure. Based on the aforementioned embodiment, the method of converting a raster image corresponding to the map to be edited into an image to be edited in a preset format in response to a triggering operation on a target control can be further refined. For its specific implementation method, please refer to the detailed description of the embodiment of the present disclosure. Among them, the technical terms that are the same as or corresponding to the above embodiment are not repeated in this embodiment.

[0060] like Figure 2 As shown, the method includes:

[0061] S210: In response to the map display operation, display the map to be edited.

[0062] It can be understood that: after detecting that the map display control is triggered, the corresponding map to be edited can be displayed.

[0063] S220: When a trigger operation on the target control is detected, create a raster image corresponding to the map to be edited, and process the raster image into a preset format.

[0064] It should be noted that after displaying the map to be edited, if a trigger target control is detected, a grid map corresponding to the map to be edited can be displayed. That is, after adding grid information to the map to be edited, it will be used as a grid map. Figure 3 , you can display the grid map corresponding to the map to be edited. The grid map is composed of multiple grids, and the grid properties of each grid can be the same or different. Whether the grid properties are the same or not depends on the specific application scenario of the map to be edited. The grid properties can include the grid type of the grid. Optionally, the grid type can include passable type, impassable type, waiting point type, non-waiting point type, etc. In other words, the grid type is the passable state or waiting point state corresponding to each grid.

[0065] It should also be noted that before partially editing the map to be edited, the full grid corresponding to the map to be edited can be displayed first, that is, the images of all current grids can be displayed first, such as Figure 3 To create and edit targeted local area grids later, you can first use the 2D rendering library to draw all the grids and then convert them into images in a preset format.

[0066] Specifically, when a triggering image editing control (target control) is detected, a full raster corresponding to the image to be edited can be created, i.e., a raster image can be created. Furthermore, to facilitate subsequent editing of a local map, the raster image can be converted to a preset format. In this case, the preset format can be an image format. After conversion to the image format, the converted image can be displayed.

[0067] S230: Using the raster image converted into the preset format as the background image of the map to be edited, to obtain the image to be edited.

[0068] The image converted into a preset format is used as a raster image. This raster image can be used as a background image. The map data is used as a foreground image. Based on the background image and the foreground image, the image to be edited is determined.

[0069] For example, the converted raster image can be inserted into an image editor as a background image. The advantage of this setting is that it not only displays all the full raster images, but also allows you to select a local area based on the background image to create a raster for editing.

[0070] It's also worth noting that for performance-intensive rendering tasks like rendering 100,000+ rasters and converting them to PNG, a 2D rendering library can be used. This library allows developers to leverage the power of WebGL. For browsers that don't support WebGL, the 2D rendering library automatically downgrades to canvas, ensuring optimal performance at all times. Furthermore, the 2D rendering library's particle system can be used to create large numbers of identical raster graphics, greatly improving processing efficiency. Figure 3 This is an example of a full display of nearly 20,000 grids created. To clearly distinguish them from editable grids, the background image does not draw the grid borders, but only displays the effect of overlaying on the map. Figure 4 .

[0071] Based on the above technical solution, the method further includes: displaying the grid map according to a preset transparency so that at least one grid in the grid map is invisible.

[0072] The preset transparency is pre-set and is used to determine the transparency value when the raster image is used as a background image.

[0073] It can be understood that the corresponding transparency can be set to display the grid image as the background image of the editor according to the transparency. The advantage of this setting is that the grid in the grid image can be made invisible.

[0074] It should be noted that Figure 3 and Figure 4 This is merely an exemplary description, wherein green display information is used to indicate that the grid is in a passable state, and gray display information is used to indicate that the grid is in an impassable state.

[0075] S240: In response to an editing operation on the image to be edited, determine an editing area of ​​the editing operation in the map to be edited.

[0076] In this embodiment, the editing operation includes an operation of editing area coordinates in an area selection control, and / or, based on the framing operation of the image to be edited by a framing tool, determining the editing area of ​​the editing operation in the map to be edited includes: determining the target position of the area coordinates in the map to be edited, and determining the editing area based on the target position; and / or, using the starting position of the framing tool in the map to be edited as the first coordinate of the editing area, and the ending position of the framing tool in the map to be edited as the second coordinate of the editing area, and determining the editing area based on the first coordinate and the second coordinate.

[0077] It can be understood that the editing operation includes at least two operation modes. The first operation mode may be an operation of editing the region coordinates in the region selection control, and the other operation mode is a mode of selecting with a mouse.

[0078] Next, the two operation modes are explained in detail. The coordinate information of the area to be selected can be edited in the area selection control. Optionally, the coordinates corresponding to each grid can be displayed in the display interface to facilitate users to edit the corresponding coordinates in the area selection control. After the editing is completed, an area can be determined based on each edited coordinate, and the area determined at this time is used as the editing area. If the editing area is determined by mouse selection, events associated with the mouse can be monitored in real time. Optionally, when the mouse triggers a frame selection event, the starting position of the mouse (frame selection tool) in the map to be edited can be used as the first coordinate of the area to be edited, and correspondingly, the ending position of the mouse (frame selection tool) in the map to be edited can be used as the second coordinate of the editing area. Based on the first coordinate and the second coordinate, a rectangular area can be determined, and this rectangular area can be used as the editing area.

[0079] After determining the editing area, the selected area can be displayed separately in the map to be edited for visualization and ease of display. In this embodiment, the separate display can be achieved by selecting the editing area, determining and creating the corresponding grids within the editing area, and then displaying the corresponding grids based on the grid attributes corresponding to each grid. After the grids are created, each grid in the editing area is in an editable state. When the grids are in an editable state, the attributes of each grid can be edited to achieve the effect of editing a local map.

[0080] It can be understood that after determining the editing area, you can create a grid corresponding to the editing area, display it in the map to be edited, and adjust the grid to be editable. Figure 5 The selected area 1 is the editing area 1. Accordingly, the editable area may include multiple grids in an editable state.

[0081] It should also be noted that the size of the grid within the editing area is the same as the size of the grid corresponding to the map to be edited. Furthermore, the grid created at this time is determined from the grid corresponding to the editable map.

[0082] S250 : Under the condition that the grid is in an editable state, edit the grid properties of the grid to fill in data content corresponding to the grid type.

[0083] This means that after you've defined an editing area, at least one grid within it becomes editable. You can then edit the grid properties of each grid to change the corresponding grid attributes. Once the changes are complete and you click Confirm, the modified grid attributes are used as the data content for the corresponding grid.

[0084] S260: In response to the target operation, determine the target map according to the editing information of each grid in the editing area.

[0085] In actual applications, each drawing software has certain performance requirements, so the processing upper limit corresponding to the drawing software can be set. Optionally, the raster data of the editing area is determined to issue a message prompt when the number of rasters reaches a preset threshold.

[0086] It can be understood that: in the process of determining the editing area, prompts can be given based on the number of grids corresponding to the selected area to avoid the effect that the number of grids in the selected editing area is too large, resulting in the inability to effectively align the data for processing.

[0087] It should also be noted that if the full amount of map data of the edited map is rendered, all the rasters need to be rendered, which has the problems of low rendering efficiency and high requirements on device performance.

[0088] The technical solution provided by the embodiment of the present disclosure can display the map to be edited in response to the map display operation. If it is detected that the display of the image to be edited corresponding to the map to be edited is triggered, the grid image corresponding to the map to be edited can be converted into the image to be edited in a preset format. Based on the frame selection operation on the image to be edited, the editing area in the map to be edited is determined. Furthermore, after the editing area is determined, the grids in the editing area can be in an editable state to edit the map data of the corresponding grids, thereby obtaining a target map with changes in the map data. This solves the problem in the prior art that when the map area is large, tens of thousands of grids need to be rendered at one time, and there are high performance requirements for graphics drawing tools, resulting in poor versatility in map data editing. It is achieved that only a local map in the map to be edited can be edited, and the effect of efficiently editing it is achieved without requiring the performance of the browser or graphics drawing tool.

[0089] On the basis of the above-mentioned embodiments, it should also be noted that in the process of editing the raster data in the editing area, the raster data can also be stored. In order to facilitate subsequent changes to the raster data, structured data can be used to save the raster information. The specific implementation method can refer to the detailed explanation of the embodiment of the present disclosure, among which the technical terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated in this embodiment.

[0090] It should be noted that after detecting the trigger target control and creating a grid map corresponding to the map to be edited, the method further includes creating a hash table corresponding to the grid map. The grid map includes multiple grids, and the size of each grid is set according to actual needs, but must conform to the layout of the corresponding area. The hash table can store the grid identifier of each grid and the corresponding grid data.

[0091] It should also be noted that for raster attributes, different rasters correspond to different raster types under the raster attributes. A hash table corresponding to each raster type can be created. Optionally, the raster type can include a passable raster type, an impassable raster type, a waiting point raster type, and a non-waiting point raster type. Corresponding hash tables can be created based on different raster types.

[0092] Furthermore, a linkage can be established between each grid in the grid map and the grid data of the corresponding grid in at least one hash table. When a change in the grid attributes of a particular grid is detected, the data content corresponding to that grid can be modified in the hash table, achieving a dynamic data update effect. Accordingly, if the data content of a grid in the hash table is modified, the display information of the corresponding grid in the map data can also be modified.

[0093] It can be understood as follows: when the map is edited in a local editing manner, the raster data of the raster can be saved using structured data to achieve the goal of changing only the raster information in the local editing area. Of course, in order to more efficiently process the preservation of local edited data, after obtaining the full information of the raster, the raster information list with different meanings can be converted into a hash table, so as to improve the efficiency of search and replacement when traversing the raster information in the local editing area for saving. For example, when the raster attribute of the raster is adjusted from an inaccessible type to a accessible type, its index value in the inaccessible raster list can be directly queried through the inaccessible hash table (the index value at this time can be the raster identifier of the raster), the corresponding raster data can be deleted according to the index value, and it can be added to the hash table of the accessible type.

[0094] The method of storing hash table information in memory greatly reduces the time complexity of search and improves the efficiency of data search.

[0095] The technical solution provided by the embodiments of the present disclosure can store data based on the raster attributes of the raster during the process of editing raster data, so that when a change in raster data is detected, the corresponding raster data can be found from the corresponding data storage table, thereby achieving the effect of effective and efficient update of the raster data.

[0096] Figure 6A schematic diagram of the structure of a map editing device provided by an embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the apparatus includes: a map display module 310 to be edited, an image display module 320 to be edited, an editing area determination module 330 and a target map determination module 340 .

[0097] Among them, the map display module 310 to be edited is used to display the map to be edited in response to the map display operation; the image display module 320 to be edited is used to convert the grid image corresponding to the map to be edited into the image to be edited in a preset format in response to the triggering operation of the target control; the editing area determination module 330 is used to determine the editing area of ​​the editing operation in the map to be edited in response to the editing operation on the image to be edited; the target map determination module 340 is used to determine the target map corresponding to the map to be edited based on the editing information of each grid in the editing area.

[0098] The technical solution provided by the embodiment of the present disclosure can display the map to be edited in response to the map display operation. If it is detected that the display of the image to be edited corresponding to the map to be edited is triggered, the grid image corresponding to the map to be edited can be converted into the image to be edited in a preset format. Based on the frame selection operation on the image to be edited, the editing area in the map to be edited is determined. Furthermore, after the editing area is determined, the grids in the editing area can be in an editable state to edit the map data of the corresponding grids, thereby obtaining a target map with changes in the map data. This solves the problem in the prior art that when the map area is large, tens of thousands of grids need to be rendered at one time, and there are high performance requirements for graphics drawing tools, resulting in poor versatility in map data editing. It is achieved that only a local map in the map to be edited can be edited, and the effect of efficiently editing it is achieved without requiring the performance of the browser or graphics drawing tool.

[0099] Based on the above technical solutions, the image display module to be edited includes:

[0100] An image conversion unit, configured to create a raster image corresponding to the map to be edited and process the raster image into a preset format when a trigger operation on the target control is detected;

[0101] The editing image determining unit is configured to use the raster image converted into the preset format as the background image of the map to be edited, so as to obtain the image to be edited.

[0102] Based on the above technical solutions, the grid map includes at least one grid, and the grid attributes of the at least one grid include the grid type of the grid.

[0103] On the basis of the above technical solutions, the device further includes: a state updating module, configured to display the grid image according to a preset transparency, so that at least one grid in the grid image is in an invisible state.

[0104] Based on the above technical solutions, the editing operation includes an operation of editing region coordinates in a region selection control and / or a frame selection operation of the image to be edited based on a frame selection tool. The editing region determination module includes:

[0105] A first editing area determining unit is configured to determine a target position of the area coordinates in the map to be edited, and determine the editing area according to the target position; and / or,

[0106] The second editing area determination unit is used to use the starting position of the selection tool in the map to be edited as the first coordinate of the editing area, and the ending position of the selection tool in the map to be edited as the second coordinate of the editing area, and determine the editing area based on the first coordinate and the second coordinate.

[0107] On the basis of the above technical solutions, the editing area is displayed distinctively in the map to be edited, and at least one grid within the editing area is adjusted to be in an editable state.

[0108] Based on the above technical solutions, the target map determination module includes:

[0109] A data content editing unit, configured to edit the grid properties of the grid under the condition that the grid is in an editable state, so as to fill in the data content corresponding to the grid type;

[0110] The target map determining unit is configured to determine the target map in response to a target operation and based on the editing information of each grid in the editing area.

[0111] On the basis of the above technical solutions, the device further includes: a prompt module, which is used to determine the grid data in the editing area, so as to issue a message prompt when the number of the grids reaches a preset number threshold.

[0112] On the basis of the above technical solutions, the device further includes:

[0113] A hash table creation module, configured to create at least one hash table according to the grid type of the grid;

[0114] The data content updating module is used to update the data content in the corresponding hash table according to the grid identification of each grid and the data content corresponding to the grid type.

[0115] The task processing device provided in the embodiments of the present disclosure can execute the map editing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0116] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0117] Figure 7 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 7 , which shows an electronic device (eg Figure 7 The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0118] like Figure 7 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. Various programs and data required for the operation of the electronic device 400 are also stored in the RAM 403. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An edit / output (I / O) interface 405 is also connected to the bus 404.

[0119] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0120] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0121] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0122] The electronic device provided by the embodiment of the present disclosure and the map editing method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0123] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the map editing method provided by the above embodiment is implemented.

[0124] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0125] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0126] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0127] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0128] In response to the map display operation, displaying the map to be edited;

[0129] In response to a triggering operation on a target control, converting a raster image corresponding to the map to be edited into an image to be edited in a preset format;

[0130] In response to an editing operation on the image to be edited, determining an editing area of ​​the editing operation in the map to be edited;

[0131] Based on the editing information of each grid in the editing area, a target map corresponding to the map to be edited is determined.

[0132] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0133] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0134] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0135] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0136] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0137] According to one or more embodiments of the present disclosure, [Example 1] provides a map editing method, the method comprising:

[0138] In response to the map display operation, displaying the map to be edited;

[0139] In response to a triggering operation on a target control, converting a raster image corresponding to the map to be edited into an image to be edited in a preset format;

[0140] In response to an editing operation on the image to be edited, determining an editing area of ​​the editing operation in the map to be edited;

[0141] Based on the editing information of each grid in the editing area, a target map corresponding to the map to be edited is determined.

[0142] According to one or more embodiments of the present disclosure, [Example 2] provides a map editing method, the method further comprising:

[0143] Optionally, in response to the triggering operation on the target control, converting the raster image corresponding to the map to be edited into an image to be edited in a preset format includes:

[0144] When a trigger operation on the target control is detected, a raster image corresponding to the map to be edited is created, and the raster image is processed into a preset format;

[0145] The raster image converted into the preset format is used as the background image of the map to be edited to obtain the image to be edited.

[0146] According to one or more embodiments of the present disclosure, [Example 3] provides a map editing method, the method further comprising:

[0147] Optionally, the grid map includes at least one grid, and the grid properties of the at least one grid include the grid type of the grid.

[0148] According to one or more embodiments of the present disclosure, [Example 4] provides a map editing method, the method further comprising:

[0149] Optionally, the grid image is displayed according to a preset transparency so that at least one grid in the grid image is invisible.

[0150] According to one or more embodiments of the present disclosure, [Example 5] provides a map editing method, the method further comprising:

[0151] Optionally, the editing operation includes an operation of editing region coordinates in a region selection control, and / or a frame selection operation of the image to be edited using a frame selection tool, and determining the editing region of the editing operation in the map to be edited includes:

[0152] Determining a target position of the area coordinates in the map to be edited, and determining the editing area according to the target position; and / or,

[0153] The starting position of the selection tool in the map to be edited is the first coordinate of the editing area, and the ending position of the selection tool in the map to be edited is the second coordinate of the editing area. The editing area is determined based on the first coordinate and the second coordinate.

[0154] According to one or more embodiments of the present disclosure, [Example 6] provides a map editing method, the method further comprising:

[0155] Optionally, the editing area is displayed distinctively in the map to be edited, and at least one grid within the editing area is adjusted to be in an editable state.

[0156] According to one or more embodiments of the present disclosure, [Example 7] provides a map editing method, the method further comprising:

[0157] Optionally, determining a target map corresponding to the map to be edited based on the editing information of each grid in the editing area includes:

[0158] Under the condition that the grid is in an editable state, editing the grid properties of the grid to fill in data content corresponding to the grid type;

[0159] In response to a target operation, the target map is determined according to the editing information of each grid in the editing area.

[0160] According to one or more embodiments of the present disclosure, [Example 8] provides a map editing method, the method further comprising:

[0161] Optionally, in the process of determining the editing area, the method further includes:

[0162] The grid data in the editing area is determined, so that a message prompt is issued when the number of the grids reaches a preset number threshold.

[0163] According to one or more embodiments of the present disclosure, [Example 9] provides a map editing method, the method further comprising:

[0164] Optionally, creating at least one hash table according to the grid type of the grid;

[0165] According to the grid identifier of each grid and the data content corresponding to the grid type, the data content in the corresponding hash table is updated.

[0166] According to one or more embodiments of the present disclosure, [Example 10] provides a map editing device, the device comprising:

[0167] A map display module for displaying the map to be edited, configured to display the map to be edited in response to a map display operation;

[0168] An image display module to be edited, configured to convert a raster image corresponding to the map to be edited into an image to be edited in a preset format in response to a triggering operation on a target control; wherein the image data includes the map to be edited;

[0169] an editing area determining module, configured to determine, in response to an editing operation on the image to be edited, an editing area of ​​the editing operation in the map to be edited;

[0170] The target map determining module is used to determine a target map corresponding to the map to be edited based on the editing information of each grid in the editing area.

[0171] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0172] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0173] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A map editing method, characterized in that: include: In response to the map display operation, displaying the map to be edited; In response to a triggering operation on a target control, converting a raster image corresponding to the map to be edited into an image to be edited in a preset format; In response to an editing operation on the image to be edited, determining an editing area of ​​the editing operation in the map to be edited; Based on the editing information of each grid in the editing area, a target map corresponding to the map to be edited is determined.

2. The method according to claim 1, characterized in that The step of converting the raster image corresponding to the map to be edited into an image to be edited in a preset format in response to a triggering operation on a target control includes: When a trigger operation on the target control is detected, a raster image corresponding to the map to be edited is created, and the raster image is processed into a preset format; The raster image converted into the preset format is used as the background image of the map to be edited to obtain the image to be edited.

3. The method according to claim 1 or 2, characterized in that The grid map includes at least one grid, and the grid properties of the at least one grid include the grid type of the grid.

4. The method according to claim 2, characterized in that The method further comprises: The grid image is displayed according to a preset transparency so that at least one grid in the grid image is invisible.

5. The method according to claim 1, wherein The editing operation includes an operation of editing region coordinates in a region selection control, and / or a frame selection operation of the image to be edited based on a frame selection tool, and determining the editing region of the editing operation in the map to be edited includes: Determining a target position of the area coordinates in the map to be edited, and determining the editing area according to the target position; and / or, The starting position of the selection tool in the map to be edited is the first coordinate of the editing area, and the ending position of the selection tool in the map to be edited is the second coordinate of the editing area. The editing area is determined based on the first coordinate and the second coordinate.

6. The method according to claim 1 or 5, characterized in that The editing area is displayed distinctively in the map to be edited, and at least one grid within the editing area is adjusted to be in an editable state.

7. The method according to claim 1, characterized in that The determining, based on the editing information of each grid in the editing area, a target map corresponding to the map to be edited, includes: Under the condition that the grid is in an editable state, editing the grid properties of the grid to fill in data content corresponding to the grid type; In response to a target operation, the target map is determined according to the editing information of each grid in the editing area.

8. The method according to claim 1, characterized in that In the process of determining the editing area, the method further includes: The grid data in the editing area is determined, so that a message prompt is issued when the number of the grids reaches a preset number threshold.

9. The method according to claim 1, characterized in that The method further comprises: Creating at least one hash table according to the grid type of the grid; According to the grid identifier of each grid and the data content corresponding to the grid type, the data content in the corresponding hash table is updated.

10. A map editing device, characterized in that: include: A map display module for displaying the map to be edited, configured to display the map to be edited in response to a map display operation; An image display module to be edited, configured to convert a raster image corresponding to the map to be edited into an image to be edited in a preset format in response to a triggering operation on a target control; wherein the image data includes the map to be edited; an editing area determining module, configured to determine, in response to an editing operation on the image to be edited, an editing area of ​​the editing operation in the map to be edited; The target map determining module is used to determine a target map corresponding to the map to be edited based on the editing information of each grid in the editing area.

11. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the map editing method according to any one of claims 1 to 9.

12. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the map editing method according to any one of claims 1 to 9 when executed by a computer processor.