[go: up one dir, main page]

CN116013144B - A method, device and storage medium for displaying an electronic map - Google Patents

A method, device and storage medium for displaying an electronic map Download PDF

Info

Publication number
CN116013144B
CN116013144B CN202211675127.4A CN202211675127A CN116013144B CN 116013144 B CN116013144 B CN 116013144B CN 202211675127 A CN202211675127 A CN 202211675127A CN 116013144 B CN116013144 B CN 116013144B
Authority
CN
China
Prior art keywords
location
area
electronic map
displayed
place
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.)
Active
Application number
CN202211675127.4A
Other languages
Chinese (zh)
Other versions
CN116013144A (en
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.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology 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 Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN202211675127.4A priority Critical patent/CN116013144B/en
Publication of CN116013144A publication Critical patent/CN116013144A/en
Application granted granted Critical
Publication of CN116013144B publication Critical patent/CN116013144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Instructional Devices (AREA)
  • Navigation (AREA)

Abstract

本申请公开一种电子地图的显示方法、装置以及存储介质,涉及电子地图技术领域,用于在电子地图中展示出地点与区域之间的位置关系。该方法包括:接收用户指令,用户指令指示在电子地图显示窗口中展示第一地点与目标区域的位置关系;响应于用户指令,根据目标区域和第一地点的地理位置信息,在电子地图显示窗口中显示第一地点和目标区域的至少一部分边界;目标区域中距离第一地点最近的第二地点位于至少一部分边界上。

The present application discloses a method, device and storage medium for displaying an electronic map, which relates to the field of electronic map technology and is used to display the positional relationship between a location and an area in an electronic map. The method includes: receiving a user instruction, the user instruction instructing to display the positional relationship between a first location and a target area in an electronic map display window; in response to the user instruction, displaying at least a portion of the boundary between the first location and the target area in the electronic map display window according to the geographical location information of the target area and the first location; the second location in the target area that is closest to the first location is located on at least a portion of the boundary.

Description

Electronic map display method, device and storage medium
Technical Field
The present application relates to the field of electronic map technologies, and in particular, to a method and apparatus for displaying an electronic map, and a storage medium.
Background
An Electronic map (Electronic map) is a visual map displayed on an Electronic screen by a certain hardware or software based on a map database by using computer technology. The electronic map is a main mode of expressing geographic data in a GIS (Geographic Information System ), and is widely applied to the fields of government planning, economic trade, tour guide, satellite navigation and the like along with the rapid development of geographic information technology.
In the electronic map, the user can check the current position of the user, various places and various positions, and can check the travel route. For example, the user may input an origin and a destination in the electronic map, and thus a plurality of routes between the origin and the destination are displayed in the electronic map, and the user may view a plurality of travel modes (bus, subway, bicycle, etc.) of each route, a length required for each travel mode, a place where each route passes, and the like.
However, the user can only view the planned path between the places in the current electronic map, and cannot meet other use requirements of the user, and the use experience of the user is not high. Therefore, how to show the positional relationship between the location and the area in the electronic map is a problem to be solved.
Disclosure of Invention
The application provides a display method, a display device and a storage medium of an electronic map, which are used for displaying the position relation between places and areas in the electronic map.
In order to achieve the technical purpose, the application adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for displaying an electronic map, where the method includes:
Receiving a user instruction, wherein the user instruction indicates that the position relation between the first place and the target area is displayed in the electronic map display window;
And responding to the user instruction, displaying the first place and at least a part of the boundary of the target area in the electronic map display window according to the geographic position information of the target area and the first place, wherein a second place closest to the first place in the target area is positioned on at least a part of the boundary.
The technical scheme provided by the application has the advantages that at least a part of boundaries of the first place and the target area containing the second place are displayed in the electronic map display window according to the geographic position information of the second place closest to the first place in the first place and the target area, so that a user can clearly and intuitively know the position relation between the first place and the target area in the electronic map display window, such as the degree that the first place is in the target area and goes deep into the target area, or the degree that the first place is outside the target area and is far away from the target area, and the like. The planned path between the first place and the target area is not displayed in the electronic map, and when a user only wants to view the position relationship between the first place and the target area, the user does not need to manually delete the path, so that the use experience is better.
In one possible implementation, displaying the first location and at least a portion of the boundary of the target area in the electronic map display window according to the geographic position information of the target area and the first location includes determining a second location closest to the first location on the boundary of the target area according to the geographic position information of the target area and the first location, determining a to-be-displayed area including the first location and at least a portion of the boundary according to the geographic position information of the first location and the second location, and displaying the to-be-displayed area in the electronic map display window. In this way, it is ensured that at least a part of the boundary between the first location and the target area can be displayed in the electronic map display window, so that the user can learn the positional relationship between the first location and the target area.
In one possible implementation, determining the region to be displayed including the first location and at least a portion of the boundary according to the geographic position information of the first location and the second location includes determining a candidate region according to the geographic position information of the first location and the second location, the first location and the second location being located at the boundary of the candidate region, and expanding the candidate region to obtain the region to be displayed, wherein the candidate region is located in the region to be displayed and the boundary of the candidate region is not coincident with the boundary of the region to be displayed. Therefore, the electronic equipment can display at least a part of boundaries of the first place and the target area containing the second place without shielding, so that a user can clearly know the position relationship between the first place and the target area, and the user experience is improved.
In one possible implementation, the geographic location information comprises a longitude and a latitude, and determining the candidate area according to the geographic location information of the first place and the second place when the longitude of the first place is different from the longitude of the second place and the latitude of the first place is different from the latitude of the second place comprises determining the rectangular area by taking the first place and the second place as diagonal points of the rectangular area and taking the rectangular area as the candidate area. Therefore, for most electronic equipment, the shape of the electronic map window which can be displayed is rectangular, so that the candidate area of the rectangle is determined according to the first place and the second place, a better display effect can be presented, and the use experience of a user is further improved.
In one possible implementation, determining a region to be displayed including a first place and at least a part of boundary according to geographic position information of the first place and a second place includes determining a real distance between the first place and the second place according to geographic position information of the first place and the second place, determining a target zoom level from a plurality of zoom levels preset in an electronic map display window according to the real distance between the first place and the second place, characterizing a proportional relation between a map distance between two points in the electronic map display window and the real distance between the two points, determining a region to be displayed according to the size of the target zoom level and the electronic map display window by taking a midpoint of a connecting line of the first place and the second place as a center point of the region to be displayed, wherein the shape of the region to be displayed is matched with that of the electronic map display window, and the area of the region to be displayed is equal to the area of the electronic map display window after the electronic map display window is zoomed according to the target zoom level. In this way, the electronic device calculates the real distance between the first place and the second place according to the geographical position information of the second place closest to the first place in the first place and the target area, further determines a target zoom level in a plurality of preset zoom levels, takes the midpoint of the connecting line of the first place and the second place as the center point of the area to be displayed, and determines the area to be displayed according to the target zoom level. In this way, at least a part of the boundary of the first location and the target area including the second location may be completely displayed in the electronic map display window, so that the user can clearly perceive the positional relationship of the first location and the target area.
In one possible implementation, in the case that the first place is located on at least one part of the boundary, displaying the first place and at least one part of the boundary of the target area in the electronic map display window according to the geographic position information of the target area and the first place includes determining the area to be displayed with the first place as a center point of the area to be displayed, wherein the shape of the area to be displayed is matched with that of the electronic map display window, and displaying the area to be displayed in the electronic map display window. In this way, when the first place is used as the center point of the area to be displayed, the first place can be displayed, the target area and the boundary of the target area can be displayed, and a part of the content outside the target area can be displayed, so that the user can clearly and intuitively know the position relationship between the first place and the target area.
In a second aspect, the present application provides a display apparatus for an electronic map. The display device of the electronic map comprises various modules for executing the method according to the first aspect or any one of the possible design manners of the first aspect.
In a third aspect, the present application provides a display device for an electronic map, comprising one or more processors and one or more memories, wherein the one or more memories are configured to store computer program code, the computer program code comprising computer instructions, which, when executed by the one or more processors, perform any of the methods for displaying an electronic map provided in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium storing computer-executable instructions that, when executed on a computer, cause the computer to perform any one of the methods of displaying an electronic map provided in the first aspect.
In a fifth aspect, the present application provides a computer program product comprising computer instructions which, when run on a display device of an electronic map, cause the display device of the electronic map to perform the method of displaying an electronic map according to the first aspect and any one of its possible designs.
The detailed descriptions of the second aspect, the fifth aspect and the various implementations thereof in the present application may refer to the detailed descriptions of the first aspect and the various implementations thereof, and the beneficial effects of the second aspect, the fifth aspect and the various implementations thereof may refer to the beneficial effect analysis of the first aspect and the various implementations thereof, which are not repeated herein.
These and other aspects of the application will be more readily apparent from the following description.
Drawings
Fig. 1 is a schematic diagram of a related art electronic map display scene provided in an embodiment of the present application;
Fig. 2 is a schematic diagram of a second related art electronic map display scene according to an embodiment of the present application;
Fig. 3 is a schematic diagram of a related art electronic map display scene III according to an embodiment of the present application;
fig. 4 is a schematic diagram of a related art electronic map display scene provided by an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic map display scene of the related art according to an embodiment of the present application;
fig. 6 is a schematic diagram of a display scene of an electronic map according to a related art according to an embodiment of the present application;
fig. 7 is a schematic diagram seventh of an electronic map display scene of the related art according to an embodiment of the present application;
Fig. 8 is a schematic structural diagram of an electronic map display system to which the display method of an electronic map according to the embodiment of the present application is applicable;
FIG. 9 is a schematic diagram of a computing device according to an embodiment of the present application;
fig. 10 is a flowchart of a method for displaying an electronic map according to an embodiment of the present application;
fig. 11 is a schematic diagram of an application scenario of a display method of an electronic map according to an embodiment of the present application;
Fig. 12 is a second application scenario schematic diagram of a display method of an electronic map according to an embodiment of the present application;
Fig. 13 is a third application scenario schematic diagram of a display method of an electronic map according to an embodiment of the present application;
fig. 14 is a schematic diagram of an application scenario of a display method of an electronic map according to an embodiment of the present application;
fig. 15 is a schematic diagram of an application scenario of a display method of an electronic map according to an embodiment of the present application;
fig. 16 is a schematic view of an application scenario six of a display method of an electronic map according to an embodiment of the present application;
fig. 17 is a schematic diagram seventh of an application scenario of a display method of an electronic map according to an embodiment of the present application;
Fig. 18 is an application scenario diagram eighth of a display method of an electronic map according to an embodiment of the present application;
Fig. 19 is a second flowchart of a method for displaying an electronic map according to an embodiment of the present application;
Fig. 20 is a schematic diagram of an application scenario nine of a display method of an electronic map according to an embodiment of the present application;
fig. 21 is a schematic view of an application scenario of a display method of an electronic map according to an embodiment of the present application;
fig. 22 is an eleventh application scenario diagram of a display method of an electronic map according to an embodiment of the present application;
Fig. 23 is a schematic diagram showing twelve application scenarios of a display method of an electronic map according to an embodiment of the present application;
fig. 24 is a thirteenth application scenario diagram of a display method of an electronic map according to an embodiment of the present application;
fig. 25 is a fourteen application scenario schematic diagrams of a display method of an electronic map according to an embodiment of the present application;
Fig. 26 is a schematic diagram fifteen application scenarios of a display method of an electronic map according to an embodiment of the present application;
Fig. 27 is a schematic structural diagram of a display device of an electronic map according to an embodiment of the present application;
Fig. 28 is a schematic structural diagram of a display device of another electronic map according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion. The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
For ease of understanding, the basic concepts of some terms or techniques involved in embodiments of the present application are first briefly described and illustrated.
An Electronic map (Electronic map), i.e., a digital map, is a map stored and referred to digitally using computer technology. The method for storing information in electronic map generally uses vector image storage, and the map scale can be enlarged, reduced or rotated without affecting the display effect.
The electronic map display window refers to an area for displaying an electronic map in a display screen of the electronic device.
Places, i.e. locations, such as addresses, entertainment venues, location locations, etc.
Map distance refers to the length of a line segment on an electronic map. For example, on an electronic map, the length of the line segment AB is measured to be 10cm, and the map distance of the line segment AB is 10cm.
The real distance refers to the actual distance corresponding to the line segment on the electronic map in the real space. For example, on an electronic map with a scale of 3000:1, the length of the line segment AB is 10cm, and the real distance of the line segment AB in the real space is 300m.
And the zoom level is used for representing the proportional relation between the map distance between two points in the electronic map display window and the real distance between the two points. For example, the zoom level may be a scale, where when the scale of an electronic map is 3000:1, the scale of the electronic map representing the scale of the electronic map is 1:3000, where the scale represents the ratio of the map distance between two points in the electronic map display window to the real distance between the two points.
The foregoing is a description of some concepts related to the embodiments of the present application, and is not repeated herein.
At present, a user can search various places and various positions in an electronic map, and can search travel routes through the map, for example, the user can input an origin and a destination in the electronic map, and can check travel modes (such as buses, self-driving, electric vehicles, bicycles, walking and the like), route places, required time and the like between the origin and the destination.
However, the existing electronic map cannot meet the requirement of a user to view the positional relationship between the target location and the target area. Specifically, the electronic map on the electronic device can only plan the route from the target location to the target area by using the route planning instruction input by the user, that is, the instruction indicating the route from the target location to the target area, and when the user searches the route from the target location to the target area by using the electronic map on the electronic device, the electronic device often determines a recommended location in the target area, plans the route between the target location and the recommended location, and displays the route in the electronic map display window. The user cannot intuitively see the position relationship between the target site and the target area through the content displayed in the electronic map display window, wherein the position relationship comprises the degree that the target site penetrates into the target area when the target site is in the target area and the degree that the target site is far away from the target area when the target site is out of the target area.
Taking the current positioning point of the user as a target place, namely an originating place as an example, as shown in fig. 1, when the originating place is outside a target area a and is far away from the target area a, the target area a is displayed in the form of one point in the electronic map display window. It can be seen that, since the electronic map display window does not show the boundary of the target area a, the user cannot learn the positional relationship between the origination point and the target area a, that is, the user cannot learn the degree to which the origination point is far from the target area a.
Continuing to take the current location point of the user as the target location, that is, the originating location point, as shown in fig. 2, when the originating location point is outside the target area a and is closer to the target area a, the planned route between the originating location point and a recommended location point B in the target area a is displayed in the electronic map display window. In this case, although a part of the boundary of the target area a is displayed in the electronic map display window, the user cannot directly feel the degree to which the originating place is far away from the target area a, and the planned route cannot be deleted, so that the use experience of the user is affected.
Or as shown in fig. 3, in the case where the origination point is inside the target area a, a planned route between the origination point and one of the recommended points B inside the target area a is displayed in the electronic map display window. The method is essentially also the route planning between points, and when a user only wants to view the position relation between a target place and a target area without needing the route planned by the electronic map, the route planned by the method cannot be deleted, so that the use experience of the user is affected. Also, in this case, the electronic map display window may not display the boundary of the target area a, and the user cannot know the extent to which the origination point goes deep into the target area a.
In some functions of the electronic map, as shown in fig. 4, the electronic map may determine whether a target location is within a target area and present the result to a user. But this way only shows whether the target site is within the area and not to what extent the target site is far from or deep into the area.
As an example, as shown in fig. 5, when a certain ship is positioned in the ship positioning system, only a specific position of the ship can be positioned, and the positional relationship between the ship and the continent cannot be exhibited.
As another example, in the electronic map display window, only a part of the area around the target location is displayed, and no matter whether the target location is within the target area or outside the target area, the situation as shown in fig. 6 and 7 may occur, that is, the boundary of the target area is not displayed in the electronic map display window, that is, the user cannot learn the positional relationship between the target location and the target area.
Therefore, how to show the positional relationship between the target location and the target area in the electronic map display window is a problem to be solved.
In view of the above, an embodiment of the present application provides a display method for an electronic map, where the electronic map may respond to a user instruction input by a user to indicate a position relationship between a first location and a target area in an electronic map display window, and after receiving the user instruction indicating the position relationship between the first location and the target area in the electronic map display window, display at least a portion of boundaries between the first location and the target area in the electronic map display window according to geographic position information of the target area and the first location, where a second location closest to the first location in the target area is located on at least a portion of the boundaries. Thus, the user can see at least one part of the boundary between the first place and the target area in the electronic map display window, and intuitively feel the position relationship between the first place and the target area.
The electronic map display method provided by the application can be executed by the electronic device 10. Specifically, the electronic device 10 may be provided with an electronic map application, so as to display an electronic map display window, and receive a user instruction input by a user in the electronic map display window, where the user instruction indicates that a positional relationship between the first location and the target area is displayed in the electronic map display window. The electronic device 10 displays the first location and at least a portion of the boundary of the target area in the electronic map display window according to the geographical location information of the target area and the first location in response to the user instruction, and a second location closest to the first location in the target area is located on at least a portion of the boundary.
In some embodiments, the electronic device 10 determines, according to the geographic location information of the target area and the first location indicated by the user instruction, a second location closest to the first location on the boundary of the target area, further determines, according to the geographic location information of the first location and the second location, an area to be displayed including the first location and at least a portion of the boundary, and then displays the area to be displayed in the electronic map display window.
In other embodiments, the method for displaying an electronic map provided by the present application may also be applied to the electronic map display system 1 shown in fig. 8. The electronic map display system 1 includes an electronic device 10 and a server 20. Specifically, the electronic device 10 receives the user instruction, and sends the first location and the target area indicated by the user instruction to the server 20, and the server 20 receives the first location and the target area sent by the electronic device 10. Further, the server 20 determines a second location closest to the first location in the target area, determines a to-be-displayed area including the first location and at least a portion of the boundary according to the geographical location information of the first location and the second location, and sends related information of the to-be-displayed area to the electronic device 10, so that the electronic device 10 displays the to-be-displayed area in the electronic map display window.
In some embodiments, the electronic device 10 may have a positioning device built into it for determining geographic location information of the first location and the target area indicated by the user instructions. The geographic position information determined by the positioning device at least comprises longitude and latitude. For the first place, the geographic position information is longitude and latitude data corresponding to the first place, and for the target area, the geographic position information is a set of longitude and latitude data corresponding to a plurality of points on the boundary of the target area.
In other embodiments, the positioning device may exist independent of the electronic device 10, as embodiments of the application are not limited in this regard. In embodiments where the positioning device is independent of the electronic device 10, the positioning device may be communicatively coupled with the electronic device 10 and/or the server 20 in a wired or wireless manner to transmit its determined geographic location information to the electronic device 10 and/or the server 20.
In an embodiment of the present application, the electronic device 10 may be any display device including an electronic map of a display module, such as a smart watch, a personal computer (Personal Computer, PC), a notebook computer, a mobile device, a tablet computer, a laptop computer, and the like. The embodiment of the present application is not limited to the specific form of the electronic device 10.
The basic hardware architecture of the electronic device 10 and the server 20 described above are similar, including the elements included in the computing apparatus shown in fig. 9. The hardware configuration of the electronic device 10 and the server 20 will be described below using the computing device shown in fig. 2 as an example.
As shown in fig. 9, the computing device may include a processor 301, a memory 302, a communication interface 303, a bus 304. The processor 301, the memory 302 and the communication interface 303 may be connected via a bus 304.
Processor 301 is the control center of the computing device and may be a single processor or a collective term for a plurality of processing elements. For example, the processor 301 may be a general-purpose central processing unit (central processing unit, CPU), or may be another general-purpose processor. Wherein the general purpose processor may be a microprocessor or any conventional processor or the like.
As one example, processor 301 may include one or more CPUs, such as CPU 0 and CPU 1 shown in fig. 9.
Memory 302 may be, but is not limited to, read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or electrically erasable programmable read-only memory (EEPROM), magnetic disk storage or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
In a possible implementation, the memory 302 may exist separately from the processor 301, and the memory 302 may be connected to the processor 301 through the bus 304 for storing instructions or program code. The map matching method provided by the embodiment of the present application can be implemented when the processor 301 calls and executes instructions or program codes stored in the memory 302.
In the embodiment of the present application, the software programs stored in the memory 302 are different for the electronic device 10 and the server 20, and the functions implemented by the electronic device 10 and the server 20 are different. The functions performed with respect to the respective devices will be described in connection with the following flowcharts.
In another possible implementation, the memory 302 may also be integrated with the processor 301.
A communication interface 303 for connecting the computing device with other devices via a communication network, which may be an ethernet, a radio access network (radio access network, RAN), a wireless local area network (wireless local area networks, WLAN), etc. The communication interface 303 may include a receiving unit for receiving data and a transmitting unit for transmitting data.
Bus 304 may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 9, but not only one bus or one type of bus.
It should be noted that the structure shown in fig. 9 does not constitute a limitation of the computing device, and the computing device may include more or less components than those shown in fig. 9, or may combine some components, or may be arranged in different components.
The following describes in detail the implementation of the embodiment of the present application with reference to the drawings. The display method of the electronic map provided by the embodiment of the application can be applied to different electronic map display scenes. For example, the user checks the position relation between the current position and the areas such as schools, rooms, communities and the like, and judges whether the snapshot place of the important person is far away from the preset area or not in the alarm system.
The method for displaying an electronic map according to the embodiment of the present application may be performed by the electronic device 10. For example, the electronic device 10 may be a smart watch, a cell phone, a tablet computer, or the like. The electronic device 10 is hereinafter exemplified as a mobile phone.
As shown in fig. 10, an embodiment of the present application provides a method for displaying an electronic map, including the following steps:
S101, receiving a user instruction, wherein the user instruction indicates that the position relation between the first place and the target area is displayed in the electronic map display window.
In some embodiments, the user instruction is an operation of the user to input the first location and the target area.
In some embodiments, the first location may be a location entered by the user in the electronic map display window, may be an address of the user, a desired location, and the like.
In some embodiments, the user instruction may be an operation of viewing a positional relationship of the first location and the target area entered by the user in the electronic map display window. For example, as shown in fig. 11, an electronic map APP is installed on a mobile phone used by a user, the user inputs a first place as a point a in an input box in the electronic map APP, a target area is a city B, clicks a "view positional relationship" control, and further triggers the mobile phone to display the content of a corresponding electronic map in an electronic map display window.
In some embodiments, the user instruction may also be a voice instruction issued by the user to the electronic device. For example, the user speaks "open electronic map APP, view the positional relationship between point a and city B", and further trigger the mobile phone to display the content of the corresponding electronic map in the electronic map display window.
S102, responding to a user instruction, and displaying at least part of boundaries of the first place and the target area in an electronic map display window according to geographic position information of the target area and the first place.
Wherein a second location in the target area closest to the first location is located on at least a portion of the boundary.
In some embodiments, the electronic device determines, according to geographic location information of the target area and the first location, a second location closest to the first location on a boundary of the target area, and determines, according to geographic location information of the first location and the second location, an area to be displayed including the first location and at least a portion of the boundary, and further displays the area to be displayed in the electronic map display window. In this way, it is ensured that at least a part of the boundary between the first location and the target area can be displayed in the electronic map display window, so that the user can learn the positional relationship between the first location and the target area.
In some embodiments, the electronic device may calculate a distance between each location in the target area and the first location based on the geographic location information of each location in the target area, and further determine a second location in the target area closest to the first location.
In some embodiments, the electronic device determines the candidate region according to the geographical position information of the first location and the second location, and further enlarges the candidate region to obtain the region to be displayed. The first place and the second place are located at the boundary of the candidate area, the candidate area is located in the area to be displayed, and the boundary of the candidate area is not coincident with the boundary of the area to be displayed. Therefore, the electronic equipment can display at least a part of boundaries of the first place and the target area containing the second place without shielding, so that a user can clearly know the position relationship between the first place and the target area, and the user experience is improved.
In some embodiments, the geographic location information includes a longitude and a latitude. When the longitude and latitude of the first and second places are different, the electronic device determines a rectangular area by using the first and second places as diagonal points of the rectangular area, and uses the rectangular area as a candidate area. As the shape of the electronic map window which can be displayed by most electronic equipment is rectangular, the candidate area of the rectangle is determined according to the first place and the second place, a better display effect can be presented, and the use experience of a user is further improved.
In some embodiments, the electronic device determines the rectangular area by taking the first place and the second place as diagonal points of the rectangular area, and the method can be specifically implemented by determining the maximum longitude, the maximum latitude, the minimum longitude and the minimum latitude from the longitudes and latitudes of the first place and the second place, determining the place corresponding to the maximum longitude and the maximum latitude as a first vertex, determining the place corresponding to the maximum longitude and the minimum latitude as a second vertex, determining the place corresponding to the minimum longitude and the minimum latitude as a third vertex, determining the place corresponding to the minimum longitude and the maximum latitude as a fourth vertex, and obtaining the rectangular area by taking the first vertex, the second vertex, the third vertex and the fourth vertex as four vertices.
In some embodiments, the electronic device enlarges the candidate area to obtain the area to be displayed, and may be specifically implemented by taking the sum of the maximum longitude and the longitude variable as a first longitude, taking the difference between the minimum longitude and the longitude variable as a second longitude, taking the sum of the maximum latitude and the latitude variable as a first latitude, taking the difference between the minimum latitude and the latitude variable as a second latitude, determining the location corresponding to the first longitude and the first latitude as a fifth vertex, determining the location corresponding to the first longitude and the second latitude as a sixth vertex, determining the location corresponding to the second longitude and the second latitude as a seventh vertex, and determining the location corresponding to the second longitude and the first latitude as an eighth vertex, thereby obtaining the area to be displayed with the fifth vertex, the sixth vertex, the seventh vertex and the eighth vertex as four vertices. The longitude variable is the product of the difference between the maximum longitude and the minimum longitude and the first preset expansion ratio, and the latitude variable is the product of the difference between the maximum latitude and the minimum latitude and the second preset expansion ratio.
As an example, as shown in fig. 12, the first location is outside the target area, the first location has a longitude 117.75, the latitude 40.50, the second location has a longitude 116.65, the latitude 39.98, the maximum longitude 117.75, the minimum longitude 116.65, the maximum latitude 40.50, and the minimum latitude 39.98 are determined, and further, the first vertex has a longitude 117.75, the latitude 40.50, the second vertex has a longitude 117.75, and the latitude 39.98, the third vertex has a longitude 116.65, the latitude 39.98, and the fourth vertex has a longitude 116.65, and the latitude 40.50, whereby a rectangular area having the first, second, third, and fourth vertices as four vertices can be obtained.
Next, based on fig. 12, assuming that the first preset expansion ratio and the second preset expansion ratio are both 0.25, the longitude of the first place is 117.75, the latitude of 40.50, the longitude of the second place is 116.65, the latitude of 39.98, the longitude variable is (117.75-116.65) ×0.25=0.275, the latitude variable is (40.50-39.98) ×0.25=0.13, and further, it is possible to determine that the first longitude is 118.025, the second longitude is 116.375, the first latitude is 40.63, and the second latitude is 39.85, the longitude of the fifth vertex is 118.025, the latitude of 40.63, the longitude of the sixth vertex is 118.025, the latitude of 39.85, the longitude of the seventh vertex is 116.375, the latitude of 39.85, the longitude of the eighth vertex is 116.375, and the latitude of 40.63, and thus a region to be displayed can be obtained with the fifth vertex, the sixth vertex, the seventh vertex, and the eighth vertex as four vertices. The display effect of the area to be displayed in the electronic map display window may be as shown in fig. 14.
As another example, as shown in fig. 15, the first location is located in the target area, the first location is 116.53, the latitude is 39.92, the second location is 116.45, and the latitude is 39.96, the maximum longitude is 116.53, the minimum longitude is 116.65, the maximum latitude is 40.50, and the minimum latitude is 39.98, and further, the first vertex is 116.53, the latitude is 39.96, the second vertex is 116.53, the latitude is 39.92, the third vertex is 116.45, the latitude is 39.92, and the fourth vertex is 116.45, and the latitude is 39.96, whereby a rectangular area having the first, second, third, and fourth vertices as four vertices can be obtained.
Next, as shown in fig. 15, assuming that the first preset expansion ratio and the second preset expansion ratio are both 0.25, the longitude of the first point is 116.53, the latitude of the latitude is 39.92, the longitude of the second point is 116.45, the latitude of the latitude is 39.96, the longitude variable is (116.53-116.45) ×0.25=0.02, the latitude variable is (39.96-39.92) ×0.25=0.01, and further, the first longitude is 116.55, the second longitude is 116.43, the first latitude is 39.97, and the second latitude is 39.91, the longitude of the fifth vertex is 116.55, the latitude is 39.97, the longitude of the sixth vertex is 116.55, the latitude is 39.91, the longitude of the seventh vertex is 116.43, the latitude is 39.91, and the longitude of the eighth vertex is 116.43, and the latitude is 39.97, whereby the area to be displayed with the fifth vertex, the sixth vertex, the seventh vertex, and the eighth vertex as four vertices can be obtained. The display effect of the area to be displayed in the electronic map display window may be as shown in fig. 17.
Therefore, the electronic equipment can accurately determine the candidate area of the rectangle based on the longitude and latitude of the first place and the second place, and then obtain the expanded candidate area which is the area to be displayed according to the first preset expansion proportion and the second preset expansion proportion, so that at least one part of boundaries including the second place in the first place and the target area can be displayed in the electronic map display window without being blocked. When the first place is in the target area, the user can view the first place and a part of the boundary of the target area from the electronic map display window, so that the degree of the first place penetrating into the target area is known, and when the first place is outside the target area, the user can also view the first place and a part of the boundary of the target area from the electronic map display window, so that the degree of the first place away from the target area is known. Therefore, whether the first place is in the target area or outside the target area, the position relation between the first place and the target area can be displayed in the display window of the electronic map by the display method of the electronic map provided by the embodiment of the application, a better display effect is presented, and a better use feeling is brought to a user.
In some embodiments, the first preset expansion ratio and the second preset expansion ratio may be determined by a developer of the electronic map according to a display effect of multiple experiments, may be set by a user, or may be determined by the electronic device according to a size of a display window of the electronic map. For example, the aspect ratio of the display window of the electronic map is 2:1, the real distance between the longitude of the first location and the longitude of the second location is 1500m, and the real distance between the latitude of the first location and the latitude of the second location is 1000m, the electronic device may determine that the first preset expansion ratio is 0.3, and the second preset expansion ratio is 0.1, so that the aspect ratio of the to-be-displayed area obtained after expanding the rectangular area according to the first preset expansion ratio and the second preset expansion ratio is also 2:1.
The technical solution shown in fig. 10 at least has the following beneficial effects that the electronic device displays at least a part of boundaries of the first place and the target area including the second place in the electronic map display window according to the geographic position information of the second place closest to the first place in the first place and the target area, so that a user can clearly and intuitively know the position relationship between the first place and the target area in the electronic map display window, such as the degree to which the first place is located in the target area and is located in the target area, or the degree to which the first place is located outside the target area and is located away from the target area. The planned path between the first place and the target area is not displayed in the electronic map, and when a user only wants to view the position relationship between the first place and the target area, the user does not need to manually delete the path, so that the use experience is better.
In some embodiments, the electronic device may also expand the candidate area by extending the connection between the first location and the second location to the opposite end, so as to obtain the area to be displayed. For example, the first location point a and the second location point B are extended according to a preset extension ratio to obtain a line segment AC, and the line segment BA is extended to obtain a line segment BD, and then the line segment CD is taken as a diagonal line to form a rectangular area, which is an area to be displayed obtained by expanding the candidate area.
In some embodiments, when the display window of the electronic map is not rectangular, the candidate region and the region to be displayed may not be rectangular. For example, the electronic device is a smart watch with a circular surface, and when the electronic map is viewed through the smart watch, the display window of the electronic map is circular, and then the electronic device determines a candidate area and an area to be displayed of the circle.
In some embodiments, in the case that the longitude or latitude of the first location is the same as that of the second location, the electronic device determines the candidate area according to the geographic position information of the first location and the second location, and may be specifically implemented by determining the rectangular area with the first location and the second location being the midpoints of two opposite boundaries of the rectangular area, and taking the rectangular area as the candidate area.
For example, assuming that the longitude of the first location is x1, the latitude is y1, the longitude of the second location is x1, the latitude is y2, the true distance between the point a and the point B is determined to be L, and the aspect ratio of the electronic map display window is 2:1, the aspect ratio of the rectangular area is also 2:1. When the points a and B are located on two long sides of the rectangular area, respectively, the rectangular area has a length of 2L and a width of L as shown in (a) of fig. 18. When the points a and B are located on two short sides of the rectangular area, respectively, the rectangular area has a length L and a width of 0.5L as shown in (B) of fig. 18. Under the condition that the latitude of the first site A point is the same as that of the second site B point, the determination mode of the rectangular area is the same as that of the rectangular area, and the description is omitted.
Thus, even if the longitude and latitude of the first place and the latitude of the second place are the same, the electronic device can determine the rectangular candidate area according to the longitude and latitude of the first place and the latitude of the second place, and further the candidate area can be completely displayed in the electronic map display window.
In some embodiments, as shown in fig. 19, the electronic device determines, according to the geographic location information of the first location and the second location, a to-be-displayed area including the first location and at least a portion of the boundary, and may further be implemented as the following steps:
s201, determining the real distance between the first place and the second place according to the geographical position information of the first place and the second place.
For example, assuming that the longitude of the first location is x1, the latitude is y1, the longitude of the second location is x2, and the latitude is y2, the true distance between the first location and the second location can be calculated according to the distance calculation formula d=r×cos -1 [ cos (y 1) ×cos (y 2) ×cos (x 1-x 2) +sin (y 1) ×sin (y 2) ]. Wherein R represents the earth radius.
S202, determining a target zoom level from a plurality of zoom levels preset in the display window of the electronic map according to the real distance between the first place and the second place.
Wherein the zoom level characterizes a proportional relationship of a map distance between two points in the electronic map display window and a real distance between the two points.
In some embodiments, the electronic device determines a target zoom level from a plurality of zoom levels preset in the electronic map display window according to the real distance between the first place and the second place, and may specifically determine that the electronic map display window corresponds to a plurality of area sizes of the zoom levels according to the size of the electronic map display window, and further determine one of the zoom levels corresponding to the areas capable of completely displaying the first place and the second place as the target zoom level according to the real distance between the first place and the second place and the plurality of area sizes.
Illustratively, the preset plurality of zoom levels may be as shown in table 1. Assuming that 930 pixels are located on the oblique side of the display window of the electronic map, according to the calculation result in table 1, the true distance corresponding to 930 pixels in the sixteenth zoom level is 2000m, the true distance corresponding to seventeenth zoom level is 1000m, the true distance corresponding to eighteenth zoom level is 500m, and assuming that the true distance between the first place and the second place is 750m, any zoom level before the eighteenth zoom level can be determined as the target zoom level.
TABLE 1 preset corresponding relationship Table of zoom level, map distance, true distance
In this way, the electronic device determines the real distances corresponding to different zoom levels one by one, and determines the zoom level corresponding to the area capable of completely displaying the first place and the second place as the target zoom level, so that when the electronic device displays the area to be displayed on the electronic map display window according to the target zoom level, at least one part of boundaries of the first place and the target area including the second place can be completely displayed.
In some embodiments, in a case where a plurality of zoom levels can be used as the target zoom level, the electronic device determines, as the target zoom level, a zoom level in a case where a real distance corresponding to the electronic map display window is closest to a real distance between the first place and the second place. For example, assuming that 930 pixels are located on the hypotenuse of the electronic map display window, according to the calculation in table 1, the true distance corresponding to 930 pixels in the sixteenth zoom level is 2000m, the true distance corresponding to 930 pixels in the seventeenth zoom level is 1000m, the true distance corresponding to the eighteenth zoom level is 500m, and assuming that the true distance between the first location and the second location is 750m, the true distance corresponding to the electronic map display window in the plurality of zoom levels is greater than 750m and the nearest 750m is 1000m, the seventeenth zoom level may be determined as the target zoom level.
S203, taking the midpoint of the connecting line of the first place and the second place as the center point of the area to be displayed, and determining the area to be displayed according to the target zoom level and the size of the display window of the electronic map.
The shape of the region to be displayed is matched with the shape of the electronic map display window, and the area of the region to be displayed is equal to the area of the electronic map display window after being scaled according to the target scaling level.
As an example, as shown in fig. 20, the first location point a is outside the target area, the longitude of point a is x1, the latitude is y1, the longitude of point B is x2, and the latitude is y2, then the midpoint C between point a and point B, and the true distance between point a and point B may be determined. Assuming that the real distance between the point a and the point B is 750m, the electronic device may determine that the target zoom level based on the above table 1 is the seventeenth zoom level, and the area to be displayed may be as shown in fig. 21, and the display effect of the area to be displayed in the electronic map display window may be as shown in fig. 22.
As yet another example, as shown in fig. 23, a first location point a is within the target area, the longitude of point a is x1, the latitude is y1, the longitude of point B is x2, and the latitude is y2, then the midpoint C between points a and B, and the true distance between points a and B may be determined. Assuming that the real distance between the point a and the point B is 750m, the electronic device may determine that the target zoom level based on the above table 1 is the seventeenth zoom level, and the area to be displayed may be as shown in fig. 24, and the display effect of the area to be displayed in the electronic map display window may be as shown in fig. 25.
The technical scheme shown in fig. 19 at least has the following beneficial effects that the electronic equipment calculates the real distance between the first place and the second place according to the geographical position information of the first place and the second place closest to the first place in the target area, further determines a target zoom level in a plurality of preset zoom levels, takes the midpoint of the connecting line of the first place and the second place as the center point of the area to be displayed, and determines the area to be displayed according to the target zoom level. In this way, at least a part of the boundary of the first location and the target area including the second location may be completely displayed in the electronic map display window, so that the user can clearly perceive the positional relationship of the first location and the target area.
In some embodiments, in the case that the first location is located on at least a portion of the boundary, step S102 may be specifically implemented by using the first location as a center point of the area to be displayed, determining the area to be displayed, and then displaying the area to be displayed in the electronic map display window. The shape of the area to be displayed is matched with the shape of the display window of the electronic map.
For example, if the electronic map display window is circular, the electronic device may use the first location as a center of a circle and use a preset radius as a circle under the condition that the first location is located on at least a part of the boundary, and the determined circular area is the area to be displayed. The preset radius may be set by the user or set by a developer of the electronic map, which is not limited in the embodiment of the present application.
In this way, when the first place is used as the center point of the area to be displayed, the first place can be displayed, the target area and the boundary of the target area can be displayed, and a part of the content outside the target area can be displayed, so that the user can clearly and intuitively know the position relationship between the first place and the target area.
In some embodiments, the electronic device may also identify a second location in the electronic map display window and/or identify a true distance between the first location and the second location.
For example, as shown in fig. 26, in the electronic map display window, the first location is a point a, the second location closest to the point a in the target area is a point B, and the real distance between the point a and the point B is 750m.
Therefore, the user can know the distance of the first place far from the target area or deep into the target area more clearly in the electronic map display window, and the use feeling of the user can be improved.
The foregoing description of the solution provided by the embodiments of the present application has been mainly presented in terms of a method. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. The technical aim may be to use different methods to implement the described functions for each particular application, but such implementation should not be considered beyond the scope of the present application.
As shown in fig. 27, the embodiment of the application further provides a display device of an electronic map, which is used for the display method of the electronic map shown in the embodiment of the method. The display device 400 of the electronic map comprises a receiving module 401, a display module 402 and a processing module 403.
The receiving module 401 is configured to receive a user instruction, where the user instruction indicates that a positional relationship between a first location and a target area is displayed in the electronic map display window. And the display module 402 is used for responding to the user instruction, displaying the first place and at least a part of the boundary of the target area in the electronic map display window according to the geographic position information of the target area and the first place, wherein a second place closest to the first place in the target area is positioned on at least a part of the boundary.
In one possible implementation, the processing module 403 is configured to determine, according to geographic location information of the target area and the first location, a second location closest to the first location on a boundary of the target area, the processing module 403 is further configured to determine, according to geographic location information of the first location and the second location, a region to be displayed including the first location and at least a portion of the boundary, and the display module 402 is specifically configured to display the region to be displayed in the electronic map display window.
In another possible implementation manner, the processing module 403 is specifically configured to determine a candidate area according to geographic location information of a first location and a second location, where the first location and the second location are located at a boundary of the candidate area, and expand the candidate area to obtain a to-be-displayed area, where the candidate area is located in the to-be-displayed area and the boundary of the candidate area is not coincident with the boundary of the to-be-displayed area.
In another possible implementation, the geographic location information includes longitude and latitude, and the processing module 403 is specifically configured to determine a rectangular area with the first location and the second location as diagonal points of the rectangular area, and use the rectangular area as the candidate area.
In another possible implementation manner, the processing module 403 is specifically configured to determine a real distance between a first location and a second location according to geographic location information of the first location and the second location, determine a target zoom level from a plurality of zoom levels preset in the electronic map display window according to the real distance between the first location and the second location, the zoom level characterizes a proportional relationship between a map distance between two points in the electronic map display window and the real distance between the two points, and determine a to-be-displayed area according to a size of the target zoom level and the electronic map display window by taking a midpoint of a connecting line between the first location and the second location as a center point of the to-be-displayed area, wherein a shape of the to-be-displayed area matches a shape of the electronic map display window, and an area of the to-be-displayed area is equal to an area of the electronic map display window scaled according to the target zoom level.
In another possible implementation manner, in the case that the first location is located on at least a portion of the boundary, the processing module 403 is specifically configured to determine the area to be displayed with the first location as a center point of the area to be displayed, where the shape of the area to be displayed matches the shape of the electronic map display window, and the display module 402 is specifically configured to display the area to be displayed in the electronic map display window.
The division of the modules in fig. 27 is illustrative, and is merely a logic function division, and another division method may be actually implemented. For example, two or more functions may also be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules.
Another embodiment of the present application also provides a display apparatus for an electronic map, as shown in fig. 28, where the display apparatus 500 for an electronic map includes a memory 501 and a processor 502, where the memory 501 is coupled to the processor 502, and where the memory 501 is configured to store computer program codes, and where the computer program codes include computer instructions. When the processor 502 executes the computer instructions, the display device 500 of the electronic map executes the steps executed by the display device of the electronic map in the method flow shown in the method embodiment.
In actual implementation, the receiving module 401, the displaying module 402, and the processing module 403 may be implemented by the processor 502 shown in fig. 28 calling computer program code in the memory 501. The specific implementation process may refer to the description of the display method portion of the electronic map, which is not repeated herein.
Another embodiment of the present application further provides a computer readable storage medium, where computer instructions are stored, where the computer instructions, when executed on a display device of an electronic map, cause the display device of the electronic map to execute each step executed by the display device of the electronic map in the method flow shown in the foregoing method embodiment.
Another embodiment of the present application also provides a computer system, which is applied to a display device of an electronic map. The computer system includes one or more interface circuits, and one or more processors. The interface circuit and the processor are interconnected by a wire. The interface circuit is for receiving signals from a memory of a display device of the electronic map and transmitting the signals to the processor, the signals including computer instructions stored in the memory. When the processor of the display device of the electronic map executes the computer instructions, the display device of the electronic map executes the steps executed by the display device of the electronic map in the method flow shown in the method embodiment.
In another embodiment of the present application, there is also provided a computer program product including computer instructions that, when executed on a display device of an electronic map, cause the display device of the electronic map to perform the steps performed by the display device of the electronic map in the method flow shown in the method embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer-executable instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are fully or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, a website, computer, server, or data center via a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices including one or more servers, data centers, etc. that can be integrated with the media. Usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tape), optical media (e.g., DVD), etc.
The foregoing is only a specific embodiment of the present application. Variations and alternatives will occur to those skilled in the art based on the detailed description provided herein and are intended to be included within the scope of the application.

Claims (9)

1. A display method of an electronic map, comprising:
Receiving a user instruction, wherein the user instruction indicates that the position relation between a first place and a target area is displayed in an electronic map display window;
Responding to the user instruction, and displaying the first place and at least a part of boundary of the target area in the electronic map display window according to the geographic position information of the target area and the first place;
The displaying at least a part of boundaries of the first place and the target area in the electronic map display window according to the geographic position information of the target area and the first place comprises the following steps:
determining a second place closest to the first place on the boundary of the target area according to the geographic position information of the target area and the first place;
determining a region to be displayed including the first place and the at least one part of boundary according to the geographical position information of the first place and the second place;
and displaying the area to be displayed in the electronic map display window.
2. The display method according to claim 1, wherein the determining the area to be displayed including the first location and the at least a portion of the boundary according to the geographical position information of the first location and the second location includes:
determining a candidate region according to the geographic position information of the first location and the second location, wherein the first location and the second location are positioned at the boundary of the candidate region;
and expanding the candidate area to obtain the area to be displayed, wherein the candidate area is positioned in the area to be displayed, and the boundary of the candidate area is not coincident with the boundary of the area to be displayed.
3. The display method according to claim 2, wherein the geographical location information includes longitude and latitude;
in the case where the longitude and latitude of the first and second locations are different, the determining a candidate area according to the geographic position information of the first and second locations includes:
and determining the rectangular region by taking the first location and the second location as diagonal points of the rectangular region, and taking the rectangular region as the candidate region.
4. The display method according to claim 1, wherein the determining the area to be displayed including the first location and the at least a portion of the boundary according to the geographical position information of the first location and the second location includes:
Determining a real distance between the first location and the second location according to the geographical position information of the first location and the second location;
Determining a target zoom level from a plurality of zoom levels preset in the electronic map display window according to the real distance between the first place and the second place, wherein the zoom level represents the proportional relation between the map distance between two points in the electronic map display window and the real distance between the two points;
And taking the midpoint of the connecting line of the first place and the second place as the center point of the region to be displayed, determining the region to be displayed according to the target zoom level and the size of the electronic map display window, wherein the shape of the region to be displayed is matched with that of the electronic map display window, and the area of the region to be displayed is equal to the area of the electronic map display window zoomed according to the target zoom level.
5. The display method according to claim 1, wherein the displaying at least a part of the boundaries of the first place and the target area in the electronic map display window according to the geographical position information of the target area and the first place in a case where the first place is located on the at least a part of the boundaries, further comprises:
the first place is taken as a center point of an area to be displayed, the area to be displayed is determined, and the shape of the area to be displayed is matched with the shape of the display window of the electronic map;
and displaying the area to be displayed in the electronic map display window.
6. A display device of an electronic map, comprising:
the receiving module is used for receiving a user instruction, wherein the user instruction indicates that the position relation between the first place and the target area is displayed in the electronic map display window;
The display module is used for responding to the user instruction, and displaying the first place and at least one part of boundary of the target area in the electronic map display window according to the geographic position information of the target area and the first place;
The electronic map display device comprises a target area, a processing module, a display module and a display module, wherein the target area is used for displaying a first location, the first location is used for displaying a first map, the second location is used for displaying a second map, the first map is used for displaying a first map, the second map is used for displaying a second map, the second map is used for displaying a first map, the first map is used for displaying a second map, the second map is used for displaying a third map, the second map is used for displaying the second map, and the second map is used for displaying the second map.
7. The display device of claim 6, wherein the display device comprises a display device,
The processing module is specifically configured to determine a candidate area according to geographic location information of the first location and the second location, where the first location and the second location are located at boundaries of the candidate area; expanding the candidate region to obtain the region to be displayed, wherein the candidate region is positioned in the region to be displayed, and the boundary of the candidate region is not coincident with the boundary of the region to be displayed;
The processing module is specifically configured to determine a rectangular area by using the first location and the second location as diagonal points of the rectangular area, and take the rectangular area as the candidate area;
The processing module is specifically configured to determine a real distance between the first location and the second location according to geographic location information of the first location and the second location, determine a target zoom level from a plurality of zoom levels preset in the electronic map display window according to the real distance between the first location and the second location, characterize a proportional relationship between a map distance between two points in the electronic map display window and the real distance between the two points, determine the region to be displayed according to the sizes of the target zoom level and the electronic map display window by taking a midpoint of a connecting line between the first location and the second location as a center point of the region to be displayed, and match a shape of the region to be displayed with a shape of the electronic map display window, wherein an area of the region to be displayed is equal to an area of the region to be displayed after the electronic map display window is scaled according to the target zoom level;
And the processing module is specifically configured to determine the to-be-displayed area by taking the first location as a center point of the to-be-displayed area when the first location is located on the at least one part of the boundary, wherein the shape of the to-be-displayed area is matched with the shape of the electronic map display window, and the display module is specifically configured to display the to-be-displayed area in the electronic map display window.
8. A display device of an electronic map, comprising:
One or more processors;
one or more memories;
Wherein the one or more memories are configured to store computer program code comprising computer instructions that, when executed by the one or more processors, perform the method of displaying an electronic map of any of claims 1 to 5.
9. A computer-readable storage medium storing computer-executable instructions that, when executed on a computer, cause the computer to perform the method of displaying an electronic map according to any one of claims 1 to 5.
CN202211675127.4A 2022-12-26 2022-12-26 A method, device and storage medium for displaying an electronic map Active CN116013144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211675127.4A CN116013144B (en) 2022-12-26 2022-12-26 A method, device and storage medium for displaying an electronic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211675127.4A CN116013144B (en) 2022-12-26 2022-12-26 A method, device and storage medium for displaying an electronic map

Publications (2)

Publication Number Publication Date
CN116013144A CN116013144A (en) 2023-04-25
CN116013144B true CN116013144B (en) 2025-05-06

Family

ID=86035055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211675127.4A Active CN116013144B (en) 2022-12-26 2022-12-26 A method, device and storage medium for displaying an electronic map

Country Status (1)

Country Link
CN (1) CN116013144B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115219A (en) * 2020-08-31 2020-12-22 汉海信息技术(上海)有限公司 Position determination method, device, equipment and storage medium
CN115145673A (en) * 2022-07-07 2022-10-04 厦门精图信息技术有限公司 Method, device, medium and equipment for scaling target area to adapt to display area

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3754110B2 (en) * 1995-07-14 2006-03-08 株式会社日立製作所 Dynamic route search method and navigation apparatus
US8635021B2 (en) * 2012-05-04 2014-01-21 Google Inc. Indicators for off-screen content
US10593074B1 (en) * 2016-03-16 2020-03-17 Liberty Mutual Insurance Company Interactive user interface for displaying geographic boundaries
US20180357779A1 (en) * 2016-11-21 2018-12-13 Google Inc. Systems and methods for dynamically providing scale information on a digital map
CN106598437A (en) * 2016-12-22 2017-04-26 东方网力科技股份有限公司 Zoom display method and apparatus for electronic map

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115219A (en) * 2020-08-31 2020-12-22 汉海信息技术(上海)有限公司 Position determination method, device, equipment and storage medium
CN115145673A (en) * 2022-07-07 2022-10-04 厦门精图信息技术有限公司 Method, device, medium and equipment for scaling target area to adapt to display area

Also Published As

Publication number Publication date
CN116013144A (en) 2023-04-25

Similar Documents

Publication Publication Date Title
KR20160010278A (en) Method and apparatus for displaying point of interest
CN112069285B (en) Map generation method and device based on three-dimensional high-precision map slice and electronic equipment
US20090093958A1 (en) System and method for determining position within or without a complex polygon geofence
CN104881860A (en) Positioning method and apparatus based on photographs
CN110914870B (en) Annotation generation for image networks
CN104330081A (en) Descriptive position prompt message generation method and device
CN104331423A (en) Positioning method and device based on electronic map
CN104199906A (en) Recommending method and device for shooting region
CN109489654B (en) Navigation route presenting method, device, equipment and storage medium
WO2021253996A1 (en) Method and system for providing real-scene image for user
CN105228105B (en) A kind of indoor orientation method and user terminal
US20230070349A1 (en) Positioning methods and cloud device
CN115767423A (en) Electronic fence determination method and device and storage medium
CN116013144B (en) A method, device and storage medium for displaying an electronic map
CN110674233A (en) Method and equipment for generating operation view based on electronic map
JP2006526159A (en) Method and system for providing map information to a mobile communication terminal
CN115937494B (en) Position labeling method and device in panorama, electronic equipment and storage medium
CN115511701A (en) Method and device for converting geographic information
CN112800163B (en) Map interface display method and device, computer equipment and storage medium
CN103813446A (en) Method and device for estimating coverage of staying area
CN115391648A (en) Method and device for searching geographic information of interest point and electronic equipment
CN103186528A (en) Method, device and mobile terminal for screening geographical information
KR102091172B1 (en) Method and apparatus for providing street view
CN111947679A (en) Method, computing device and computer-readable storage medium for assisting navigation
CN117308966B (en) Indoor positioning and navigation method, system and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant