CN110825281A - Method and device for selecting area on electronic map, electronic equipment and storage medium - Google Patents

Method and device for selecting area on electronic map, electronic equipment and storage medium Download PDF

Info

Publication number
CN110825281A
CN110825281A CN201910877911.5A CN201910877911A CN110825281A CN 110825281 A CN110825281 A CN 110825281A CN 201910877911 A CN201910877911 A CN 201910877911A CN 110825281 A CN110825281 A CN 110825281A
Authority
CN
China
Prior art keywords
target
pressing
radius
electronic map
area
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
CN201910877911.5A
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201910877911.5A priority Critical patent/CN110825281A/en
Publication of CN110825281A publication Critical patent/CN110825281A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Abstract

The application discloses a method and a device for selecting an area on an electronic map, electronic equipment and a storage medium, wherein when a page displayed currently by terminal equipment comprises the electronic map, touch operation on the electronic map is detected; if the detected touch operation is a pressing operation, obtaining pressing force; determining a target radius corresponding to the pressing degree at the current moment according to a preset relation between the pressing degree and the area radius; and finally, displaying the target area determined according to the pressing position coordinate and the target radius in the electronic map. By the method, the size of the target area can be adjusted by changing the degree of pressing force, and the adjustment is not performed according to the fixed radius option, so that the method has sufficient flexibility. In addition, the visible area of the electronic map is increased because a toolbar does not need to be additionally arranged on the map.

Description

Method and device for selecting area on electronic map, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic maps, and in particular, to a method and an apparatus for selecting an area on an electronic map, an electronic device, and a storage medium.
Background
In recent years, with the rapid development of internet technology, electronic maps are widely used in user life, and great convenience is brought to users. The user can search or select a place or an area which the user wants to view on the electronic map according to the self requirement, and can also plan a travel path and the like by using the electronic map.
Referring to fig. 1, in a method for viewing a specific area on an electronic map, a toolbar is provided on a page of the electronic map, and a plurality of radius options for a user to select are set in the toolbar to set a radius of the viewed area. The user may determine the size of the viewed area by selecting the radius option and adjust the size of the viewed area by toggling the radius option. And drawing a corresponding map area according to the radius selected by the user and presenting the map area to the user.
However, in the above method, the radius that the user can select is limited by the radius option provided by the toolbar, so that the flexibility in adjusting the size of the viewed area is poor, and the user's needs cannot be satisfied.
Disclosure of Invention
The application provides a method, a device, electronic equipment and a storage medium for selecting an area on an electronic map, which are used for solving the problems that the existing method is poor in flexibility and cannot meet more requirements of users.
In a first aspect, the present application provides a method of selecting an area on an electronic map, the method comprising:
when a currently displayed page of the terminal equipment comprises an electronic map, detecting touch operation on the electronic map;
if the detected touch operation is a pressing operation, acquiring the pressing force of the pressing operation;
determining a target radius corresponding to the pressing degree at the current moment according to a preset relation between the pressing degree and the area radius;
and displaying a target area determined according to the pressing position coordinate and the target radius in the electronic map.
Further, the method further comprises:
and when the pressing force changes, dynamically updating the displayed target area according to the changed target area.
Further, the method further comprises:
monitoring whether the pressing operation is changed into a preset operation;
and when the change of the pressing operation is monitored to be a preset operation, keeping the currently displayed target area in the electronic map unchanged, and stopping acquiring the pressing pressure.
Further, before the determining the target radius corresponding to the pressing force at the current time, the method further includes:
judging whether the pressing operation meets a preset condition or not;
and when the pressing operation is judged to meet the preset condition, executing the step of determining the target radius.
Further, when the pressing force changes, dynamically updating the displayed target area according to the changed target area, including:
determining a changed target radius according to the changed pressing force;
under the condition that the pressing degree does not exceed a preset upper limit, the target radius changes along with the change of the pressing degree according to the preset relation; when the pressing degree exceeds a preset upper limit, taking a preset maximum radius as a target radius; or when the pressing force degree exceeds a preset upper limit and the pressing operation continuously exists at the current pressing force degree, the target radius is increased at a preset speed until the pressing operation disappears;
and determining a changed target area according to the changed target radius, and dynamically updating the displayed target area.
Further, the displaying a target area determined according to the pressing position coordinates and the target radius in the electronic map includes:
acquiring target longitude and latitude information according to the pressing position coordinate and the target radius;
generating a target area map layer according to the target longitude and latitude information;
and replacing the current layer in the electronic map by using the target area layer.
Further, the generating a target area map layer according to the target longitude and latitude information includes:
determining a target scale according to the display size of the electronic map on a terminal equipment screen and the actual size of the target area;
and generating a target area layer according to the target scale and the target longitude and latitude information so as to enable the generated target area layer and the display size.
In a second aspect, the present application further provides an apparatus for selecting an area on an electronic map, the apparatus comprising:
the terminal equipment comprises a detection unit, a display unit and a display unit, wherein the detection unit is used for detecting touch operation on an electronic map when a currently displayed page of the terminal equipment comprises the electronic map;
an acquisition unit configured to acquire a pressing force of a pressing operation if the detected touch operation is the pressing operation;
the determining unit is used for determining a target radius corresponding to the pressing degree at the current moment according to the preset relation between the pressing degree and the area radius;
and the display unit is used for displaying a target area determined according to the pressing position coordinate and the target radius in the electronic map.
Further, the display unit is further configured to:
and when the pressing force changes, dynamically updating the displayed target area according to the changed target area.
Further, the apparatus further comprises:
the detection unit is also used for monitoring whether the pressing operation is changed into a preset operation;
the display unit is further used for keeping a currently displayed target area in the electronic map unchanged when the change of the pressing operation is monitored to be a preset operation;
the obtaining unit is further configured to stop obtaining the pressing force degree when the pressing operation change is monitored to be a predetermined operation.
Further, the apparatus further comprises:
the judging unit is used for judging whether the pressing operation meets a preset condition or not;
the determining unit is specifically configured to execute the step of determining the target radius when it is determined that the pressing operation satisfies a preset condition.
Further:
the determining unit is further used for determining a changed target radius according to the changed pressing force;
under the condition that the pressing degree does not exceed a preset upper limit, the target radius changes along with the change of the pressing degree according to the preset relation; when the pressing degree exceeds a preset upper limit, taking a preset maximum radius as a target radius; or when the pressing force degree exceeds a preset upper limit and the pressing operation continuously exists at the current pressing force degree, the target radius is increased at a preset speed until the pressing operation disappears;
the display unit is specifically configured to determine a changed target area according to the changed target radius, and dynamically update the displayed target area.
Further, the display unit includes:
the acquisition subunit is used for acquiring the longitude and latitude information of the target according to the coordinates of the pressing position and the radius of the target;
the generating subunit is used for generating a target area map layer according to the target longitude and latitude information;
and the replacing subunit is used for replacing the current map layer in the electronic map by using the target area map layer.
Further:
the generating subunit is specifically configured to determine a target scale according to a display size of the electronic map on a screen of a terminal device and an actual size of the target area;
and generating a target area layer according to the target scale and the target longitude and latitude information so as to enable the generated target area layer and the display size.
In a third aspect, the present application further provides an electronic device, including:
a memory for storing program instructions;
a processor for calling and executing the program instructions in the memory to implement the method of selecting an area on an electronic map of the first aspect.
In a fourth aspect, the present application also provides a storage medium storing a program, which when executed by at least one processor of an apparatus for selecting an area on an electronic map, the apparatus for selecting an area on an electronic map performs the method for selecting an area on an electronic map of the first aspect.
According to the technical scheme, the method, the device, the electronic equipment and the storage medium for selecting the area on the electronic map are provided, and when the current page displayed by the terminal equipment comprises the electronic map, the method detects the touch operation on the electronic map; if the detected touch operation is a pressing operation, acquiring the pressing pressure degree of the pressing operation; determining a target radius corresponding to the pressing degree at the current moment according to a preset relation between the pressing degree and the area radius; and finally, displaying the target area determined according to the pressing position coordinate and the target radius in the electronic map. By the method, the size of the target area can be adjusted by changing the degree of pressing force, and the adjustment is not performed according to the fixed radius option, so that the method has sufficient flexibility. In addition, the visible area of the electronic map is increased because a toolbar does not need to be additionally arranged on the map.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a prior art electronic map page;
FIG. 2a is a flow chart illustrating an exemplary method for selecting an area on an electronic map according to the present application;
FIG. 2b is a flowchart illustrating a method for selecting an area on an electronic map according to an exemplary embodiment of the present application;
FIG. 3a illustrates an exemplary page displayed by the terminal device;
FIG. 3b illustrates another exemplary page displayed by the terminal device;
FIG. 4a illustrates an exemplary page displayed by the terminal device;
FIG. 4b illustrates another exemplary page displayed by the terminal device;
FIG. 5a illustrates an exemplary page displayed by the terminal device;
FIG. 5b illustrates another exemplary page displayed by the terminal device;
FIG. 5c illustrates yet another exemplary page displayed by the terminal device;
FIG. 6 is a block diagram of an apparatus for selecting an area on an electronic map, as exemplary illustrated herein;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is an electronic map page provided in the prior art. Referring to fig. 1, a toolbar is provided on the electronic map page, the toolbar may include buttons similar to "road condition", "navigation", "taxi taking", and "radius", and a plurality of radius options for the user to select are set under the sub-menu corresponding to the "radius" button, so as to set the radius of the viewed area. In a scenario where a user selects an area on an electronic map for viewing, the user may determine the size of the viewed area by selecting a radius option, and adjust the size of the viewed area by switching the radius option. And drawing a corresponding map area according to the radius selected by the user and presenting the map area to the user. For example, when the user switches to the larger radius option, the circular area in the page becomes larger, and when the user switches to the smaller radius option, the circular area in the page becomes smaller.
However, in the above method, the radius that the user can select is limited by the radius option provided by the toolbar, so that the flexibility in adjusting the size of the viewed area is poor, and the user's needs cannot be satisfied. In addition, the user may need to perform too many steps to adjust the viewing area to the optimal size, including opening the toolbar, first selecting a radius option, switching the radius option, closing the toolbar until the optimal size is adjusted, and so on. In addition, in the method, the toolbar needs to float on the electronic map, which affects the integrity of the map and also affects the user experience.
In order to solve the above problems, the present application provides a method for selecting an area on an electronic map according to an embodiment, and the method has sufficient flexibility for adjusting the size of the area, and completely abandons the idea of setting a radius option toolbar on the map, so that the user operation can be simplified, the integrity of map display is ensured, and the user experience is more friendly.
Fig. 2a and 2b are flow charts illustrating a method for selecting an area on an electronic map according to an exemplary embodiment of the present disclosure. As shown in fig. 2a and 2b, the method may include:
step 201, when a currently displayed page of a terminal device includes an electronic map, detecting a touch operation on the electronic map.
In the embodiment of the present application, the terminal device may be a wireless terminal or a wired terminal, and may be, for example, a mobile phone, a computer, a tablet computer, a personal digital assistant, a mobile internet device, a wearable device, an e-book reader, and the like.
The terminal device has a touch screen on which one or more soft keys, menus and other user interface objects can be displayed. A user may interact with the device by contacting the touch screen location corresponding to the user interface object with which the user wishes to interact. The touch screen may then detect and respond to a contact, i.e. a touch operation, on the touch screen. Different types of touch operations may correspond to different types of gestures, such as sliding, dragging, pressing, and the like. By means of touch operations and/or gestures, certain functions provided by applications in the terminal device may be activated or deactivated.
Fig. 3a and 3b show two exemplary pages of a terminal. As shown in fig. 3a, the page is a page entered by a user after starting the electronic map APP, such as a Baidu map, a Gade map, and the like, and the page includes the electronic map. As shown in fig. 3b, the page is a page of a non-electronic map APP such as a browser, 58 city APP, etc., and an area 301 dedicated to displaying an electronic map is provided in the page, and the electronic map is displayed only in the area.
When the currently displayed page of the terminal device includes the electronic map, if the user wants to interact with the electronic map, the user needs to touch the touch screen position corresponding to the electronic map, and the touch screen needs to continuously detect the touch operation of the user on the touch screen position corresponding to the electronic map.
In this embodiment, different types of touch operations are used to activate different functions, and a press operation is used to activate a function for selecting an area on a map.
In step 202, if the detected touch operation is a pressing operation, a pressing force of the pressing operation is obtained.
When the touch screen detects touch operation on the electronic map, the operation type is judged, and if the operation type is pressing operation, the pressing force degree of the pressing operation is acquired. The pressing force degree can be acquired through a pressure detection device or a pressure acquisition device, and the pressure detection device or the pressure acquisition device can be a pressure sensor. When a finger of a user presses on the touch screen, the pressure sensor acquires pressing pressure data in real time.
In this embodiment, the degree of pressing may be represented by an actual value of the degree of pressing, or may be converted into a force degree coefficient, and the force degree coefficient may be used to represent the degree of pressing.
In addition, when the pressing operation is detected, in order to avoid a wrong operation, that is, to avoid a pressing operation not used for selecting an area on the map from being mistaken for a pressing operation used for selecting an area on the map, before the step 203 of specifying, it may be determined whether the detected pressing operation satisfies a preset condition.
As an embodiment, the preset condition may be that the pressing force of the pressing operation reaches a preset lower limit. That is, it is determined whether the pressing force degree of the pressing operation reaches a preset lower limit of the pressure value. The lower limit of the pressure value is a preset pressure threshold value which is used as the minimum pressure value required by selecting an area on the electronic map through pressing operation. The specific numerical value of the lower limit value of the pressure value is not limited in the embodiment of the application, and may be larger than the pressure value generated when the mobile terminal display screen performs the click operation, and when the user wants to select an area on the electronic map, the degree of the pressure needs to be increased appropriately to distinguish from other click operations.
As another embodiment, since the touch operation on the touch screen is usually instantaneous touch, the preset condition may be that the pressing duration of the pressing operation reaches a preset pressing duration to be distinguished from other touch operations of the user on the electronic map. The specific value of the preset pressing time is not limited in the embodiment of the present application, and may be 200ms, for example.
As another embodiment, the pressing operation needs to satisfy both the lower limit value of the pressure value and the preset pressing duration, that is, when the pressing force of the pressing operation exceeds the lower limit value of the preset pressure value and the pressing duration exceeds the preset pressing duration, it is determined that the pressing operation is an operation for selecting an area on the electronic map, and at this time, step 203 is executed.
Step 203, determining a target radius corresponding to the pressing strength at the current moment according to a preset relationship between the pressing strength and the area radius.
Regarding the preset relationship between the degree of pressing and the radius of the area:
in one embodiment, the pressing force does not reach the preset upper limit FOn the upper partThe pressing force is a function of the radius of the area, such as a direct ratio. For example, the relationship between the pressing force F and the region radius R is R ═ F (F/F)On the upper part)RMAXWherein R isMAXA preset maximum zone radius. When the pressing force exceeds (including reaches) a preset upper limit, the area radius will not change any more, i.e. R ═ RMAX
In another embodiment, the pressing force does not reach the preset upper limit FOn the upper partThe pressing force is a function of the radius of the area, such as a direct ratio. When the pressing force exceeds (including reaches) the preset upper limit and the pressing operation continues to exist, the area radius will increase at the preset speed until the pressing operation disappears.
Of course, the pressing force and the area radius may have other functional relationships, such as a quadratic function, so as to achieve that the area radius continuously increases as the pressing force increases until the pressing force reaches a preset upper limit, and the area radius increases to the maximum area radius or continues to increase at a preset speed.
In addition, as shown in the following table, the pressing force degree and the area radius may be associated with each other in intervals, for example, the pressing force degree is F1To F2When in range, the radius of the region is R1Degree of pressing at F2To F3Within the range ofWhen the radius of the region is R2And repeating the steps until the pressing force reaches the preset upper limit, and increasing the area radius to the maximum area radius or continuously increasing at the preset speed.
Degree of compression/F Radius of area/R
F1~F2 R1
F2~F3 R2
…… ……
Fn~Fn+1 Rn
And 204, displaying a target area determined according to the pressing position coordinates and the target radius in the electronic map.
When the touch screen detects touch operation on the screen, the touch screen detects two-dimensional coordinates corresponding to the touch point, and the pressing operation is the pressing position coordinates.
As an implementation manner, a circular area on the electronic map, that is, the target area may be determined by taking the coordinate of the pressing position as a center of a circle and taking the target radius determined according to the degree of pressing in step 203 as a radius. The position of the target area depends on the pressing position of the user on the electronic map, and the size depends on the pressing degree of the pressing operation of the user.
In the concrete implementation:
firstly, obtaining the longitude and latitude information of a target according to the coordinates of the pressing position and the radius of the target. The target latitude and longitude information is used for determining geographic information of the target area, and if the geographic coordinates are determined by the latitude and longitude data, the geographic information of the target area is a set of geographic coordinates determined according to all the latitude and longitude data. Wherein the standard geographic information having global common attributes includes, but is not limited to, a place name, global uniform coordinates, global GPS coordinates. In addition, standard geographic information with non-public attributes can be contained, such as geographic position marks attached to the electronic map APP.
And then, generating a target area map layer according to the target longitude and latitude information. In order to enable the generated target area layer to be adaptive to the display size of the electronic map on the screen, during specific implementation, a target scale is determined according to the display size of the electronic map on the screen of the terminal equipment and the actual size of the target area; and generating a target area layer according to the target scale and the target longitude and latitude information so as to enable the generated target area layer and the display size.
It should be noted that the case that the display size of the target area layer and the display size of the electronic map on the screen are not adapted includes: firstly, as shown in fig. 4a, the area occupied by the target area map layer on the electronic map is small, and the target area is the area that the user really wants to view, so that when the display range is small, the view is affected, and the display space is wasted. Secondly, as shown in fig. 4b, the target area layer exceeds the display size of the electronic map on the screen, which results in incomplete display of the target area layer.
And finally, replacing the current map layer in the electronic map by using the target area map layer. The electronic map is pre-established and maintained with a dictionary for storing data used for generating layers. When new longitude and latitude information is generated due to a pressing operation of a user, old layer data is removed from the dictionary, and new layer data obtained according to the longitude and latitude information is stored in the dictionary so as to be used for creating a new layer. In addition, since only one area layer may exist at each time point on the electronic map, when the electronic map needs to display a new area layer due to a pressing operation of a user, the old area layer on the electronic map needs to be removed, and then the new area layer, that is, the target area layer needs to be added.
It can be seen from the foregoing embodiments that the present application provides a method for selecting an area on an electronic map, where the method detects a touch operation on the electronic map when a page currently displayed by a terminal device includes the electronic map; if the detected touch operation is a pressing operation, acquiring the pressing pressure degree of the pressing operation; determining a target radius corresponding to the pressing degree at the current moment according to a preset relation between the pressing degree and the area radius; and finally, displaying the target area determined according to the pressing position coordinate and the target radius in the electronic map. By the method, the size of the target area can be adjusted by changing the degree of pressing force, and the adjustment is not performed according to the fixed radius option, so that the method has sufficient flexibility. In addition, the visible area of the electronic map is increased because a toolbar does not need to be additionally arranged on the map.
On the basis of the above embodiment, the method of the present application further includes:
and step 205, when the pressing force degree changes, dynamically updating the displayed target area according to the changed target area.
As can be seen from step 203, as the degree of pressing increases, the target radius determined from the degree of pressing increases, and the target area increases. The displayed target area is dynamically updated according to the changed target area, via step 205. Specifically, when the pressing force changes, the target radius, that is, the changed target radius is newly determined based on the changed pressing force, a new target area is determined based on the pressing position coordinates and the new target radius, and the new target area is displayed on the electronic map. The above process is executed once when the detected pressing force changes, so as to achieve the effect of dynamically updating the target area displayed in the electronic map.
And the target radius changes along with the pressing force according to the preset relation between the area radius and the pressing force. Under the condition that the degree of pressing does not exceed a preset upper limit, the target radius changes according to the preset relation along with the change of the degree of pressing; when the pressing degree exceeds a preset upper limit, taking a preset maximum radius as a target radius; or, when the pressing force exceeds a preset upper limit and the pressing operation continues to exist at the current pressing force, the target radius is increased at a preset speed until the pressing operation disappears.
Fig. 5a, 5b and 5c show a process in which the target area displayed in the electronic map gradually increases as the degree of pressing force increases.
Of course, when the acquired pressing force becomes smaller, the target area also becomes smaller accordingly. On the electronic map, the implementation process of dynamically decreasing the target area and the implementation process of dynamically increasing the target area are based on the same concept, and reference may be made to the above embodiments, which are not described herein again.
In the existing method described in the background section of the present application, a user needs to select one of the radius options in the toolbar first, and after determining, the size of the corresponding area can be visually seen on the electronic map. And so on until the optimal size is found. It can be seen that, in the existing method, not only are more user operations involved, but also the user cannot see the corresponding area size while selecting the radius, but also can see the area size after a certain time delay, which results in low adjustment efficiency and poor user experience.
Compared with the prior art, according to the method, the size change process of the target area on the electronic map is the visual reflection of the size change process of the pressing force degree, so that the user can establish the relation between the pressing force degree and the target area in the mind and sea carelessly, and further know how to adjust the pressing force degree of the finger on the screen, so that the target area can be adjusted to the optimal size. Therefore, the method can be realized through simple interactive operation, the user operation is greatly simplified, and the method has higher adjusting efficiency and friendly user experience.
In addition, the map display device has sufficient flexibility because the adjustment is not performed according to a fixed radius option, and the visible area of the map can be increased because a toolbar does not need to be added on the map.
On the basis of the above embodiment, the method of the present application further includes:
step 206, monitoring whether the pressing operation is changed into a predetermined operation.
And step 207, when the change of the pressing operation is monitored to be a preset operation, keeping the currently displayed target area in the electronic map unchanged, and stopping obtaining the pressing force.
The change of the pressing operation to the predetermined operation means that the predetermined operation and the pressing operation are seamlessly continued. The predetermined operation may be understood as an operation for closing a flow of selecting an area on the electronic map, and may be, for example, a sliding operation upward.
In one scenario, after the user finds the optimal size of the area by adjusting the pressing force, if the pressing operation is cancelled immediately, the pressing force obtained by the pressure detection device is reduced to 0 instantly because the pressure detection device does not stop working at this time, and the target area with the optimal size is reduced instantly because the process of selecting the area provided by the present application is continued, so that the user cannot view the target area.
Therefore, in order to avoid such a phenomenon, after finding a target area with an optimal size, a user modifies the pressing operation into a predetermined operation, so that the predetermined operation and the pressing operation are seamlessly connected, when the predetermined operation is detected by the touch screen, the pressure detection device can be closed to stop obtaining the pressing force, and further, the flow of selecting an area on the electronic map can be closed, and meanwhile, the currently displayed target area in the electronic map is kept unchanged, and the currently displayed target area is the area which the user wants to view.
As can be seen from the foregoing embodiments, the present application provides a method for selecting an area on an electronic map, where in the method, when a page currently displayed by a terminal device includes the electronic map, a touch operation on the electronic map is detected; if the detected touch operation is a pressing operation, acquiring the pressing pressure degree of the pressing operation; determining a target radius corresponding to the pressing degree at the current moment according to a preset relation between the pressing degree and the area radius; and finally, displaying a target area determined according to the pressing position coordinate and the target radius in the electronic map. Through the method, the size of the target area can be adjusted by changing the pressing degree, and the adjustment is not carried out according to a fixed radius option, so that the method has sufficient flexibility. In addition, the method can be realized through simple interactive operation, and a toolbar does not need to be additionally arranged on the map, so that the visual area of the electronic map can be increased, and meanwhile, the user operation is greatly simplified, and the user experience is more friendly.
According to the method for selecting the area on the electronic map, the embodiment of the application also provides a device for selecting the area on the electronic map. Fig. 6 is a block diagram of an apparatus for selecting an area on an electronic map according to an exemplary embodiment of the present application, and as shown in fig. 6, the apparatus may include:
the detection unit 601 is configured to detect a touch operation on an electronic map when a currently displayed page of the terminal device includes the electronic map; an obtaining unit 602, configured to obtain a pressing force of a pressing operation if the detected touch operation is the pressing operation; a determining unit 603, configured to determine, according to a preset relationship between the pressing strength and the area radius, a target radius corresponding to the pressing strength at the current time; a display unit 604 for displaying a target area determined according to the pressing position coordinates and the target radius in the electronic map.
In one embodiment, the display unit 604 is further configured to: and when the pressing force changes, dynamically updating the displayed target area according to the changed target area.
In one embodiment, the detecting unit 601 is further configured to monitor whether the pressing operation changes to a predetermined operation; the display unit 604 is further configured to, when it is monitored that the pressing operation changes into a predetermined operation, keep a currently displayed target area in the electronic map unchanged; the obtaining unit 602 is further configured to stop obtaining the pressing force level when it is monitored that the pressing operation changes to a predetermined operation.
In one embodiment, the apparatus further comprises:
a judging unit 605 configured to judge whether the pressing operation satisfies a preset condition; the determining unit 603 is specifically configured to, when it is determined that the pressing operation satisfies a preset condition, perform a step of determining a target radius.
In one embodiment, the determining unit is further configured to determine a changed target radius according to the changed pressing force; under the condition that the pressing degree does not exceed a preset upper limit, the target radius changes along with the change of the pressing degree according to the preset relation; when the pressing degree exceeds a preset upper limit, taking a preset maximum radius as a target radius; or when the pressing force degree exceeds a preset upper limit and the pressing operation continuously exists at the current pressing force degree, the target radius is increased at a preset speed until the pressing operation disappears; the display unit is specifically configured to determine a changed target area according to the changed target radius, and dynamically update the displayed target area.
In one embodiment, the display unit 604 includes: the acquisition subunit is used for acquiring the longitude and latitude information of the target according to the coordinates of the pressing position and the radius of the target; the generating subunit is used for generating a target area map layer according to the target longitude and latitude information; and the replacing subunit is used for replacing the current map layer in the electronic map by using the target area map layer.
In an embodiment, the generating subunit is specifically configured to determine a target scale according to a display size of the electronic map on a screen of a terminal device and an actual size of the target area; and generating a target area layer according to the target scale and the target longitude and latitude information so as to enable the generated target area layer and the display size.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 7, the electronic device may include: a memory 701 for storing program instructions; a processor 702 is configured to call and execute the program instructions in the memory to implement the above-mentioned method for selecting an area on an electronic map.
In this embodiment, the processor and the memory may be connected by a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
In a specific implementation, the present invention further provides a computer storage medium, where the computer storage medium may store a computer program, and when the computer program is executed by at least one processor of an apparatus for selecting an area on an electronic map, the apparatus for selecting an area on an electronic map performs some or all of the steps in the embodiments of the method for selecting an area on an electronic map. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the description in the method embodiment.
The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention.

Claims (16)

1. A method of selecting an area on an electronic map, the method comprising:
when a currently displayed page of the terminal equipment comprises an electronic map, detecting touch operation on the electronic map;
if the detected touch operation is a pressing operation, acquiring the pressing force of the pressing operation;
determining a target radius corresponding to the pressing degree at the current moment according to a preset relation between the pressing degree and the area radius;
and displaying a target area determined according to the pressing position coordinate and the target radius in the electronic map.
2. The method of claim 1, further comprising:
and when the pressing force changes, dynamically updating the displayed target area according to the changed target area.
3. The method of claim 1, further comprising:
monitoring whether the pressing operation is changed into a preset operation;
and when the change of the pressing operation is monitored to be a preset operation, keeping the currently displayed target area in the electronic map unchanged, and stopping acquiring the pressing pressure.
4. The method of claim 1, wherein before the determining the target radius corresponding to the pressing force at the current time, the method further comprises:
judging whether the pressing operation meets a preset condition or not;
and when the pressing operation is judged to meet the preset condition, executing the step of determining the target radius.
5. The method according to claim 1, wherein dynamically updating the displayed target area according to the changed target area when the pressing force changes comprises:
determining a changed target radius according to the changed pressing force;
under the condition that the pressing degree does not exceed a preset upper limit, the target radius changes along with the change of the pressing degree according to the preset relation; when the pressing degree exceeds a preset upper limit, taking a preset maximum radius as a target radius; or when the pressing force degree exceeds a preset upper limit and the pressing operation continuously exists at the current pressing force degree, the target radius is increased at a preset speed until the pressing operation disappears;
and determining a changed target area according to the changed target radius, and dynamically updating the displayed target area.
6. The method of claim 1, wherein displaying a target area in the electronic map determined from the compression location coordinates and the target radius comprises:
acquiring target longitude and latitude information according to the pressing position coordinate and the target radius;
generating a target area map layer according to the target longitude and latitude information;
and replacing the current layer in the electronic map by using the target area layer.
7. The method of claim 6, wherein the generating the target area map layer according to the target longitude and latitude information comprises:
determining a target scale according to the display size of the electronic map on a terminal equipment screen and the actual size of the target area;
and generating a target area layer according to the target scale and the target longitude and latitude information so as to enable the generated target area layer and the display size.
8. An apparatus for selecting an area on an electronic map, the apparatus comprising:
the terminal equipment comprises a detection unit, a display unit and a display unit, wherein the detection unit is used for detecting touch operation on an electronic map when a currently displayed page of the terminal equipment comprises the electronic map;
an acquisition unit configured to acquire a pressing force of a pressing operation if the detected touch operation is the pressing operation;
the determining unit is used for determining a target radius corresponding to the pressing degree at the current moment according to the preset relation between the pressing degree and the area radius;
and the display unit is used for displaying a target area determined according to the pressing position coordinate and the target radius in the electronic map.
9. The apparatus of claim 8, wherein the display unit is further configured to:
and when the pressing force changes, dynamically updating the displayed target area according to the changed target area.
10. The apparatus of claim 8, wherein:
the detection unit is also used for monitoring whether the pressing operation is changed into a preset operation;
the display unit is further used for keeping a currently displayed target area in the electronic map unchanged when the change of the pressing operation is monitored to be a preset operation;
the obtaining unit is further configured to stop obtaining the pressing force degree when the pressing operation change is monitored to be a predetermined operation.
11. The apparatus of claim 8, further comprising:
the judging unit is used for judging whether the pressing operation meets a preset condition or not;
the determining unit is specifically configured to execute the step of determining the target radius when it is determined that the pressing operation satisfies a preset condition.
12. The apparatus of claim 8, wherein:
the determining unit is further used for determining a changed target radius according to the changed pressing force;
under the condition that the pressing degree does not exceed a preset upper limit, the target radius changes along with the change of the pressing degree according to the preset relation; when the pressing degree exceeds a preset upper limit, taking a preset maximum radius as a target radius; or when the pressing force degree exceeds a preset upper limit and the pressing operation continuously exists at the current pressing force degree, the target radius is increased at a preset speed until the pressing operation disappears;
the display unit is specifically configured to determine a changed target area according to the changed target radius, and dynamically update the displayed target area.
13. The apparatus of claim 8, wherein the display unit comprises:
the acquisition subunit is used for acquiring the longitude and latitude information of the target according to the coordinates of the pressing position and the radius of the target;
the generating subunit is used for generating a target area map layer according to the target longitude and latitude information;
and the replacing subunit is used for replacing the current map layer in the electronic map by using the target area map layer.
14. The apparatus of claim 13, wherein:
the generating subunit is specifically configured to determine a target scale according to a display size of the electronic map on a screen of a terminal device and an actual size of the target area;
and generating a target area layer according to the target scale and the target longitude and latitude information so as to enable the generated target area layer and the display size.
15. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in the memory to implement the method of selecting an area on an electronic map of any of claims 1-7.
16. A storage medium having stored therein a computer program which, when executed by at least one processor of an apparatus for selecting an area on an electronic map, causes the apparatus for selecting an area on an electronic map to perform the method for selecting an area on an electronic map of any one of claims 1-7.
CN201910877911.5A 2019-09-17 2019-09-17 Method and device for selecting area on electronic map, electronic equipment and storage medium Pending CN110825281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910877911.5A CN110825281A (en) 2019-09-17 2019-09-17 Method and device for selecting area on electronic map, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910877911.5A CN110825281A (en) 2019-09-17 2019-09-17 Method and device for selecting area on electronic map, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110825281A true CN110825281A (en) 2020-02-21

Family

ID=69548074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910877911.5A Pending CN110825281A (en) 2019-09-17 2019-09-17 Method and device for selecting area on electronic map, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110825281A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338529A (en) * 2020-02-27 2020-06-26 维沃移动通信有限公司 Icon display method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006171305A (en) * 2004-12-15 2006-06-29 Nissan Motor Co Ltd Navigation device, and information retrieval method using speech recognition for the navigation device
JP2007040890A (en) * 2005-08-04 2007-02-15 Matsushita Electric Ind Co Ltd Navigation system
CN103514169A (en) * 2012-06-18 2014-01-15 高德软件有限公司 Method and device for searching for interest point and mobile terminal
JP2014044561A (en) * 2012-08-27 2014-03-13 Kddi Corp User interface device, method, and program capable of generating rendered image depending upon pressing force
CN106202363A (en) * 2016-07-06 2016-12-07 成都高合盛科技有限责任公司 Making friends method based on electronic chart and device
US20190164319A1 (en) * 2017-11-27 2019-05-30 Uber Technologies, Inc. Graphical user interface map feature for a network service

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006171305A (en) * 2004-12-15 2006-06-29 Nissan Motor Co Ltd Navigation device, and information retrieval method using speech recognition for the navigation device
JP2007040890A (en) * 2005-08-04 2007-02-15 Matsushita Electric Ind Co Ltd Navigation system
CN103514169A (en) * 2012-06-18 2014-01-15 高德软件有限公司 Method and device for searching for interest point and mobile terminal
JP2014044561A (en) * 2012-08-27 2014-03-13 Kddi Corp User interface device, method, and program capable of generating rendered image depending upon pressing force
CN106202363A (en) * 2016-07-06 2016-12-07 成都高合盛科技有限责任公司 Making friends method based on electronic chart and device
US20190164319A1 (en) * 2017-11-27 2019-05-30 Uber Technologies, Inc. Graphical user interface map feature for a network service

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338529A (en) * 2020-02-27 2020-06-26 维沃移动通信有限公司 Icon display method and electronic equipment
CN111338529B (en) * 2020-02-27 2021-08-17 维沃移动通信有限公司 Icon display method and electronic equipment

Similar Documents

Publication Publication Date Title
AU2021200254B2 (en) Method for displaying current geographical location on emergency call screen and terminal
US10866730B2 (en) Touch screen-based control method and apparatus
US10397649B2 (en) Method of zooming video images and mobile display terminal
US11016609B2 (en) Distance-time based hit-testing for displayed target graphical elements
AU2016201303B2 (en) Device, method, and graphical user interface for transitioning between touch input to display output relationships
KR101233534B1 (en) Graphical user interface for presenting location information
EP3062204A1 (en) Panel displaying method, portable electronic device and recording medium using the method
CN107529142B (en) Service pushing method and mobile terminal
JP5343505B2 (en) Icon display device, icon display method and program
US20140359528A1 (en) Method and apparatus of controlling an interface based on touch operations
US20140109004A1 (en) Flexible selection tool for mobile devices
CN108469937B (en) Information processing method and electronic equipment
US20110122159A1 (en) Methods, devices, and computer program products for providing multi-region touch scrolling
WO2009001179A1 (en) Method, apparatus and computer program product for facilitating data entry via a touchscreen
WO2018103423A1 (en) Method and apparatus for taking screenshot
US10848544B2 (en) Communicating mapping application data between electronic devices
WO2015148583A1 (en) Building user trust in profile creation and recommendations based on managed interaction with user
CN112445410B (en) Touch event identification method and device and computer readable storage medium
US20150178323A1 (en) User interface device, search method, and program
CN111198640A (en) Interactive interface display method and device
CN110825281A (en) Method and device for selecting area on electronic map, electronic equipment and storage medium
US20110316887A1 (en) Electronic device with a touch screen and touch operation control method utilized thereby
CN109683739A (en) The method and apparatus for adjusting operation interface, storage medium and electronic equipment
CN110800278B (en) Call processing method and related product
CN111799858B (en) Protection circuit, detection method and device thereof, electronic device and 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