CN110415315A - Touch method, apparatus, terminal and the storage medium in map making region - Google Patents
Touch method, apparatus, terminal and the storage medium in map making region Download PDFInfo
- Publication number
- CN110415315A CN110415315A CN201910569363.XA CN201910569363A CN110415315A CN 110415315 A CN110415315 A CN 110415315A CN 201910569363 A CN201910569363 A CN 201910569363A CN 110415315 A CN110415315 A CN 110415315A
- Authority
- CN
- China
- Prior art keywords
- touch
- line segment
- point
- touch track
- starting point
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000003860 storage Methods 0.000 title claims abstract description 16
- 238000006243 chemical reaction Methods 0.000 claims abstract description 13
- 238000012544 monitoring process Methods 0.000 claims description 73
- 238000004590 computer program Methods 0.000 claims description 16
- 230000015654 memory Effects 0.000 claims description 13
- 238000013500 data storage Methods 0.000 claims description 3
- 238000012217 deletion Methods 0.000 claims 1
- 230000037430 deletion Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 6
- 238000005520 cutting process Methods 0.000 description 5
- 230000005611 electricity Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000005303 weighing Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000009738 saturating Methods 0.000 description 1
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/80—Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
Abstract
The present invention provides a kind of method, apparatus, terminal and storage mediums for touching map making region, this method comprises: when receiving touch drafting instruction, monitor the touch track of user, and it records the corresponding starting point of the line segment in the touch track and terminates point, the touch information data as the touch track;The touch information data are converted into multiple latitude and longitude coordinates;The multiple latitude and longitude coordinates are shown on the electronic map, and are closed the corresponding point of the multiple latitude and longitude coordinates, the map area drawn.The present invention is due to when recording touch information data, the starting point of line segment need to only be recorded and terminate point, without recording all points in entire touch track, to reduce the data volume of record and the data volume of conversion, the drafting efficiency of map area is improved.
Description
Technical field
The present invention relates to electronic map technique field, more particularly to a kind of method, apparatus for touching map making region,
Terminal and storage medium.
Background technique
In the prior art, when user touches map making region, the picture of all pixels point in user's Freehandhand-drawing region is acquired
Vegetarian refreshments set, and all pixels point in the pixel collection is converted into latitude information, display is on the electronic map.
It since the pixel collection in Freehandhand-drawing region is a huge data set, is not easy to collect and handle, and turning
When being changed to latitude and longitude information, need to convert all pixels point in the pixel collection, the data volume of conversion is larger, when processing
Between it is longer, cause map area draw efficiency it is lower.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
Method, apparatus, terminal and the storage medium in a kind of touch map making region to solve the above problems.
According to the present invention in a first aspect, provide it is a kind of touch map making region method, comprising:
When receiving touch drafting instruction, the touch track of user is monitored, and record the line segment in the touch track
Corresponding starting point and termination point, the touch information data as the touch track;
The touch information data are converted into multiple latitude and longitude coordinates;
The multiple latitude and longitude coordinates are shown on the electronic map, and it is corresponding to be closed the multiple latitude and longitude coordinates
Point, the map area drawn.
Optionally, the touch track of the monitoring user, and record the corresponding starting point of line segment in the touch track
Position and termination point, the touch information data as the touch track, comprising:
In the touch track for monitoring user, the line segment and curved section in the touch track are identified;
It records the starting point of the line segment and terminates point, the curved section is converted into multiple line segments, and according to suitable
Sequence records the starting point of the multiple line segment respectively and terminates point, obtains the touch information data of the touch track.
Optionally, described when receiving touch drafting instruction, the touch track of user is monitored, and record the touch rail
The corresponding starting point of line segment and termination point in mark, the touch information data as the touch track, comprising:
When receiving touch drafting instruction, gesture is added on the electronic map and monitors view;
When monitoring the touch track of user by gesture monitoring view, the line segment pair in the touch track is recorded
The starting point and termination point answered, the touch information data as the touch track.
Optionally, it is recording the corresponding starting point of the line segment in the touch track and is terminating point, as the touching
After the touch information data for touching track, further includes:
It is closed the terminating point and starting point of the touch track, obtains closure line segment;
According to the closure line segment and the touch track, user's graphing is determined, and monitor view in the gesture
Upper display user's graphing.
Optionally, after the map area drawn, further includes:
Remove the gesture monitoring view.
Optionally, the gesture monitoring view is transparent view, the display size and the electricity of the gesture monitoring view
The display size of sub- map is identical.
Optionally, before the touch information data are converted to multiple latitude and longitude coordinates, further includes:
The touch information data are saved in two-dimensional array.
Optionally, after the touch information data are saved in two-dimensional array, further includes:
When receiving cancel an order, according to the revocation starting point and cessation of Withdrawl point in the cancel an order, determine to
The line segment of revocation;
According to the line segment to be cancelled, the corresponding starting point of line segment to be cancelled is deleted from the two-dimensional array
Position and termination point.
Optionally, the corresponding starting point of line segment and termination to be cancelled are deleted from the two-dimensional array described
After point, further includes:
Receive redraw instruction when, the touch track that repaints of monitoring user, and the touch track that will be repainted
In the corresponding starting point of line segment and termination point be inserted into the corresponding position of the line segment that is cancelled in the two-dimensional array.
Second aspect according to the present invention provides a kind of device for touching map making region, comprising:
Data recordin module, for monitoring the touch track of user, and described in record when receiving touch drafting instruction
The corresponding starting point of line segment and termination point in touch track, the touch information data as the touch track;
Data conversion module, for the touch information data to be converted to multiple latitude and longitude coordinates;
Map area drafting module for the multiple latitude and longitude coordinates to be shown to the electronic map, and is closed
The corresponding point of the multiple latitude and longitude coordinates, the map area drawn.
Optionally, the data recordin module includes:
Straight line segments recognition unit, in the touch track for monitoring user, identify line segment in the touch track and
Curved section;
Data record unit is converted to the curved section for recording the starting point of the line segment and terminating point
Multiple line segments, and record the starting point of the multiple line segment respectively in sequence and terminate point, obtain the touch track
Touch information data.
Optionally, the data recordin module includes:
View adding unit is monitored, for adding gesture monitoring on the electronic map when receiving touch drafting instruction
View;
Touch track monitoring unit, when monitoring the touch track of user for monitoring view by the gesture, record
The corresponding starting point of line segment and termination point in the touch track, the touch information data as the touch track.
Optionally, further includes:
It is closed module, for being closed the terminating point and starting point of the touch track, obtains closure line segment;
Graphing display module, for determining user's graphing according to the closure line segment and the touch track,
And user's graphing is shown on gesture monitoring view.
Optionally, further includes:
View remove module is monitored, for removing the gesture monitoring view.
Optionally, the gesture monitoring view is transparent view, the display size and the electricity of the gesture monitoring view
The display size of sub- map is identical.
Optionally, further includes:
Data storage module, for the touch information data to be saved in two-dimensional array.
Optionally, further includes:
Line segment determining module to be cancelled, for being risen according to the revocation in the cancel an order when receiving cancel an order
Initial point and cessation of Withdrawl point determine line segment to be cancelled;
Line segment cancels module, described wait cancel for being deleted from the two-dimensional array according to the line segment to be cancelled
The corresponding starting point of line segment and terminate point.
Optionally, further includes:
Repaint module, for receive redraw instruction when, the touch track that repaints of monitoring user, and weighing
It the corresponding starting point of the line segment in touch track newly drawn and terminates point and is inserted into and cancelled in the two-dimensional array
The corresponding position of line segment.
The third aspect according to the present invention provides a kind of terminal, comprising: processor, memory and is stored in described deposit
On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor
The method in touch map making region as described in relation to the first aspect.
Fourth aspect according to the present invention provides a kind of computer readable storage medium, the computer-readable storage
It is stored with computer program on medium, realizes that touch as described in relation to the first aspect is drawn when the computer program is executed by processor
The method of map area processed.
Method, apparatus, terminal and the storage medium provided by the invention for touching map making region, by receiving touching
When touching drafting instruction, the touch track of user is monitored, and record the corresponding starting point of the line segment in touch track and terminating point
Touch information data are converted to multiple latitude and longitude coordinates as the touch information data of touch track by position, and by multiple longitudes and latitudes
It spends on coordinate representations to electronic map, is closed the corresponding point of the multiple latitude and longitude coordinates, the map area drawn, by
In the starting point that when recording touch information data, need to only record line segment and point is terminated, without recording entire touch
All points in track improve the drafting effect of map area to reduce the data volume of record and the data volume of conversion
Rate.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.
Fig. 1 is a kind of step flow chart of method for touching map making region provided in an embodiment of the present invention;
Fig. 2 is the exemplary diagram of the graphing in the embodiment of the present invention;
Fig. 3 is a kind of step flow chart of method for touching map making region provided in an embodiment of the present invention;
Fig. 4 is a kind of step flow chart of method for touching map making region provided in an embodiment of the present invention;
Fig. 5 is a kind of structural block diagram of device for touching map making region provided in an embodiment of the present invention;
Fig. 6 is a kind of structural block diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here
It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention
It is fully disclosed to those skilled in the art.
Fig. 1 is a kind of step flow chart of method for touching map making region provided in an embodiment of the present invention, this method
It can be applied in terminal, as shown in Figure 1, this method may include:
Step 101, when receiving touch drafting instruction, the touch track of user is monitored, and record the touch track
In the corresponding starting point of line segment and terminate point, the touch information data as the touch track.
Wherein, user by touch swipe gestures come map making region when, the touch tracks of touch swipe gestures can be with
It is split as multiple preceding latter linked line segments.
A trigger button can be provided in the display interface of electronic map, when detecting that user clicks the trigger button
When, determine that receiving touch draws instruction, at this moment, can forbid the existing gesture operation of electronic map, and monitor the touching of user
Track is touched, when recording the touch information data of touch track, touch track can be recorded according to the drawing order of touch track
In each line segment starting point and terminate point, and in same line segment be located at starting point and terminate point between point
Position does not have to record then, to reduce the data volume of record, conversion speed when subsequent conversion is latitude and longitude coordinates can be improved
Degree.
In adjacent two lines section, the starting point of the termination point of previous line segment and latter line segment is same point
Position, to be closed figure by the graphing that each line segment in touch track forms.
In a specific embodiment, the touch track of the monitoring user, and record the line in the touch track
The corresponding starting point of section and termination point, the touch information data as the touch track, comprising:
In the touch track for monitoring user, the line segment and curved section in the touch track are identified;
It records the starting point of the line segment and terminates point, the curved section is converted into multiple line segments, and according to suitable
Sequence records the starting point of the multiple line segment respectively and terminates point, obtains the touch information data of the touch track.
In the touch track for monitoring user, the call-back manner of system can use, identify the touch in touch track
Whether point is located along the same line, to identify the line segment and curved section in touch track.For line segment, line segment need to be only recorded
Starting point and terminate point.And for curved section, it can be realized with a plurality of line segment according to the radian size of curve, i.e., to institute
It states curved section and does cutting line, using the intersection point of adjacent two cutting lines as the termination point of previous line segment and latter line segment
Point is originated, each cutting line and its intersection point constitute multiple line segments, to curved section is converted to multiple interconnected
Line segment.The starting point of each line segment need to be only recorded when recording data and terminates point, reduce the data volume of record.
When curved section is converted to straightway, whether same straight line can be located at according to the adjacent touch point in curved section
On, if not on the same line, it is determined that the intersection point of adjacent two straight lines, and using the intersection point as the terminating point of previous line segment
The starting point of position and latter line segment.
By taking the graphing in Fig. 2 as an example, the graphing in Fig. 2 is regional graphics drawn by user, then touch point A to touching
Touching point B is line segment, only need to record two o'clock position and connect two o'clock, and touch point A to touch point C is also line segment, need to only record two o'clock
Position simultaneously connects two o'clock, and touch point B to touch point C is curved section, does cutting line to the curved section, records the friendship of cutting line
Then point sequentially connects intersection point, obtain figure drawn by user.
Step 102, the touch information data are converted into multiple latitude and longitude coordinates.
The touch information data recorded are converted into electronic map using function and show the latitude and longitude coordinates needed.By
In starting point and termination point that the touch information data of record are the line segment in touch track, thus being converted to longitude and latitude
When spending coordinate, the point of record need to only be converted, reduce the data volume of conversion.
It should be noted that above-mentioned steps 102 can restart execution after the completion of step 101 executes, alternatively, can be with
It is that step 102 and step 101 execute parallel, it can in the starting point for obtaining a line segment and after terminating point, so that it may
Obtained point is converted into latitude coordinate, to improve processing speed.
Step 103, the multiple latitude and longitude coordinates are shown on the electronic map, and are closed the multiple longitude and latitude
The corresponding point of coordinate, the map area drawn.
Multiple latitude and longitude coordinates after conversion are shown on electronic map, and by the corresponding point of multiple latitude and longitude coordinates
Front and back closure, user's drawing is just shown on electronic map at this time, is obtained user and is touched the map area drawn.
The embodiment of the present invention realizes in the electronic equipment of the operating systems such as IOS, using gestures such as touch strokes in electricity
Special pattern (rule or irregular) region is drawn a circle to approve in sub- map, can not only be shown drawing area in electronic map, and
And the drawing area can be sent to server-side, in order to which server-side screens the search that drawing area is used for data, and
Server-side record and for LBS (Location Based Service, location based service) to drawing area.Or
Person graph region can also realize more flexible function, such as the instruction according to user over the ground after drafting obtains map area
Graph region is hidden over the ground.
The method provided in this embodiment for touching map making region, by monitoring when receiving touch drafting instruction
The touch track of user, and record the corresponding starting point of the line segment in touch track and terminate point, as touch track
Touch information data are converted to multiple latitude and longitude coordinates, and multiple latitude and longitude coordinates are shown to electronics by touch information data
On map, it is closed the corresponding point of the multiple latitude and longitude coordinates, the map area drawn, due in record touch information
When data, it need to only record the starting point of line segment and terminate point, without recording all points in entire touch track,
To reduce the data volume of record and the data volume of conversion, the drafting efficiency of map area is improved.
Fig. 3 is a kind of step flow chart of method for touching map making region provided in an embodiment of the present invention, this method
It can be applied in terminal, as shown in figure 3, this method may include:
Step 301, when receiving touch drafting instruction, gesture is added on the electronic map and monitors view.
Wherein, the gesture monitoring view is masking-out view, preferably transparent view, i.e. gesture monitoring view is preferably saturating
Bright masking-out view, hence for user's unaware.The display size of the gesture monitoring view and showing for the electronic map
Show that size is identical, so as to accurate recording touch information data and also can more easily by it is transparent monitoring view on point
The latitude and longitude coordinates being converted on electronic map, without carrying out correction operation.If the display of the gesture monitoring view
Size is identical as the display size of the electronic map, then also needs operation of rectifying a deviation.
A trigger button can be provided in the display interface of electronic map, when detecting that user clicks the trigger button
When, it determines that receiving touch draws instruction, at this moment, adds gesture on the electronic map and monitor view.
Step 302, it when monitoring the touch track of user by gesture monitoring view, records in the touch track
The corresponding starting point of line segment and terminate point, the touch information data as the touch track.
It is avoided by the touch track that gesture monitors view monitoring user so that touch signal is isolated with electronic map
Directly operation has gesture operation with electronic map and conflicts user on the electronic map, promotion user experience.
Step 303, the touch information data are converted into multiple latitude and longitude coordinates.
Step 304, the multiple latitude and longitude coordinates are shown on the electronic map, and are closed the multiple longitude and latitude
The corresponding point of coordinate, the map area drawn.
It is provided in this embodiment touch map making region method, by receive touch draw instruction when, in electricity
Gesture is added on sub- map and monitors view, when monitoring the touch track of user by gesture monitoring view, records touch track
In the corresponding starting point of line segment and terminate point, as the touch information data of touch track, touch information data are turned
Multiple latitude and longitude coordinates are changed to, and latitude and longitude coordinates are shown on electronic map, are closed the corresponding point of multiple latitude and longitude coordinates
Position, the map area drawn monitor view by gesture and touch signal are isolated with electronic map, it is direct to avoid user
Operation has gesture operation with electronic map and conflicts on the electronic map, promotes user experience.
Based on the above technical solution, the corresponding starting point of the line segment in the touch track and termination are being recorded
Point, it is also optional to include: after the touch information data of the touch track
It is closed the terminating point and starting point of the touch track, obtains closure line segment;
According to the closure line segment and the touch track, user's graphing is determined, and monitor view in the gesture
Upper display user's graphing.
When monitoring that user starts to touch screen by gesture monitoring view, using initial touch point as the touching
The starting point for touching track determines touch point when finger frames out when monitoring that user's finger frames out to touch rail
The terminating point of mark connects the terminating point and the starting point with straight line, obtains closure line segment.The touch track and institute
Closure line segment composition user's graphing is stated, user's graphing is shown on gesture monitoring view, so as to present
Complete user's graphing out allows user to get information about the map area to be drawn, promotes user experience.
Based on the above technical solution, after the map area drawn, further includes: remove the gesture prison
Surveys view.After drafting obtains map area, gesture is removed in time and monitors view, so as to receive user to electronic map
Operation signal, and response is provided in time.
Fig. 4 is a kind of step flow chart of method for touching map making region provided in an embodiment of the present invention, this implementation
Example on the basis of the above embodiments, can also cancel the partial traces drawn, and repaint corresponding track.Such as Fig. 4
Shown, this method may include:
Step 401, when receiving touch drafting instruction, the touch track of user is monitored, and record the touch track
In the corresponding starting point of line segment and terminate point, the touch information data as the touch track.
Step 402, the touch information data are saved in two-dimensional array.
Touch information data, i.e. the starting point of each line segment in preservation touch track and end are saved by two-dimensional array
Stop position.
Step 403, when receiving cancel an order, according to the revocation starting point and cessation of Withdrawl in the cancel an order
Point determines line segment to be cancelled.
One revocation button of interface setting can be drawn in map area, for receiving the cancel an order of user.When monitoring
User's finger frames out, and time departure, when within preset time, if detecting, user clicks revocation button, receives
Cancel an order can determine that revocation starting point is the starting point of the last one line segment, cessation of Withdrawl point according to the cancel an order
For the termination point of the last one line segment.Alternatively, when monitoring that user's finger frames out, and time departure preset time with
When interior, if detecting, user clicks revocation button, and user can also be prompted to provide revocation starting point and revocation eventually by touching
Stop determines revocation starting point and cessation of Withdrawl to receive the cancel an order including cancelling starting point and cessation of Withdrawl point
Line segment between point is line segment to be cancelled, and line segment to be cancelled can be one or more line segment.
Step 404, according to the line segment to be cancelled, it is corresponding that the line segment to be cancelled is deleted from the two-dimensional array
Starting point and terminate point.
Step 405, receive redraw instruction when, the monitoring user touch track that repaints, and repainting
It is corresponding that the corresponding starting point of line segment in touch track is inserted into the line segment cancelled in the two-dimensional array with termination point
Position.
After the line segment that revocation user specifies, user can also redraw the line between revocation starting point and cessation of Withdrawl point
Section, when monitoring the slip gesture since cancelling starting point, determining receive redraws instruction, and monitors user and repaint
Touch track, determine that the corresponding starting point of one or more of line segments in the touch track that repaints is and terminating point
Position, and the starting point of each line segment and termination point are inserted into the corresponding position of the line segment that is cancelled in two-dimensional array.
Step 406, the touch information data are converted into multiple latitude and longitude coordinates.
When the time for monitoring that user's finger frames out reaching preset time, the touch information data are converted to
Multiple latitude and longitude coordinates.
Step 407, the multiple latitude and longitude coordinates are shown on the electronic map, and are closed the multiple longitude and latitude
The corresponding point of coordinate, the map area drawn.
The method provided in this embodiment for touching map making region, by the way that touch information data are saved in two-dimensional array
In, line segment to be cancelled can be determined, and from two-dimensional array according to the revocation starting point and cessation of Withdrawl point in cancel an order
It deletes the corresponding starting point of line segment to be cancelled and terminates point, the touch track that can also be repainted according to user will
The starting point and termination point of corresponding line segment are inserted into the corresponding position of the line segment cancelled in two-dimensional array, convenient for user couple
Graphing is corrected, and user experience is promoted.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Fig. 5 is a kind of structural block diagram of device for touching map making region provided in an embodiment of the present invention, which draws
The device of map area processed can be applied in terminal, as shown in figure 5, the device in the touch map making region may include:
Data recordin module 501, for monitoring the touch track of user, and record when receiving touch drafting instruction
The corresponding starting point of line segment and termination point in the touch track, the touch information data as the touch track;
Data conversion module 502, for the touch information data to be converted to multiple latitude and longitude coordinates;
Map area drafting module 503 for the multiple latitude and longitude coordinates to be shown to the electronic map, and closes
Close the corresponding point of the multiple latitude and longitude coordinates, the map area drawn.
Optionally, the data recordin module includes:
Straight line segments recognition unit, in the touch track for monitoring user, identify line segment in the touch track and
Curved section;
Data record unit is converted to the curved section for recording the starting point of the line segment and terminating point
Multiple line segments, and record the starting point of the multiple line segment respectively in sequence and terminate point, obtain the touch track
Touch information data.
Optionally, the data recordin module includes:
View adding unit is monitored, for adding gesture monitoring on the electronic map when receiving touch drafting instruction
View;
Touch track monitoring unit, when monitoring the touch track of user for monitoring view by the gesture, record
The corresponding starting point of line segment and termination point in the touch track, the touch information data as the touch track.
Optionally, further includes:
It is closed module, for being closed the terminating point and starting point of the touch track, obtains closure line segment;
Graphing display module, for determining user's graphing according to the closure line segment and the touch track,
And user's graphing is shown on gesture monitoring view.
Optionally, further includes:
View remove module is monitored, for removing the gesture monitoring view.
Optionally, the gesture monitoring view is transparent view, the display size and the electricity of the gesture monitoring view
The display size of sub- map is identical.
Optionally, further includes:
Data storage module, for the touch information data to be saved in two-dimensional array.
Optionally, further includes:
Line segment determining module to be cancelled, for being risen according to the revocation in the cancel an order when receiving cancel an order
Initial point and cessation of Withdrawl point determine line segment to be cancelled;
Line segment cancels module, described wait cancel for being deleted from the two-dimensional array according to the line segment to be cancelled
The corresponding starting point of line segment and terminate point.
Optionally, further includes:
Repaint module, for receive redraw instruction when, the touch track that repaints of monitoring user, and weighing
It the corresponding starting point of the line segment in touch track newly drawn and terminates point and is inserted into and cancelled in the two-dimensional array
The corresponding position of line segment.
The device provided in this embodiment for touching map making region is receiving touch drafting by data recordin module
When instruction, the touch track of user is monitored, and records the corresponding starting point of the line segment in touch track and terminates point, as
Touch information data are converted to multiple latitude and longitude coordinates, map area by the touch information data of touch track, data conversion module
Multiple latitude and longitude coordinates are shown on electronic map by domain drafting module, are closed the corresponding point of the multiple latitude and longitude coordinates,
The map area drawn, due to when recording touch information data, need to only record the starting point of line segment and terminate point,
Without recording all points in entire touch track, to reduce the data volume of record and the data volume of conversion, mention
The high drafting efficiency of map area.
Fig. 6 is a kind of structural block diagram of terminal provided in an embodiment of the present invention.As shown in fig. 6, the terminal 600 may include
One or more processors 601 and the one or more memories 602 being connect with processor 601.Terminal 600 can also include
Input interface 603 and output interface 604, for being communicated with another device or system.It is executed by the CPU of processor 601
Program code is storable in memory 602.
Processor 601 in terminal 600 calls the program code for being stored in memory 602, to execute in above-described embodiment
Touch map making region method.
Processor is the control centre of above-mentioned terminal, and provides processing unit, for executing instruction, progress interrupt operation,
Clocking capability and various other functions are provided.Processor can be monokaryon (single CPU) processor or multicore (multi -CPU) processor.
Unless otherwise stated, the component for being described as such as processor or memory for executing task can realize as universal component,
It is temporarily used for executing task in given time, or is embodied as being manufactured specifically for executing the particular elements of the task.It is used herein
Term " processor " refer to one or more devices, circuit and/or processing core, for handling data, such as computer program refers to
It enables.
Said elements in above-mentioned server can be connected to each other by bus, bus such as data/address bus, address bus, control
One of bus, expansion bus and local bus processed or any combination thereof.
According to one embodiment of present invention, a kind of computer readable storage medium is additionally provided, it is described computer-readable
Computer program is stored on storage medium, storage medium can be read-only memory (Read-Only Memory, ROM), or
It is read-write, such as hard disk, flash memory.Realize that the touch of previous embodiment is drawn when the computer program is executed by processor
The method of map area.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to it is provided by the present invention it is a kind of touch map making region method, apparatus, terminal and storage medium, into
It has gone and has been discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, the above implementation
The explanation of example is merely used to help understand method and its core concept of the invention;Meanwhile for the general technology people of this field
Member, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this explanation
Book content should not be construed as limiting the invention.
Claims (20)
1. a kind of method for touching map making region characterized by comprising
When receiving touch drafting instruction, the touch track of user is monitored, and it is corresponding to record the line segment in the touch track
Starting point and terminate point, the touch information data as the touch track;
The touch information data are converted into multiple latitude and longitude coordinates;
The multiple latitude and longitude coordinates are shown on the electronic map, and are closed the corresponding point of the multiple latitude and longitude coordinates
Position, the map area drawn.
2. the method according to claim 1, wherein the touch track of the monitoring user, and records the touching
It touches the corresponding starting point of line segment in track and terminates point, the touch information data as the touch track, comprising:
In the touch track for monitoring user, the line segment and curved section in the touch track are identified;
It records the starting point of the line segment and terminates point, the curved section is converted into multiple line segments, and divide in sequence
The starting point of the multiple line segment is not recorded and terminates point, obtains the touch information data of the touch track.
3. the method according to claim 1, wherein described when receiving touch drafting instruction, monitoring user
Touch track, and record the corresponding starting point of the line segment in the touch track and terminate point, as the touch rail
The touch information data of mark, comprising:
When receiving touch drafting instruction, gesture is added on the electronic map and monitors view;
When monitoring the touch track of user by gesture monitoring view, the line segment recorded in the touch track is corresponding
It originates point and terminates point, the touch information data as the touch track.
4. according to the method described in claim 3, it is characterized in that, recording the corresponding starting of the line segment in the touch track
Point and termination point, after the touch information data of the touch track, further includes:
It is closed the terminating point and starting point of the touch track, obtains closure line segment;
According to the closure line segment and the touch track, user's graphing is determined, and show on gesture monitoring view
Show user's graphing.
5. according to the method described in claim 3, it is characterized in that, after the map area drawn, further includes:
Remove the gesture monitoring view.
6. according to the method described in claim 3, it is characterized in that, gesture monitoring view is transparent view, the gesture
The display size for monitoring view is identical as the display size of the electronic map.
7. the method according to claim 1, wherein the touch information data are converted to multiple longitudes and latitudes
Before coordinate, further includes:
The touch information data are saved in two-dimensional array.
8. the method according to the description of claim 7 is characterized in that being saved in two-dimensional array by the touch information data
Later, further includes:
When receiving cancel an order, according to the revocation starting point and cessation of Withdrawl point in the cancel an order, determine wait cancel
Line segment;
According to the line segment to be cancelled, deleted from the two-dimensional array the corresponding starting point of line segment to be cancelled with
Terminate point.
9. according to the method described in claim 8, it is characterized in that, described wait cancel in the deletion from the two-dimensional array
The corresponding starting point of line segment and terminate point after, further includes:
Receive redraw instruction when, the touch track that repaints of monitoring user, and will be in the touch track that repainted
The corresponding starting point of line segment and termination point are inserted into the corresponding position of the line segment that is cancelled in the two-dimensional array.
10. a kind of device for touching map making region characterized by comprising
Data recordin module, for monitoring the touch track of user, and record the touch when receiving touch drafting instruction
The corresponding starting point of line segment and termination point in track, the touch information data as the touch track;
Data conversion module, for the touch information data to be converted to multiple latitude and longitude coordinates;
Map area drafting module, for the multiple latitude and longitude coordinates to be shown to the electronic map, and described in closure
The corresponding point of multiple latitude and longitude coordinates, the map area drawn.
11. device according to claim 10, which is characterized in that the data recordin module includes:
Straight line segments recognition unit, in the touch track for monitoring user, identifying line segment and curve in the touch track
Section;
Data record unit is converted to the curved section multiple for recording the starting point of the line segment and terminating point
Line segment, and record the starting point of the multiple line segment respectively in sequence and terminate point, obtain the touching of the touch track
Touch information data.
12. device according to claim 10, which is characterized in that the data recordin module includes:
View adding unit is monitored, for gesture being added on the electronic map and monitoring view when receiving touch drafting instruction;
Touch track monitoring unit, when monitoring the touch track of user for monitoring view by the gesture, described in record
The corresponding starting point of line segment and termination point in touch track, the touch information data as the touch track.
13. device according to claim 12, which is characterized in that further include:
It is closed module, for being closed the terminating point and starting point of the touch track, obtains closure line segment;
Graphing display module, for according to the closure line segment and the touch track, determining user's graphing, and
User's graphing is shown on the gesture monitoring view.
14. device according to claim 12, which is characterized in that further include:
View remove module is monitored, for removing the gesture monitoring view.
15. device according to claim 12, which is characterized in that the gesture monitoring view is transparent view, the hand
The display size that gesture monitors view is identical as the display size of the electronic map.
16. device according to claim 10, which is characterized in that further include:
Data storage module, for the touch information data to be saved in two-dimensional array.
17. device according to claim 16, which is characterized in that further include:
Line segment determining module to be cancelled, for when receiving cancel an order, according to the revocation starting point in the cancel an order
With cessation of Withdrawl point, line segment to be cancelled is determined;
Line segment cancels module, for deleting the line to be cancelled from the two-dimensional array according to the line segment to be cancelled
The corresponding starting point of section and termination point.
18. device according to claim 17, which is characterized in that further include:
Repaint module, for receive redraw instruction when, the touch track that repaints of monitoring user, and drawing again
The corresponding starting point of line segment and termination point in the touch track of system are inserted into the line segment cancelled in the two-dimensional array
Corresponding position.
19. a kind of terminal characterized by comprising processor, memory and be stored on the memory and can be at the place
The computer program run on reason device is realized when the computer program is executed by the processor as claim 1-9 is any
The method in the touch map making region described in.
20. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes such as the described in any item touch map making areas claim 1-9 when the computer program is executed by processor
The method in domain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910569363.XA CN110415315B (en) | 2019-06-27 | 2019-06-27 | Method, device, terminal and storage medium for touch drawing map area |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910569363.XA CN110415315B (en) | 2019-06-27 | 2019-06-27 | Method, device, terminal and storage medium for touch drawing map area |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110415315A true CN110415315A (en) | 2019-11-05 |
CN110415315B CN110415315B (en) | 2023-12-26 |
Family
ID=68359965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910569363.XA Active CN110415315B (en) | 2019-06-27 | 2019-06-27 | Method, device, terminal and storage medium for touch drawing map area |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110415315B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111080732A (en) * | 2019-11-12 | 2020-04-28 | 望海康信(北京)科技股份公司 | Method and system for forming virtual map |
CN111429549A (en) * | 2020-03-02 | 2020-07-17 | 北京梧桐车联科技有限责任公司 | Route image generation method and device and storage medium |
CN113157330A (en) * | 2021-01-13 | 2021-07-23 | 惠州Tcl移动通信有限公司 | Method, device and storage medium for drawing graph on map layer |
CN113720337A (en) * | 2021-08-20 | 2021-11-30 | 珠海格力电器股份有限公司 | Map editing method and device for sweeping robot, storage medium and electronic equipment |
WO2022253016A1 (en) * | 2021-05-29 | 2022-12-08 | 华为技术有限公司 | Line rollback method for input panel and related apparatus |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103791912A (en) * | 2012-10-30 | 2014-05-14 | 大陆汽车投资(上海)有限公司 | Navigation path planning device supporting hand-painted path |
CN105425966A (en) * | 2015-12-14 | 2016-03-23 | 珠海全志科技股份有限公司 | Gesture control method and device based on Android system |
CN106197445A (en) * | 2016-06-30 | 2016-12-07 | 百度在线网络技术(北京)有限公司 | A kind of method and device of route planning |
CN107239216A (en) * | 2016-03-28 | 2017-10-10 | 北大方正集团有限公司 | Drawing modification method and apparatus based on touch-screen |
CN107369198A (en) * | 2017-08-05 | 2017-11-21 | 中山大学 | A kind of more broken line method for drafting for ARCGIS Web maps |
CN108108091A (en) * | 2017-11-28 | 2018-06-01 | 贵阳语玩科技有限公司 | The refreshing display methods and system of sliding trace |
-
2019
- 2019-06-27 CN CN201910569363.XA patent/CN110415315B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103791912A (en) * | 2012-10-30 | 2014-05-14 | 大陆汽车投资(上海)有限公司 | Navigation path planning device supporting hand-painted path |
CN105425966A (en) * | 2015-12-14 | 2016-03-23 | 珠海全志科技股份有限公司 | Gesture control method and device based on Android system |
CN107239216A (en) * | 2016-03-28 | 2017-10-10 | 北大方正集团有限公司 | Drawing modification method and apparatus based on touch-screen |
CN106197445A (en) * | 2016-06-30 | 2016-12-07 | 百度在线网络技术(北京)有限公司 | A kind of method and device of route planning |
CN107369198A (en) * | 2017-08-05 | 2017-11-21 | 中山大学 | A kind of more broken line method for drafting for ARCGIS Web maps |
CN108108091A (en) * | 2017-11-28 | 2018-06-01 | 贵阳语玩科技有限公司 | The refreshing display methods and system of sliding trace |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111080732A (en) * | 2019-11-12 | 2020-04-28 | 望海康信(北京)科技股份公司 | Method and system for forming virtual map |
CN111080732B (en) * | 2019-11-12 | 2023-09-22 | 望海康信(北京)科技股份公司 | Method and system for forming virtual map |
CN111429549A (en) * | 2020-03-02 | 2020-07-17 | 北京梧桐车联科技有限责任公司 | Route image generation method and device and storage medium |
CN113157330A (en) * | 2021-01-13 | 2021-07-23 | 惠州Tcl移动通信有限公司 | Method, device and storage medium for drawing graph on map layer |
WO2022253016A1 (en) * | 2021-05-29 | 2022-12-08 | 华为技术有限公司 | Line rollback method for input panel and related apparatus |
CN113720337A (en) * | 2021-08-20 | 2021-11-30 | 珠海格力电器股份有限公司 | Map editing method and device for sweeping robot, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110415315B (en) | 2023-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110415315A (en) | Touch method, apparatus, terminal and the storage medium in map making region | |
US8847904B2 (en) | Gesture recognition method and touch system incorporating the same | |
KR101970208B1 (en) | Using clamping to modify scrolling | |
CN102609114B (en) | Effects of gravity on gestures | |
WO2016095689A1 (en) | Recognition and searching method and system based on repeated touch-control operations on terminal interface | |
US9229618B2 (en) | Turning pages of an electronic document by means of a single snap gesture | |
WO2019033655A1 (en) | Method and apparatus for mistouch prevention, device, and storage medium | |
US20210326151A1 (en) | Methods, devices and computer-readable storage media for processing a hosted application | |
US20160274723A1 (en) | Mobile gesture reporting and replay with unresponsive gestures identification and analysis | |
CN111125555A (en) | Enterprise information acquisition method and device | |
CN109542272A (en) | Touch screen scanning method and device, electronic equipment and computer readable storage medium | |
CN112306447A (en) | Interface navigation method, device, terminal and storage medium | |
US9429447B2 (en) | Method of utilizing image based on location information of the image in electronic device and the electronic device thereof | |
CN110198487B (en) | Video playing method, device, equipment and storage medium | |
WO2022016653A1 (en) | Dot-matrix writing content recording method and apparatus, and electronic device | |
WO2015067166A1 (en) | Touch-type input method and device | |
WO2015101204A1 (en) | Image zooming method and terminal device | |
WO2020078100A1 (en) | Method and device for processing webpage operation data, electronic apparatus, and storage medium | |
CN111401229A (en) | Visual small target automatic labeling method and device and electronic equipment | |
CN107291350B (en) | Method for deleting and terminal device applied to the terminal device for supporting multi-point touch | |
CN106775427B (en) | Method and device for collecting pages | |
CN110908568A (en) | Control method and device for virtual object | |
CN111435442B (en) | Character selection method and device, point reading equipment, electronic equipment and storage medium | |
CN114092556A (en) | Method, apparatus, electronic device, medium for determining human body posture | |
CN113253874A (en) | Display device control method, device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |