CN109389656A - The method and system of drawing area on the map of mobile terminal - Google Patents

The method and system of drawing area on the map of mobile terminal Download PDF

Info

Publication number
CN109389656A
CN109389656A CN201811235664.0A CN201811235664A CN109389656A CN 109389656 A CN109389656 A CN 109389656A CN 201811235664 A CN201811235664 A CN 201811235664A CN 109389656 A CN109389656 A CN 109389656A
Authority
CN
China
Prior art keywords
point
map
mobile terminal
angle point
angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811235664.0A
Other languages
Chinese (zh)
Inventor
郝敬全
蒋振东
辛国茂
马述杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taihua Wisdom Industry Group Co Ltd
Original Assignee
Taihua Wisdom Industry Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taihua Wisdom Industry Group Co Ltd filed Critical Taihua Wisdom Industry Group Co Ltd
Priority to CN201811235664.0A priority Critical patent/CN109389656A/en
Publication of CN109389656A publication Critical patent/CN109389656A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Abstract

This application discloses a kind of method and system of drawing area on the map of mobile terminal, it is related to drawing technique field, method such as includes: at the click signal to be obtained for touching main body on the map of mobile terminal, judge click location, if click location is target area, then obtain with the coordinate points of corresponding target area, using coordinate points as angle point;If click location is nontarget area, click signal is continued waiting for;According to the corresponding coordinate points position of angle point, mark point corresponding with angle point is marked on the map of mobile terminal and is stored into label point set;It continues waiting for obtaining click signal and angle point corresponding with click signal, judge whether that receiving angle point addition completes signal, if not receiving, it then continues waiting for obtaining angle point and the corresponding mark point of angle point is added in label point set, if receiving, then according to the mark point in label point set, draws and form a closed area.In this way, realizing the function that user independently draws region on the map of mobile terminal.

Description

The method and system of drawing area on the map of mobile terminal
Technical field
This application involves drawing technique fields, specifically, being related to a kind of method of drawing area on the map of mobile terminal And system.
Background technique
With the development of technology and the improvement of people ' s living standards, mobile phone has become in life essential one Point, slowly, Baidu map, Amap etc. are also come into being by the application of core technology of map, these map manufacturers are not The map application for providing only oneself research and development is used for broad masses of the people, additionally provides the corresponding SDK (Software of each platform Development Kit, Software Development Kit) it is used for application developer, facilitate developer quick in the application of oneself Integrated map function.There are many families in such map manufacturer, they provide SDK application method it is essentially identical, below we with Illustrate for the SDK of Baidu map mobile terminal.
In order to meet some specific business demands, for example user wants to reduce search range to some region on map, Developer needs to provide the method in specified region for user, and the method in traditional specified region is POI (Point of Interest, point of interest) retrieval.POI retrieval is exactly interest point search, and user is needed to input the interest of oneself in input frame Point, system upload point of interest to server, and server analysis point of interest refines analysis result and returns to user, and user selects oneself What is really needed returns the result, this result is exactly specified region.In the prior art, point of interest refers to geography information Point, such as the crossing X or some station board practicably manage the point of information description.
The core concept of this method is exactly to be uploaded by the landmark (point of interest) or keyword in the region It is retrieved to server, the purpose of retrieval is to obtain the details (possible inclusion region coordinate) in the region, then will be obtained Details show that on map, this region is exactly that user specifies region.It can be seen that this method has certain defect:
(1) Cloud Server or own server are relied on.Because analytic process reliance server is completed, it is necessary to upload retrieval Condition, this process need to connect internet, if our production environment is cannot to connect particular network (such as public security of internet Net or corporate lan) just it is unable to complete.
(2) search result is uncertain, because search result relies on search condition and searching algorithm, if user's input error Perhaps rear end searching algorithm it is defective may cause search result not be user need or it is basic do not return the result, It needs user to refine keyword again at this time to retrieve.
(3) can not self defined area, user can only select using returning the result and again retrieving, and returning the result is manually to mention The regional scope of confession, theoretically the point of interest region of standard, but we actually use in, may be exactly need it is non-type Point of interest region, such as user merely desire to selection parking lot middle section, and after inputting parking lot keyword, what is obtained is entirely to stop The regional scope in parking lot, thus widened specified region.
(4) user's operation is more.User is needed to input or select search condition, the reselection after obtaining search result list Oneself desired region, if the region being not intended to will repeated retrieval step.
In addition to this, there are also the methods of administrative region retrieval and own LBS cloud data retrieval, these methods equally have above The defect.Basic reason is all searching for generally for most application offers, shows more letters to user as far as possible Breath allows user to possess more rights to choose, and when user needs accurately to specify a certain region, especially self defined area when, these Method is all not applicable, this just needs us to develop a kind of method that user can be allowed independently to draw region on map.
Summary of the invention
In view of this, the technical problem to be solved by the application is to provide a kind of on the map of mobile terminal drawing area Method and system can allow user independently to draw region on moving map, can complete self-defined area independent of remote server Domain editor, it is easy to operate, it can be completed using the most basic gesture of map, and save computing resource, only a underrange needed to draw System.
In order to solve the above-mentioned technical problem, the application has following technical solution:
In a first aspect, the application provides a kind of method of drawing area on the map of mobile terminal characterized by comprising
Etc. click signal of the touch main body to be obtained on the map of mobile terminal, judge the click signal in the mobile terminal Corresponding click location on map, the click location includes nontarget area and target area, if the click location is mesh Region is marked, then the coordinate points of the target area corresponding with the click signal are obtained, using the coordinate points as angle point;If The click location is nontarget area, then continues waiting for obtaining the click signal for touching main body on the map of mobile terminal;
According to the corresponding coordinate points position of the angle point, marked on the mobile terminal map corresponding with the angle point Mark point stores the mark point into label point set, the mark point corresponding coordinate on the mobile terminal map Corresponding coordinate is identical on the mobile terminal map with the angle point;
It continues waiting for obtaining click signal and angle point corresponding with the click signal, and marks the angle point newly obtained Corresponding mark point stores the mark point into the label point set, and the mark point in the label point set adds Add the order of addition of sequence and the angle point corresponding with the mark point identical;
Judge whether the quantity of the mark point corresponding with the angle point is more than or equal to 3, if prompting to continue less than 3 Carry out the addition of angle point;If it is greater than or equal to 3, then judge whether that receiving angle point addition completes signal, if not receiving the angle Signal is completed in point addition, then continues waiting for obtaining angle point and the corresponding mark point of the angle point is added to the label point set In, if receiving the angle point addition completes signal, according to the mark point in the label point set, draws and form an envelope Closed region.
Optionally, in which:
In the coordinate points for obtaining corresponding with the click signal target area, using the coordinate points as angle point it Afterwards, further includes:
Judge whether to receive angle point modification signal, if receiving the angle point modification signal, corresponding angle point is deleted It removes, waits modified angle point to be obtained.
Optionally, in which:
According to the mark point in the label point set, draws and forms a closed area, further are as follows:
According to the order of addition of each mark point in the label point set, adjacent mark point is connected using straight line, is drawn System forms a closed area.
Optionally, in which:
According to the mark point in the label point set, draws and forms a closed area, further are as follows:
According to the order of addition of each mark point in the label point set, it is sequentially connected with each mark point using straight line, is drawn Form a closed area.
Second aspect, the application provide a kind of system of drawing area on the map of mobile terminal characterized by comprising
Angle point generation module, for etc. it is to be obtained touch click signal of the main body on the map of mobile terminal, judge the point Hit signal corresponding click location on the mobile terminal map, the click location includes nontarget area and target area, If the click location is target area, the coordinate points of the target area corresponding with the click signal are obtained, by institute Coordinate points are stated as angle point;If the click location is nontarget area, continue waiting for obtaining touch main body in mobile terminal Click signal on figure;
Mark point generation module is used for according to the corresponding coordinate points position of the angle point, in the mobile terminal map subscript Remember mark point corresponding with the angle point out, the mark point is stored into label point set, the mark point is in the shifting The corresponding coordinate on the mobile terminal map is identical with the angle point for corresponding coordinate on the map of moved end;The label point set In mark point order of addition and the angle point corresponding with the mark point order of addition it is identical;
Region drafting module, for judging whether the quantity of the mark point corresponding with the angle point is more than or equal to 3, if Less than 3, then prompt continues the addition of angle point;If it is greater than or equal to 3, then judge whether that receiving angle point addition completes signal, If not receiving the angle point addition completes signal, continues waiting for obtaining angle point and add the corresponding mark point of the angle point To in the label point set, signal is completed if receiving the angle point and adding, according to the label in the label point set Point is drawn and forms a closed area.
Optionally, in which:
It further include angle point modified module, the angle point modified module receives angle point modification signal for judging whether, if The angle point modification signal is received, then corresponding angle point is deleted, waits modified angle point to be obtained.
Optionally, in which:
The region drafting module, is further used for:, will according to the order of addition of each mark point in the label point set Adjacent mark point is connected using straight line, is drawn and is formed a closed area.
Optionally, in which:
The region drafting module, is further used for: according to the order of addition of each mark point in the label point set, benefit It is sequentially connected with each mark point with straight line, draws and forms a closed area.
Compared with prior art, the method and system of the drawing area described herein on the map of mobile terminal, reach Following effect:
(1) method and system of the drawing area provided by the present invention on the map of mobile terminal, independent of remote service The regional scope of user cognition can be converted to coordinate range using offline version map SDK by device.And user can make by oneself completely The terrain feature edit of justice, it is easy to operate, it is completed using the most basic gesture of map, not by the constraint of template or default, i.e., Make extremely complex figure, can also complete to draw.
(2) method and system of the drawing area provided by the present invention on the map of mobile terminal, in the process that region is drawn In, map other function is not influenced, and the map functions such as zoom, movement still can be completed when drawing region, it is convenient Adjust details.
(3) method and system of the drawing area provided by the present invention on the map of mobile terminal, it is only necessary to which a underrange is drawn System can be completed, and be conducive to save computing resource.
(4) method and system of the drawing area provided by the present invention on the map of mobile terminal, generality is stronger, is suitable for Various types of maps, have wide range of applications on mobile terminal.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 show a kind of process of the method for drawing area on the map of mobile terminal provided by the embodiment of the present application Figure;
Fig. 2 is shown according to the envelope that the method for drawing area is drawn out on the map of mobile terminal provided by application embodiment A kind of schematic diagram of closed region;
Fig. 3 show another process of the method for drawing area on the map of mobile terminal provided by the embodiment of the present application Figure;
Fig. 4 show provided by the embodiment of the present application on the map of mobile terminal closed area in the method for drawing area Forming process figure;
Fig. 5 is shown according to the envelope that the method for drawing area is drawn out on the map of mobile terminal provided by application embodiment Another schematic diagram of closed region;
Fig. 6 show a kind of structure of the system of drawing area on the map of mobile terminal provided by the embodiment of the present application Figure.
Specific embodiment
As used some vocabulary to censure specific components in the specification and claims.Those skilled in the art answer It is understood that hardware manufacturer may call the same component with different nouns.This specification and claims are not with name The difference of title is as the mode for distinguishing component, but with the difference of component functionally as the criterion of differentiation.Such as logical The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit In "." substantially " refer within the acceptable error range, those skilled in the art can within a certain error range solve described in Technical problem basically reaches the technical effect.In addition, " coupling " word includes any direct and indirect electric property coupling herein Means.Therefore, if it is described herein that a first device is coupled to a second device, then representing the first device can directly electrical coupling It is connected to the second device, or the second device indirectly electrically coupled through other devices or coupling means.Specification Subsequent descriptions be implement the application better embodiment, so it is described description be for the purpose of the rule for illustrating the application, It is not intended to limit the scope of the present application.The protection scope of the application is as defined by the appended claims.
In the prior art, in order to meet some specific business demands, for example user wants to reduce search range on map To some region, developer needs to provide the method in specified region for user, and the method in traditional specified region is POI (Point Of Interest, point of interest) retrieval.POI retrieval is exactly interest point search, and user is needed to input the emerging of oneself in input frame Interesting, system uploads point of interest to server, and server analysis point of interest refines analysis result and returns to user, and user's selection is certainly What oneself really needed returns the result, this result is exactly specified region.The core concept of this method is exactly by the region Landmark (point of interest) or keyword are uploaded to server and are retrieved, and the purpose of retrieval is obtain the region detailed Then obtained details are shown on map that this region is exactly that user specifies region by feelings (possible inclusion region coordinate).Thus As it can be seen that this method has certain defect:
(1) Cloud Server or own server are relied on.Because analytic process reliance server is completed, it is necessary to upload retrieval Condition, this process need to connect internet, if our production environment is cannot to connect particular network (such as public security of internet Net or corporate lan) just it is unable to complete.
(2) search result is uncertain, because search result relies on search condition and searching algorithm, if user's input error Perhaps rear end searching algorithm it is defective may cause search result not be user need or it is basic do not return the result, It needs user to refine keyword again at this time to retrieve.
(3) can not self defined area, user can only select using returning the result and again retrieving, and returning the result is manually to mention The regional scope of confession, theoretically the point of interest region of standard, but we actually use in, may be exactly need it is non-type Point of interest region, such as user merely desire to selection parking lot middle section, and after inputting parking lot keyword, what is obtained is entirely to stop The regional scope in parking lot, thus widened specified region.
(4) user's operation is more.User is needed to input or select search condition, the reselection after obtaining search result list Oneself desired region, if the region being not intended to will repeated retrieval step.
In addition to this, there are also the methods of administrative region retrieval and own LBS cloud data retrieval, these methods equally have above The defect.Basic reason is all searching for generally for most application offers, shows more letters to user as far as possible Breath allows user to possess more rights to choose, and when user needs accurately to specify a certain region, especially self defined area when, these Method is all not applicable, this just needs us to develop a kind of method that user can be allowed independently to draw region on map.
In view of this, the technical problem to be solved by the application is to provide a kind of on the map of mobile terminal drawing area Method and system, independent of remote server, can self defined area editor completely, it is easy to operate, it is most basic using map Gesture can be completed, and save computing resource, only a underrange be needed to draw.
It is described in detail below in conjunction with the drawings and specific embodiments.
Fig. 1 show a kind of process of the method for drawing area on the map of mobile terminal provided by the embodiment of the present application Figure, referring to Figure 1, the embodiment of the present application provides a kind of method of drawing area on the map of mobile terminal, which is characterized in that packet It includes:
Step 101, etc. it is to be obtained touch click signal of the main body on the map of mobile terminal, judge the click signal in institute Corresponding click location on the map of mobile terminal is stated, the click location includes nontarget area and target area, if the click Position is target area, then obtains the coordinate points of the target area corresponding with the click signal, the coordinate points are made For angle point;If the click location is nontarget area, continue waiting for obtaining the click for touching main body on the map of mobile terminal Signal;
Step 102, according to the corresponding coordinate points position of the angle point, marked on the mobile terminal map and the angle The corresponding mark point of point stores the mark point into label point set, and the mark point is right on the mobile terminal map The corresponding coordinate on the mobile terminal map is identical with the angle point for the coordinate answered;
Step 103 continues waiting for obtaining click signal and angle point corresponding with the click signal, and marks and newly obtain The corresponding mark point of the angle point taken stores the mark point into the label point set, the mark in the label point set The order of addition of the order of addition and the angle point corresponding with the mark point of remembering point is identical;
Whether step 104, the quantity of the judgement mark point corresponding with the angle point are more than or equal to 3, if less than 3, Prompt continues the addition of angle point;If it is greater than or equal to 3, then judge whether that receiving angle point addition completes signal, if not receiving It is added to the angle point and completes signal, then continue waiting for obtaining angle point and the corresponding mark point of the angle point is added to the mark Remember in point set, if receiving the angle point addition completes signal, according to the mark point in the label point set, draws shape At a closed area.
Specifically, provided by the embodiment of the present application on the map of mobile terminal in the method for drawing area, by step 101 The click signal for touching main body on the map of mobile terminal is obtained, click signal herein for example can be user in mobile terminal map On a certain position signal being clicked or double-clicked, touch main body herein for example can be finger, can also be and mobile terminal Click pen being used cooperatively etc., the application is to this without specifically limiting.When click signal is corresponding on the map of mobile terminal When click location is target area, then the coordinate points of the target area are obtained, target area provided by the embodiment of the present application refers to Be the corresponding small region in user closed area to be drawn, such as can be located at the closed area fringe region;It is non- Target area refers to unrelated other regions in the closed area to be drawn with user;Such as the closed area to be drawn as user To the railway station of Yingcheng City M, when click location is in city N, then the corresponding position of the click location is then nontarget area.
After getting angle point, by step 102, according to the corresponding coordinate points position of angle point, in mobile terminal map subscript Remember mark point corresponding with angle point out, and mark point is stored into label point set, it should be noted that step 102 phase When the touch location then by the touch main body of user on moving map, that is, the position of the angle point formed is marked, obtains Above-mentioned mark point, as the subsequent reference point for drawing closed area.
Through the above steps 103, it continues waiting for obtaining the click signal for touching main body and angle corresponding with the click signal The corner location newly obtained is marked in point, forms new mark point, and stores into label point set.It needs to illustrate It is that the order of addition of label point set acceptance of the bid note point and the order of addition of angle point corresponding with mark point are identical, to be subsequent Closed area is drawn to make reference.
In general, at least needing 3 angle points, therefore in movement provided by the embodiment of the present application if closed area need to be drawn On map in the method for drawing area, judge whether the quantity of mark point corresponding with angle point is more than or equal to 3 by step 104, It is unable to complete the drafting of closed area if less than 3, therefore the addition for continuing angle point is prompted then to judge if it is greater than or equal to 3 The addition for whether completing angle point continues waiting for obtaining angle point if not completing addition, if closed area can be carried out by completing addition Drafting.In this way, user, which only needs to click by touch main body corresponding position on the map of mobile terminal, can form angle point And corresponding mark point can form closed area specified by user after the label for completing mark point, it is easy to operate.This Outside, the method for the provided drawing area on the map of mobile terminal of the embodiment of the present application, is not rely on remote server, uses The regional scope of user cognition can be converted to coordinate range by offline version map SDK.And user can complete customized area Domain editor, it is easy to operate, it is completed using the most basic gesture of map, not by the constraint of template or default, even if very Complicated figure, can also complete to draw.During region is drawn, map other function is influenced, when drawing region Still the map functions such as zoom, movement can be completed, adjustment details is facilitated.User only needs during region is drawn It wants underrange drafting can be completed, is conducive to save computing resource, in addition, provided by the embodiment of the present application in mobile terminal The generality of the method for drawing area is stronger on figure, is suitable for various types of maps on mobile terminal, has wide range of applications.
It should be noted that the method in region of going back on the map of mobile terminal provided by the embodiment of the present application, not office It is limited to point of interest region in the prior art, one in region, such as desolate and uninhabited desert can also be drawn in white space Unknown region is not a standard point of interest, but this method can be used and draw region, for map, as long as having coordinate It can complete picture regional function.
Optionally, in above-mentioned steps 101, in the coordinate points for obtaining corresponding with the click signal target area, After using the coordinate points as angle point, further includes:
Judge whether to receive angle point modification signal, if receiving the angle point modification signal, corresponding angle point is deleted It removes, waits modified angle point to be obtained.
Specifically, after user is by touching main body click target area formation angle point, if user's discovery is formed by angle point Not oneself desired angle point, or when falsely dropping alternate angle point due to hand, also by above-mentioned steps provided by the embodiment of the present application Can angle steel joint modify, by mistake angle point delete, obtain new angle point, so it is more user-friendly, thus It is more in line with the use demand of user.
Optionally, it in above-mentioned steps 104, according to the mark point in the label point set, draws and forms an enclosed area Domain, further are as follows:
According to the order of addition of each mark point in the label point set, adjacent mark point is connected using straight line, is drawn System forms a closed area.
For example, refer to Fig. 2, Fig. 2 show according to provided by application embodiment on the map of mobile terminal drawing area A kind of schematic diagram of closed area for drawing out of method, marking successively includes mark point A, mark point B, mark point in point set C, mark point D and mark point E, the order of addition of mark point are A → B → C → D → E, can be according to after being formed and marking point set Secondary connection AB, BC, CD, DE, EA so form a unique closed area.
Optionally, in addition to the mode of above-mentioned drafting closed area, in above-mentioned steps 104, according in the label point set Mark point, draw formed a closed area, further are as follows:
According to the order of addition of each mark point in the label point set, it is sequentially connected with each mark point using straight line, is drawn Form a closed area.
It specifically, successively include mark point A, mark point B, mark point C, label in point set continuing with referring to fig. 2, marking Point D and mark point E, the order of addition of mark point are A → B → C → D → E, after forming label point set, can be separately connected AB, BC, CD, DE, EA, wherein in the embodiment without limitation to the order of connection of AB, BC, CD, DE, EA, such as achievable AB Connection, then complete the connection of DE, then complete the connection of CD, the connection of EA, the connection of BC, so can also be formed one it is unique Closed area.
Below in conjunction with Fig. 3-Fig. 5 to the method for drawing area carries out on the map of mobile terminal provided by the embodiment of the present application It further illustrates, Fig. 3 show the another kind of the method for drawing area on the map of mobile terminal provided by the embodiment of the present application Flow chart, Fig. 4 show provided by the embodiment of the present application on the map of mobile terminal closed area in the method for drawing area Forming process figure, Fig. 5 are shown according to the method for drawing area is drawn out on the map of mobile terminal provided by application embodiment Closed area another schematic diagram, incorporated by reference to Fig. 3-Fig. 5, it is assumed that user wants to mark airport P on the map of mobile terminal Region first by adjusting mobile terminal map to suitable position, to show based on the P of airport, pass through in actual application Event triggering, which enters, draws process, refers to Fig. 3 and Fig. 4;Then map zoom level is adjusted, zoom level is bigger, and position is more quasi- Really, airport P corresponding part is amplified to suitable position by user at this time, is clicked airport northwest Angle Position A, is obtained the coordinate of the position (a1, a2) and angle point is formed, and the corresponding mark point of angle point is stored into label point set, the step is repeated, according to suitable Hour hands or counter clockwise direction, which are put, hits all angle points and corresponding mark point, respective coordinates (b1, b2), (c1, c2), (d1, D2) ... (k1, k2) forms uniquely closed area corresponding with airport P finally by each mark point in label point set.
Based on the same inventive concept, the application also provides a kind of system of drawing area on the map of mobile terminal, refers to Fig. 6, Fig. 6 show a kind of structure chart of the system 100 of drawing area on the map of mobile terminal provided by the embodiment of the present application, The system 100 includes:
Angle point generation module 10, for etc. it is to be obtained touch click signal of the main body on the map of mobile terminal, described in judgement Click signal corresponding click location, click location on the mobile terminal map include nontarget area and target area Domain obtains the coordinate points of the target area corresponding with the click signal if the click location is target area, will The coordinate points are as angle point;If the click location is nontarget area, continue waiting for obtaining touch main body in mobile terminal Click signal on map;
Mark point generation module 20 is used for according to the corresponding coordinate points position of the angle point, on the mobile terminal map Mark point corresponding with the angle point is marked, the mark point is stored into label point set, the mark point is described The corresponding coordinate on the mobile terminal map is identical with the angle point for corresponding coordinate on the map of mobile terminal;The label point set The order of addition of mark point in conjunction and the order of addition of the angle point corresponding with the mark point are identical;
Region drafting module 30, for judging whether the quantity of the mark point corresponding with the angle point is more than or equal to 3, If prompting the addition for continuing angle point less than 3;If it is greater than or equal to 3, then judge whether that receiving angle point addition completes letter Number, if not receiving angle point addition completes signal, continue waiting for obtaining angle point and by the corresponding mark point of the angle point It is added in the label point set, if receiving the angle point addition completes signal, according in the label point set Mark point draws and forms a closed area.
Specifically, continuing with referring to Fig. 6, the system of the provided drawing area on the map of mobile terminal of the embodiment of the present application In, the click signal for touching main body on the map of mobile terminal is obtained by angle point generation module 10, click signal herein is for example It can be the signal that a certain position of the user on the map of mobile terminal is clicked or double-clicked, touch main body herein for example can be with It can also be the click pen etc. being used cooperatively with mobile terminal, the application is to this without specifically limiting for finger.Work as click signal When click location corresponding on the map of mobile terminal is target area, then the coordinate points of the target area are obtained, the application is implemented Target area provided by example refers to the corresponding small region in user closed area to be drawn, such as can be located at the envelope The fringe region of closed region;Nontarget area refers to unrelated other regions in the closed area to be drawn with user;Such as when User closed area to be drawn is to the railway station of Yingcheng City M, and when click location is in city N, then the click location is corresponding Position is then nontarget area.Label corresponding with angle point is marked on the map of mobile terminal by mark point generation module 20 Point, and mark point is stored into label point set, it should be noted that mark point generation module 20 is the equal of by user's Touching touch location of the main body on moving map, that is, the position of the angle point formed is marked, above-mentioned mark point is obtained, as The subsequent reference point for drawing closed area.The quantity for judging corresponding with angle point mark point finally by region drafting module 30 is It is no to be more than or equal to 3, the drafting of closed area is unable to complete if less than 3, therefore prompt continues the addition of angle point, if more than Equal to 3, then judge whether the addition for completing angle point, continue waiting for obtaining angle point if not completing addition, if completing addition Carry out the drafting of closed area.In this way, user only needs to click by touching main body corresponding position on the map of mobile terminal Angle point and corresponding mark point can be formed, after the label for completing mark point, closed area specified by user can be formed, It is easy to operate.In addition, the system of the provided drawing area on the map of mobile terminal of the embodiment of the present application, is not rely on long-range The regional scope of user cognition can be converted to coordinate range using offline version map SDK by server.And user can be complete Customized terrain feature edit, it is easy to operate, it is completed using the most basic gesture of map, not by the pact of template or default Beam can also be completed to draw even if extremely complex figure.During region is drawn, map other function is influenced, is being drawn Still the map functions such as zoom, movement can be completed when region, facilitate adjustment details.The mistake that user draws in region Cheng Zhong, it is only necessary to which underrange drafting can be completed, and be conducive to save computing resource, in addition, provided by the embodiment of the present application The generality of the method for drawing area is stronger on the map of mobile terminal, is suitable for various types of maps on mobile terminal, using model It encloses extensively.
It optionally, further include angle point modified module, the angle point modified module receives angle point modification for judging whether Corresponding angle point is deleted if receiving the angle point modification signal, waits modified angle point to be obtained by signal.In this way, with After family is by touching main body click target area formation angle point, if it is not oneself desired angle that user's discovery, which is formed by angle point, Point, or when falsely dropping alternate angle point due to hand, by above-mentioned steps provided by the embodiment of the present application can also angle steel joint modify, The angle point of mistake is deleted, new angle point is obtained, it is so more user-friendly, to be more in line with the use of user Demand.
Optionally, the region drafting module 30, be further used for: being added according to each mark point in the label point set Add sequence, adjacent mark point is connected using straight line, draws and forms a closed area.For example, Fig. 2 is referred to, shown in Fig. 2 To show according to the one kind for the closed area that the method for drawing area is drawn out on the map of mobile terminal provided by application embodiment It is intended to, marking successively includes mark point A, mark point B, mark point C, mark point D and mark point E in point set, and mark point adds Adding sequence is A → B → C → D → E, after being formed and marking point set, can be sequentially connected AB, BC, CD, DE, EA, so i.e. shape At a unique closed area.
Optionally, the region drafting module 30, be further used for: being added according to each mark point in the label point set Add sequence, is sequentially connected with each mark point using straight line, draws and form a closed area.Continuing with referring to fig. 2, point set is marked In successively include mark point A, mark point B, mark point C, mark point D and mark point E, the order of addition of mark point be A → B → C → D → E, formed mark point set after, AB, BC, CD, DE, EA can be separately connected, wherein in the embodiment to AB, BC, Without limitation, then the connection of DE is completed in such as the connection of achievable AB to the order of connection of CD, DE, EA, then complete the company of CD It connects, the connection of EA, the connection of BC, so can also form a unique closed area.
As can be seen from the above embodiments beneficial effect existing for the application is:
(1) method and system of the drawing area provided by the present invention on the map of mobile terminal, independent of remote service The regional scope of user cognition can be converted to coordinate range using offline version map SDK by device.And user can make by oneself completely The terrain feature edit of justice, it is easy to operate, it is completed using the most basic gesture of map, not by the constraint of template or default, i.e., Make extremely complex figure, can also complete to draw.
(2) method and system of the drawing area provided by the present invention on the map of mobile terminal, in the process that region is drawn In, map other function is not influenced, and the map functions such as zoom, movement still can be completed when drawing region, it is convenient Adjust details.
(3) method and system of the drawing area provided by the present invention on the map of mobile terminal, it is only necessary to which a underrange is drawn System can be completed, and be conducive to save computing resource.
(4) method and system of the drawing area provided by the present invention on the map of mobile terminal, generality is stronger, is suitable for Various types of maps, have wide range of applications on mobile terminal.
It should be understood by those skilled in the art that, embodiments herein can provide as method, apparatus or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
Above description shows and describes several preferred embodiments of the present application, but as previously described, it should be understood that the application Be not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations, Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through within that scope of the inventive concept describe herein It is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this Shen It please be in the protection scope of appended claims.

Claims (8)

1. a kind of method of the drawing area on the map of mobile terminal characterized by comprising
Etc. click signal of the touch main body to be obtained on the map of mobile terminal, judge the click signal in the mobile terminal map Upper corresponding click location, the click location includes nontarget area and target area, if the click location is target area Domain then obtains the coordinate points of the target area corresponding with the click signal, using the coordinate points as angle point;If described Click location is nontarget area, then continues waiting for obtaining the click signal for touching main body on the map of mobile terminal;
According to the corresponding coordinate points position of the angle point, label corresponding with the angle point is marked on the mobile terminal map Point stores the mark point into label point set, the mark point corresponding coordinate and institute on the mobile terminal map It is identical to state angle point corresponding coordinate on the mobile terminal map;
It continues waiting for obtaining click signal and angle point corresponding with the click signal, and it is corresponding to mark the angle point newly obtained Mark point, the mark point is stored into the label point set, it is described label point set in mark point addition it is suitable Sequence and the order of addition of the angle point corresponding with the mark point are identical;
Judge whether the quantity of the mark point corresponding with the angle point is more than or equal to 3, if prompting to continue less than 3 The addition of angle point;If it is greater than or equal to 3, then judge whether that receiving angle point addition completes signal, adds if not receiving the angle point Signal is added into, then continue waiting for obtaining angle point and the corresponding mark point of the angle point is added in the label point set, If receiving the angle point addition completes signal, according to the mark point in the label point set, draws and form a closing Region.
2. according to claim 1 on the map of mobile terminal drawing area method, which is characterized in that obtain with the point The coordinate points for hitting the corresponding target area of signal, using the coordinate points as angle point after, further includes:
Judge whether to receive angle point modification signal, if receiving the angle point modification signal, corresponding angle point is deleted, etc. Modified angle point to be obtained.
3. according to claim 1 on the map of mobile terminal drawing area method, which is characterized in that according to the mark point Mark point in set draws and forms a closed area, further are as follows:
According to the order of addition of each mark point in the label point set, adjacent mark point is connected using straight line, draws shape At a closed area.
4. according to claim 1 on the map of mobile terminal drawing area method, which is characterized in that according to the mark point Mark point in set draws and forms a closed area, further are as follows:
According to the order of addition of each mark point in the label point set, it is sequentially connected with each mark point using straight line, draws and is formed One closed area.
5. a kind of system of the drawing area on the map of mobile terminal characterized by comprising
Angle point generation module, for etc. it is to be obtained touch click signal of the main body on the map of mobile terminal, judge that the click is believed The corresponding click location number on the mobile terminal map, the click location includes nontarget area and target area, if institute Stating click location is target area, then the coordinate points of the target area corresponding with the click signal is obtained, by the seat Punctuate is as angle point;If the click location is nontarget area, continue waiting for obtaining touch main body on the map of mobile terminal Click signal;
Mark point generation module, for being marked on the mobile terminal map according to the corresponding coordinate points position of the angle point Mark point corresponding with the angle point stores the mark point into label point set, and the mark point is in the mobile terminal The corresponding coordinate on the mobile terminal map is identical with the angle point for corresponding coordinate on map;In the label point set The order of addition of mark point and the order of addition of the angle point corresponding with the mark point are identical;
Region drafting module, for judging whether the quantity of the mark point corresponding with the angle point is more than or equal to 3, if being less than 3, then prompt continues the addition of angle point;If it is greater than or equal to 3, then judge whether that receiving angle point addition completes signal, if not It receives the angle point addition and completes signal, then continue waiting for obtaining angle point and the corresponding mark point of the angle point is added to institute It states in label point set, if receiving the angle point addition completes signal, according to the mark point in the label point set, draws System forms a closed area.
6. the system of the drawing area according to claim 5 on the map of mobile terminal, which is characterized in that further include that angle point is repaired Change module, the angle point modified module receives angle point modification signal for judging whether, if receiving the angle point modification letter Number, then corresponding angle point is deleted, waits modified angle point to be obtained.
7. the system of the drawing area according to claim 5 on the map of mobile terminal, which is characterized in that draw in the region Module is further used for: according to the order of addition of each mark point in the label point set, adjacent mark point being utilized straight line Connection draws and forms a closed area.
8. the system of the drawing area according to claim 5 on the map of mobile terminal, which is characterized in that draw in the region Module is further used for: according to the order of addition of each mark point in the label point set, being sequentially connected with each label using straight line Point is drawn and forms a closed area.
CN201811235664.0A 2018-10-23 2018-10-23 The method and system of drawing area on the map of mobile terminal Pending CN109389656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811235664.0A CN109389656A (en) 2018-10-23 2018-10-23 The method and system of drawing area on the map of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811235664.0A CN109389656A (en) 2018-10-23 2018-10-23 The method and system of drawing area on the map of mobile terminal

Publications (1)

Publication Number Publication Date
CN109389656A true CN109389656A (en) 2019-02-26

Family

ID=65427529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811235664.0A Pending CN109389656A (en) 2018-10-23 2018-10-23 The method and system of drawing area on the map of mobile terminal

Country Status (1)

Country Link
CN (1) CN109389656A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706306A (en) * 2019-09-24 2020-01-17 上海钧正网络科技有限公司 Method and device for drawing area in map application and computer equipment
CN112068079A (en) * 2020-08-28 2020-12-11 森思泰克河北科技有限公司 Defense area dividing method and device for security radar, terminal and storage medium

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1096648A (en) * 1996-07-31 1998-04-14 Aisin Aw Co Ltd Information indicator with touch panel
JP2008286687A (en) * 2007-05-18 2008-11-27 Funai Electric Co Ltd Electronic apparatus and navigation device
US20090192703A1 (en) * 2007-11-22 2009-07-30 Steffen Hess Method and device for providing information about points of interest using a navigation system
CN101965500A (en) * 2008-01-06 2011-02-02 苹果公司 Graphical user interface for presenting location information
US20110193795A1 (en) * 2010-02-09 2011-08-11 Yahoo! Inc. Haptic search feature for touch screens
CN102663033A (en) * 2012-03-23 2012-09-12 汉海信息技术(上海)有限公司 Method for searching interest points in designated area of map by hand-drawing way
JP2012189780A (en) * 2011-03-10 2012-10-04 Aisin Aw Co Ltd Map display system, map display device, map display method and computer program
CN103605463A (en) * 2013-11-28 2014-02-26 东莞中国科学院云计算产业技术创新与育成中心 Rapid momentum plotting system and method based on GIS platform and touchscreen device
CN103927934A (en) * 2013-01-14 2014-07-16 北京中交兴路信息科技有限公司 Closed fence drawing method and system
CN104239396A (en) * 2014-06-20 2014-12-24 北京奇虎科技有限公司 Method and device for searching business object on electronic map
US20150045065A1 (en) * 2013-08-08 2015-02-12 Lg Electronics Inc. Mobile terminal and controlling method thereof
CN104807461A (en) * 2015-05-18 2015-07-29 北京京东尚科信息技术有限公司 Indoor navigation method and device
CN105405355A (en) * 2015-12-24 2016-03-16 成都小步创想畅联科技有限公司 Method for screening information points on electronic map
CN105518415A (en) * 2014-10-22 2016-04-20 深圳市大疆创新科技有限公司 Flight path setting method and apparatus
CN105511794A (en) * 2015-12-14 2016-04-20 中国电子科技集团公司第十五研究所 Plotting system supporting multi-point touch gesture operation and method of system
CN105808693A (en) * 2016-03-03 2016-07-27 成都高合盛科技有限责任公司 Electronic map based appointment method and apparatus
CN106202237A (en) * 2016-06-29 2016-12-07 泰华智慧产业集团股份有限公司 A kind of industry item area method for drawing map and system thereof
CN106652756A (en) * 2015-11-03 2017-05-10 圆通速递有限公司 Polygon accurate drawing method based on electronic map and application method thereof
CN107193901A (en) * 2017-05-11 2017-09-22 长威信息科技发展股份有限公司 A kind of resource visualizes the method and system of fast selecting
CN107369198A (en) * 2017-08-05 2017-11-21 中山大学 A kind of more broken line method for drafting for ARCGIS Web maps
CN108108489A (en) * 2018-01-12 2018-06-01 阿里巴巴集团控股有限公司 POI search methods and device based on geographical location
CN108228741A (en) * 2016-12-15 2018-06-29 苏州宝时得电动工具有限公司 Ground drawing generating method, device and the automatic working system of automatic working system

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1096648A (en) * 1996-07-31 1998-04-14 Aisin Aw Co Ltd Information indicator with touch panel
JP2008286687A (en) * 2007-05-18 2008-11-27 Funai Electric Co Ltd Electronic apparatus and navigation device
US20090192703A1 (en) * 2007-11-22 2009-07-30 Steffen Hess Method and device for providing information about points of interest using a navigation system
CN101965500A (en) * 2008-01-06 2011-02-02 苹果公司 Graphical user interface for presenting location information
US20110193795A1 (en) * 2010-02-09 2011-08-11 Yahoo! Inc. Haptic search feature for touch screens
JP2012189780A (en) * 2011-03-10 2012-10-04 Aisin Aw Co Ltd Map display system, map display device, map display method and computer program
CN102663033A (en) * 2012-03-23 2012-09-12 汉海信息技术(上海)有限公司 Method for searching interest points in designated area of map by hand-drawing way
CN103927934A (en) * 2013-01-14 2014-07-16 北京中交兴路信息科技有限公司 Closed fence drawing method and system
US20150045065A1 (en) * 2013-08-08 2015-02-12 Lg Electronics Inc. Mobile terminal and controlling method thereof
CN103605463A (en) * 2013-11-28 2014-02-26 东莞中国科学院云计算产业技术创新与育成中心 Rapid momentum plotting system and method based on GIS platform and touchscreen device
CN104239396A (en) * 2014-06-20 2014-12-24 北京奇虎科技有限公司 Method and device for searching business object on electronic map
CN105518415A (en) * 2014-10-22 2016-04-20 深圳市大疆创新科技有限公司 Flight path setting method and apparatus
CN104807461A (en) * 2015-05-18 2015-07-29 北京京东尚科信息技术有限公司 Indoor navigation method and device
CN106652756A (en) * 2015-11-03 2017-05-10 圆通速递有限公司 Polygon accurate drawing method based on electronic map and application method thereof
CN105511794A (en) * 2015-12-14 2016-04-20 中国电子科技集团公司第十五研究所 Plotting system supporting multi-point touch gesture operation and method of system
CN105405355A (en) * 2015-12-24 2016-03-16 成都小步创想畅联科技有限公司 Method for screening information points on electronic map
CN105808693A (en) * 2016-03-03 2016-07-27 成都高合盛科技有限责任公司 Electronic map based appointment method and apparatus
CN106202237A (en) * 2016-06-29 2016-12-07 泰华智慧产业集团股份有限公司 A kind of industry item area method for drawing map and system thereof
CN108228741A (en) * 2016-12-15 2018-06-29 苏州宝时得电动工具有限公司 Ground drawing generating method, device and the automatic working system of automatic working system
CN107193901A (en) * 2017-05-11 2017-09-22 长威信息科技发展股份有限公司 A kind of resource visualizes the method and system of fast selecting
CN107369198A (en) * 2017-08-05 2017-11-21 中山大学 A kind of more broken line method for drafting for ARCGIS Web maps
CN108108489A (en) * 2018-01-12 2018-06-01 阿里巴巴集团控股有限公司 POI search methods and device based on geographical location

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
柳林等: "海洋地理信息系统分析与实践", 武汉大学出版社, pages: 24 - 26 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706306A (en) * 2019-09-24 2020-01-17 上海钧正网络科技有限公司 Method and device for drawing area in map application and computer equipment
CN112068079A (en) * 2020-08-28 2020-12-11 森思泰克河北科技有限公司 Defense area dividing method and device for security radar, terminal and storage medium

Similar Documents

Publication Publication Date Title
TWI746690B (en) Method, device and server for generating natural language question answer
US11698261B2 (en) Method, apparatus, computer device and storage medium for determining POI alias
JP6163607B2 (en) Method and apparatus for constructing event knowledge database
CN109564571A (en) Utilize the inquiry recommended method and system of search context
CN108052577A (en) A kind of generic text content mining method, apparatus, server and storage medium
WO2017143338A1 (en) User intent and context based search results
WO2017143337A1 (en) Intelligent agent and interface to provide enhanced search
WO2017143339A1 (en) Interactive search engine
TW201428237A (en) Location-to-landmark
CN104462056B (en) For the method and information handling systems of knouledge-based information to be presented
WO2019214453A1 (en) Content sharing system, method, labeling method, server and terminal device
WO2021232724A1 (en) Method for extracting geographic location point spatial relationship, method for training extraction model, and devices
CN103534696B (en) Domain detection in understanding for conversational language clicks on record using inquiry
CN109376761A (en) The method for digging and device of a kind of address mark and its longitude and latitude
CN109522420A (en) A kind of method and system obtaining learning demand
CN110444133A (en) A kind of method and apparatus of tourist attraction intelligent guide
CN108388650A (en) Need-based search processing method, device and smart machine
CN111814077B (en) Information point query method, device, equipment and medium
CN109637602A (en) Medical data storage and querying method, device, storage medium and electronic equipment
CN111737430B (en) Entity linking method, device, equipment and storage medium
US20090063447A1 (en) Updating retrievability aids of information sets with search terms and folksonomy tags
CN109389656A (en) The method and system of drawing area on the map of mobile terminal
CN111881377A (en) Method and device for processing location interest points
CN105229638B (en) The library manager of the automation of contributor as the collection to content
CN111832579A (en) Map interest point data processing method and device, electronic equipment and readable 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