[go: up one dir, main page]

CN106897321A - The method and device of show map data - Google Patents

The method and device of show map data Download PDF

Info

Publication number
CN106897321A
CN106897321A CN201510966941.5A CN201510966941A CN106897321A CN 106897321 A CN106897321 A CN 106897321A CN 201510966941 A CN201510966941 A CN 201510966941A CN 106897321 A CN106897321 A CN 106897321A
Authority
CN
China
Prior art keywords
data display
area
local area
display areas
map
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510966941.5A
Other languages
Chinese (zh)
Other versions
CN106897321B (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510966941.5A priority Critical patent/CN106897321B/en
Publication of CN106897321A publication Critical patent/CN106897321A/en
Application granted granted Critical
Publication of CN106897321B publication Critical patent/CN106897321B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Instructional Devices (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本发明公开了一种显示地图数据的方法及装置,涉及数据处理领域,为彻底解决数据显示区域重叠的问题而发明。本发明的方法包括:响应于放大操作指令,在地图图形中确定需要放大的局部区域,地图图形由多个地域图形组成,每个地域图形上对应显示有一个数据显示区域,局部区域至少遮盖两个地域图形的数据显示区域;在局部区域中查找重叠程度最高的数据显示区域,获得目标数据显示区域;根据目标数据显示区域的区域参数计算局部区域的放大倍数;按照放大倍数对局部区域进行放大显示,以使得局部区域中的数据显示区域互不重叠。本发明主要应用于客户端侧。

The invention discloses a method and device for displaying map data, relates to the field of data processing, and is invented for thoroughly solving the problem of data display area overlapping. The method of the present invention includes: responding to the zoom-in operation instruction, determining the local area that needs to be enlarged in the map graphic, the map graphic is composed of a plurality of regional graphics, each regional graphic is correspondingly displayed with a data display area, and the local area covers at least two The data display area of a geographical graph; find the data display area with the highest overlapping degree in the local area to obtain the target data display area; calculate the magnification of the local area according to the area parameters of the target data display area; zoom in on the local area according to the magnification Displayed so that the data display areas in the local area do not overlap each other. The present invention is mainly applied to the client side.

Description

显示地图数据的方法及装置Method and device for displaying map data

技术领域technical field

本发明涉及数据处理领域,尤其涉及一种显示地图数据的方法及装置。The invention relates to the field of data processing, in particular to a method and device for displaying map data.

背景技术Background technique

在显示地域数据时,为便于用户直观查看数据与地域之间的关联关系,现有技术给出了一种基于地图图形的数据显示方式。在图1中,中国地图由省、市、自治区等不同地域组成,每一个地域图形上显示有有关该地域的数据。相对于列表形式的数据显示方式,基于地图图形的数据显示方式由于具有直观、形象的特点,因此更容易被用户所接受。When displaying regional data, in order to facilitate users to visually view the correlation between data and regions, the prior art provides a data display method based on map graphics. In Figure 1, the map of China is composed of different regions such as provinces, municipalities, and autonomous regions, and each region is graphically displayed with data about the region. Compared with the data display method in the form of a list, the data display method based on map graphics is easier to be accepted by users because of its intuitive and vivid features.

为使用户能够从地图图形中获取更多的有用信息,现有技术在地图图形中以圆形或水滴等不同形态的数据显示区域对数据进行显示。在图1中,每个地域图形对应一个圆形辐射区域,该地域的数据显示于对应的圆形辐射区域中,数值较大的数据所对应的圆形辐射面积更大。通过这种显示方式,用户可以直观的感受到各个地域的数据大小,有助于用户对不同地域的数据进行主观比较。但是,这种显示方式在为用户带来便利的同时也存在一定缺陷:当一个较小的范围内存在较多的地域图形时,多个大小不一的数据显示区域会集中于这一小范围内显示,使得各个数据显示区域之间相互重叠。通过图1可以看出,圆形辐射区域之间的重叠会对用户查看数据造成严重的干扰。In order to enable users to obtain more useful information from map graphics, the prior art displays data in different shapes of data display areas such as circles or water droplets in the map graphics. In Figure 1, each geographical graph corresponds to a circular radiation area, and the data of the region is displayed in the corresponding circular radiation area, and the data with larger values corresponds to a larger circular radiation area. Through this display method, users can intuitively feel the size of data in each region, which helps users to make subjective comparisons of data in different regions. However, this display mode also has certain defects while bringing convenience to users: when there are many geographical graphics in a small range, multiple data display areas of different sizes will be concentrated in this small range Displayed inside, so that each data display area overlaps with each other. It can be seen from Figure 1 that the overlap between circular radiation areas will cause serious interference to users viewing data.

为解决该问题,现有技术给出了一种改进办法,该办法对相互重叠的数据显示区域按照一定比例进行缩小,以降低数据显示区域之间的重叠程度。但是这种方法的效果比较有限,因为虽然理论上可以将数据显示区域的面积缩小到足以消除区域间重叠的程度,但是数据内容会随着数据显示区域等比例缩小。在大多数情况下,过小的数据显示区域会使用户无法看清其中的数据内容。对于“京津冀”地区这种地域图形小而紧密的位置,在保证用户肉眼能够看清数据内容的前提下,仅靠缩小数据显示区域的办法远远无法达到消除区域重叠的目的。而如果在地图图形中显示市级、县级甚至乡级地域的数据,那么这种办法的效果更是捉襟见肘。综上可见,现有缩小数据显示区域的方式在改善区域重叠方面的效果欠佳。In order to solve this problem, the prior art provides an improvement method, which reduces the overlapped data display areas according to a certain ratio, so as to reduce the degree of overlap between the data display areas. However, the effect of this method is relatively limited, because although the area of the data display area can be reduced theoretically enough to eliminate the overlap between the areas, the data content will be proportionally reduced with the data display area. In most cases, a data display area that is too small will prevent users from seeing the data content clearly. For the "Beijing-Tianjin-Hebei" region, where the geographic graphics are small and dense, on the premise of ensuring that the user can see the data content clearly, the method of reducing the data display area alone is far from achieving the goal of eliminating area overlap. And if the data of city level, county level or even township level are displayed in the map graphics, the effect of this method is even more stretched. It can be seen from the above that the existing methods of reducing the data display area are not effective in improving the area overlapping.

发明内容Contents of the invention

本发明提供了一种显示地图数据的方法及装置,能够彻底解决数据显示区域重叠的问题。The invention provides a method and device for displaying map data, which can completely solve the problem of overlapping data display areas.

为解决上述问题,一方面,本发明提供了一种显示地图数据的方法,该方法包括:In order to solve the above problems, on the one hand, the present invention provides a method for displaying map data, the method comprising:

响应于放大操作指令,在地图图形中确定需要放大的局部区域,地图图形由多个地域图形组成,每个地域图形上对应显示有一个数据显示区域,局部区域至少遮盖两个地域图形的数据显示区域;In response to the zoom-in operation instruction, determine the local area that needs to be enlarged in the map graphic. The map graphic is composed of a plurality of regional graphics, and each regional graphic is correspondingly displayed with a data display area, and the local area covers at least two data displays of the regional graphics. area;

在局部区域中查找重叠程度最高的数据显示区域,获得目标数据显示区域;Find the data display area with the highest overlapping degree in the local area to obtain the target data display area;

根据目标数据显示区域的区域参数计算局部区域的放大倍数;Calculate the magnification factor of the local area according to the area parameters of the target data display area;

按照放大倍数对局部区域进行放大显示,以使得局部区域中的数据显示区域互不重叠。The local area is enlarged and displayed according to the magnification, so that the data display areas in the local area do not overlap each other.

另一方面,本发明还提供了一种显示地图数据的装置,该装置包括:On the other hand, the present invention also provides a device for displaying map data, the device comprising:

确定单元,用于响应于放大操作指令,在地图图形中确定需要放大的局部区域,地图图形由多个地域图形组成,每个地域图形上对应显示有一个数据显示区域,局部区域至少遮盖两个地域图形的数据显示区域;The determining unit is configured to determine a local area that needs to be enlarged in the map graphic in response to the zoom-in operation command. The map graphic is composed of a plurality of regional graphics, and each regional graphic is correspondingly displayed with a data display area, and the local area covers at least two The data display area of the geographical graph;

查找单元,用于在局部区域中查找重叠程度最高的数据显示区域,获得目标数据显示区域;The search unit is used to find the data display area with the highest overlapping degree in the local area to obtain the target data display area;

计算单元,用于根据目标数据显示区域的区域参数计算局部区域的放大倍数;a calculation unit, configured to calculate the magnification of the local area according to the area parameters of the target data display area;

显示单元,用于按照放大倍数对局部区域进行放大显示,以使得局部区域中的数据显示区域互不重叠。The display unit is configured to enlarge and display the local area according to the magnification, so that the data display areas in the local area do not overlap each other.

本发明提供的显示地图数据的方法及装置,能够根据放大操作指令确定需要放大的局部区域,基于局部区域中重叠程度最高的数据显示区域的区域参数计算放大倍数,并按照该放大倍数对局部区域进行放大显示。由于放大倍数是依据重叠程度最高的数据显示区域的区域参数计算的,因此对局部区域放大后能够保证数据显示区域之间没有重叠。与现有技术相比,本发明无需缩小数据显示区域,因此可以在使用户清楚查看数据内容的前提下彻底解决数据显示区域重叠的问题。The method and device for displaying map data provided by the present invention can determine the local area that needs to be enlarged according to the zoom-in operation instruction, calculate the magnification factor based on the area parameters of the data display area with the highest overlapping degree in the local area, and adjust the local area according to the magnification factor to zoom in. Since the magnification factor is calculated based on the area parameters of the data display area with the highest degree of overlap, no overlap between the data display areas can be ensured after the local area is enlarged. Compared with the prior art, the present invention does not need to reduce the data display area, so the problem of overlapping data display areas can be completely solved on the premise that the user can clearly view the data content.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了现有技术中显示地图数据的界面示意图;Fig. 1 shows a schematic diagram of an interface for displaying map data in the prior art;

图2示出了本发明实施例提供的一种显示地图数据的方法流程图;Fig. 2 shows a flow chart of a method for displaying map data provided by an embodiment of the present invention;

图3示出了本发明实施例提供的另一种显示地图数据的方法流程图;FIG. 3 shows a flowchart of another method for displaying map data provided by an embodiment of the present invention;

图4示出了本发明实施例中确定局部区域的示意图;Fig. 4 shows a schematic diagram of determining a local area in an embodiment of the present invention;

图5示出了本发明实施例中放大局部区域的示意图;Fig. 5 shows a schematic diagram of an enlarged local area in an embodiment of the present invention;

图6示出了本发明实施例提供的一种显示地图数据的装置的组成框图;FIG. 6 shows a block diagram of a device for displaying map data provided by an embodiment of the present invention;

图7示出了本发明实施例提供的另一种显示地图数据的装置的组成框图。FIG. 7 shows a block diagram of another device for displaying map data provided by an embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

本发明实施例提供了一种显示地图数据的方法,如图2所示,该方法包括:An embodiment of the present invention provides a method for displaying map data, as shown in Figure 2, the method includes:

201、响应于放大操作指令,在地图图形中确定需要放大的局部区域。201. In response to a zoom-in operation instruction, determine a local area that needs to be zoomed-in in a map graphic.

本实施例主要应用于客户端侧,该客户端可以但不限于安装于手机、个人电脑(Personal Computer,简称PC)、平板电脑及可穿戴智能设备上。实际应用中,一切具有数据处理功能及可视化人机交互功能的电子产品均适用于本发明实施例给出的方法流程。This embodiment is mainly applied to the client side, and the client may be, but not limited to, installed on a mobile phone, a personal computer (Personal Computer, PC for short), a tablet computer, and a wearable smart device. In practical applications, all electronic products with data processing functions and visualized human-computer interaction functions are applicable to the method flow given in the embodiments of the present invention.

在用于数据查询的可视界面中,客户端显示有用于进行数据展示的地图图形,该地图图形由多个地域图形组成,其中,每个地域图形上对应显示有一个数据显示区域,在数据显示区域中显示有对应地域图形的数据内容。In the visual interface for data query, the client displays a map graphic for data display. The map graphic is composed of multiple regional graphics, and each regional graphic corresponds to a data display area. The data content of the corresponding geographical graph is displayed in the display area.

以中国地图为例,参考图1,中国地图图形由北京、山西、上海、青海等对应不同省、直辖市或自治区的地域图形组成。每个地域图形上对应有一个圆形辐射状的数据显示区域,数据显示区域中显示有对应地域图形的数据内容,数据显示区域的区域面积与数据值的大小成正相关关系,即数据值大的数据显示区域面积较大,数据值小的数据显示区域面积较小。Taking the map of China as an example, refer to Figure 1. The map graphics of China are composed of regional graphics corresponding to different provinces, municipalities or autonomous regions such as Beijing, Shanxi, Shanghai, and Qinghai. There is a circular radial data display area corresponding to each geographical graph, and the data content of the corresponding geographical graph is displayed in the data display area. The data display area is larger, and the data display area with smaller data value is smaller.

本实施例中,客户端接收设备外部触发的放大操作指令,该操作指令用于对地图图形中的部分区域进行放大显示。实际应用中,客户端可以通过键盘、鼠标、触控屏等外设接收该放大操作指令。In this embodiment, the client receives a zoom-in operation instruction triggered externally by the device, and the operation instruction is used to zoom in and display a part of the map graphic. In practical applications, the client may receive the zoom-in operation instruction through peripheral devices such as a keyboard, a mouse, and a touch screen.

在接收到放大操作指令之后,客户端根据放大操作指令确定需要放大的局部区域。所谓确定局部区域包括确定局部区域的位置,以及确定局部区域的尺寸(包括形状和大小)。本实施例中局部区域的位置和尺寸由用户通过放大操作指令确定得出,但是为了简化用户操作的复杂度,实际应用中客户端也可以对局部区域的形状进行限制,例如默认生成矩形、方形或圆形的局部区域,用户只需要确定局部区域的位置和大小即可。After receiving the zoom-in operation instruction, the client determines the local area to be zoomed in according to the zoom-in operation instruction. The so-called determining the local area includes determining the position of the local area and determining the size (including shape and size) of the local area. In this embodiment, the position and size of the local area are determined by the user through the zoom-in operation command. However, in order to simplify the complexity of the user's operation, the client can also limit the shape of the local area in actual applications, such as generating rectangles, squares, etc. by default. Or a circular local area, the user only needs to determine the position and size of the local area.

选择局部区域的目的在于对地图图形中的部分地域图形进行放大显示,因此局部区域通常会遮盖至少两个地域图形的数据显示区域。本实施例中所谓的“遮盖数据显示区域”包括下述两种情况:数据显示区域整体位于局部区域内;2、数据显示区域部分落于局部区域内。实际应用中客户端也可以对局部区域遮盖的地域图形进行识别,对部分或全部落于局部区域中的地域图形,客户端等同认定这些地域图形对应的数据显示区域被局部区域覆盖。本实施例后续以局部区域遮盖数据显示区域为例进行说明。The purpose of selecting a local area is to enlarge and display part of the regional graphics in the map graphic, so the local area usually covers at least two data display areas of the regional graphics. The so-called "covering the data display area" in this embodiment includes the following two situations: the data display area as a whole is located in the local area; 2. The data display area is partially located in the local area. In practical applications, the client can also identify the regional graphics covered by the local area. For the regional graphics that partially or completely fall in the local area, the client equally determines that the data display area corresponding to these regional graphics is covered by the local area. This embodiment will be described later by taking a partial area covering the data display area as an example.

实际应用中,用户也可能仅选择一个地域图形对应的数据显示区域进行放大,即局部区域仅遮盖一个数据显示区域。对于此种情况,客户端可以按照预设的放大倍数对局部区域中的内容进行放大显示。预设放大倍数可以依据数据显示区域的尺寸确定得出,也可以依据地图图形整体的尺寸确定得出,或者仅仅是计算机程序中写好的一个固定值,本实施例不对预设放大倍数的具体数值进行限定。In practical applications, the user may only select a data display area corresponding to a geographical graph to zoom in, that is, a partial area covers only one data display area. In this case, the client can enlarge and display the content in the local area according to the preset magnification factor. The preset magnification can be determined based on the size of the data display area, or can be determined based on the overall size of the map graphics, or just a fixed value written in the computer program. This embodiment does not specify the specific magnification of the preset magnification. Values are limited.

对于局部区域至少遮盖两个数据显示区域的情况,客户端继续执行后续步骤202至步骤204。For the case where the local area covers at least two data display areas, the client continues to perform subsequent steps 202 to 204 .

202、在局部区域中查找重叠程度最高的数据显示区域,获得目标数据显示区域。202. Find the data display area with the highest overlapping degree in the local area to obtain the target data display area.

当局部区域遮盖了至少两个数据显示区域时,客户端获取每个数据显示区域的位置参数和尺寸参数。位置参数包括数据显示区域在界面中的坐标参数,例如可以是区域中心点坐标;尺寸参数包括区域的形状信息(矩形、圆形)以及对应具体形状的尺寸数值,例如对于方形形状而言,边长为XXX,对于圆形形状而言,半径为XX。根据位置参数和尺寸参数,客户端计算数据显示区域之间的重叠程度。When the local area covers at least two data display areas, the client acquires the position parameter and size parameter of each data display area. The position parameter includes the coordinate parameter of the data display area in the interface, such as the coordinates of the center point of the area; the size parameter includes the shape information of the area (rectangle, circle) and the size value corresponding to the specific shape, for example, for a square shape, the side The length is XXX, and for a circular shape, the radius is XX. According to the position parameter and the size parameter, the client side calculates the degree of overlap between the data display areas.

本实施例可以计算两个或多个数据显示区域之间的重叠程度。以计算两个数据显示区域之间的重叠程度为例,首先要定性界定数据显示区域之间是否存在重叠部分,只有在存在重叠部分的情况下,才会进一步定量计算重叠程度。以圆形数据显示区域为例,客户端可以通过圆形半径之和与圆心距之间的大小关系界定圆形区域之间是否存在重叠。如果圆形区域的圆心距(可以通过位置参数获得)大于或等于圆形区域的半径之和(可以通过尺寸参数获得),那么确定圆形区域之间没有重叠,否则存在重叠部分。This embodiment can calculate the degree of overlap between two or more data display areas. Taking the calculation of the degree of overlap between two data display areas as an example, it is first necessary to qualitatively define whether there is an overlap between the data display areas, and only if there is an overlap, will the degree of overlap be further quantitatively calculated. Taking the circular data display area as an example, the client can define whether there is overlap between the circular areas through the size relationship between the sum of the circular radii and the distance between the centers of the circles. If the center distance of the circular area (obtainable through the position parameter) is greater than or equal to the sum of the radii of the circular areas (obtainable through the size parameter), then it is determined that there is no overlap between the circular areas, otherwise there is an overlap.

对于存在重叠部分的数据显示区域,客户端根据每个数据显示区域的位置参数和尺寸参数计算出可以通过数值量化体现的重叠程度,然后从中选择出重叠程度最高的数据显示区域,将其确定为目标数据显示区域。For data display areas with overlapping parts, the client calculates the degree of overlap that can be quantified by numerical values based on the position parameters and size parameters of each data display area, and then selects the data display area with the highest degree of overlap and determines it as Target data display area.

选择重叠程度最高的数据显示区域的目的在于计算放大局部区域使用的放大倍数。之所以选择重叠程度最高的数据显示区域计算放大倍数,是因为这样做可以保证在放大局部区域后,重叠程度最高的数据显示区域之间不再存在重叠部分。由于重叠程度最高的区域之间的重叠部分都可以通过被消除,因此其他区域之间的重叠部分也一定可以被消除掉,由此使局部区域中不存在区域重叠的现象。The purpose of selecting the data display area with the highest degree of overlap is to calculate the magnification factor used to enlarge the local area. The reason why the data display area with the highest degree of overlap is selected to calculate the magnification factor is because this can ensure that after the local area is enlarged, there will be no overlap between the data display areas with the highest degree of overlap. Since the overlapping parts between the regions with the highest degree of overlapping can be eliminated, the overlapping parts between other regions must also be eliminated, so that there is no region overlapping phenomenon in the local region.

实际应用中还可能遇到这种情况:局部区域遮盖中数据显示区域之间均不存在重叠关系。对于这种情况,理论上无需进行局部放大,因此客户端可以不执行后续步骤203至步骤204。但是考虑到用户存在放大局部区域的实际需求,因此在本实施例的一种实现方式中,客户端可以选择两个距离最近的数据显示区域作为目标数据显示区域,并继续执行步骤203至步骤204。客户端可以通过下述几种方法确定数据显示区域之间的距离:1、确定数据显示区域中心点坐标的距离;2、确定数据显示区域边缘之间的距离。This situation may also be encountered in practical applications: there is no overlapping relationship between the data display areas in the partial area cover. In this case, theoretically, local amplification is unnecessary, so the client may not perform subsequent steps 203 to 204 . However, considering that the user has an actual need to zoom in on a local area, in an implementation of this embodiment, the client can select the two closest data display areas as the target data display area, and continue to perform steps 203 to 204 . The client can determine the distance between the data display areas through the following methods: 1. Determine the distance between the coordinates of the center point of the data display area; 2. Determine the distance between the edges of the data display area.

203、根据目标数据显示区域的区域参数计算局部区域的放大倍数。203. Calculate the magnification factor of the local area according to the area parameter of the target data display area.

所述区域参数用于反映数据显示区域的尺寸大小,不同形态的数据显示区域的区域参数有所差异。例如,圆形数据显示区域的区域参数可以包括半径和圆心距;方形数据显示区域的区域参数可以包括边长、对角线长度及中心距;长方形数据显示区域的区域参数则可以包括长、宽对角线长度和中心距。The area parameters are used to reflect the size of the data display area, and the area parameters of different forms of data display areas are different. For example, the area parameters of a circular data display area may include radius and center distance; the area parameters of a square data display area may include side length, diagonal length, and center distance; the area parameters of a rectangular data display area may include length, width Diagonal length and center distance.

客户端计算放大倍数的原则为:在放大后的局部区域中,目标数据显示区域之间不再存在重叠部分,即重叠程度最高的数据显示区域之间不再存在重叠部分。基于该原则,放大倍数的最小值应当保证在局部放大后,目标数据显示区域原先重叠位置的边缘相切,如果放大倍数小于该最小值,则目标数据显示区域之间仍会存在部分重叠。实际应用中,可以考虑使目标显示区域之间存在一定的间隔余量,因此可以通过权重调整或增加调整系数的方式使计算出的放大倍数适当大于上述最小值。本实施例不对权重值或调整系数的具体数值大小进行限制。The principle for the client to calculate the magnification factor is: in the enlarged local area, there is no overlap between the target data display areas, that is, there is no overlap between the data display areas with the highest degree of overlap. Based on this principle, the minimum value of the magnification factor should ensure that after partial zoom-in, the edges of the original overlapping positions of the target data display areas are tangent. If the magnification factor is smaller than the minimum value, there will still be partial overlap between the target data display areas. In practical applications, it may be considered that there is a certain margin between the target display areas, so the calculated magnification factor may be appropriately greater than the above minimum value by adjusting the weight or increasing the adjustment coefficient. This embodiment does not limit the specific numerical value of the weight value or the adjustment coefficient.

204、按照放大倍数对局部区域进行放大显示,以使得局部区域中的数据显示区域互不重叠。204. Enlarge and display the local area according to the magnification, so that the data display areas in the local area do not overlap each other.

所谓按照放大倍数对局部区域进行放大显示是指,按照放大倍数放大局部区域的尺寸大小以及局部区域中显示的内容。示例性的,对于方形局部区域,可以将局部区域的原边长乘以放大倍数,获得放大后的边长;或者对于圆形局部区域,可以将局部区域的半径乘以放大倍数,获得放大后的半径。The so-called enlarged display of the local area according to the magnification refers to enlarging the size of the local area and the content displayed in the local area according to the magnification. Exemplarily, for a square local area, the original side length of the local area can be multiplied by the magnification factor to obtain the enlarged side length; or for a circular local area, the radius of the local area can be multiplied by the magnification factor to obtain the enlarged side length of the radius.

在对局部区域进行放大后,客户端可以将显示的地图图形切换为放大后的局部区域,使可视界面中仅显示放大后的局部区域;或者,还可以将放大后的局部区域显示在预设的固定位置上,例如界面左上角,不影响用户查看地图图形的剩余部分。After zooming in on the local area, the client can switch the displayed map graphic to the enlarged local area, so that only the enlarged local area is displayed in the visual interface; or, the enlarged local area can also be displayed in the preset The fixed position, such as the upper left corner of the interface, does not affect the user to view the rest of the map graphics.

本实施例提供的显示地图数据的方法,能够根据放大操作指令确定需要放大的局部区域,基于局部区域中重叠程度最高的两个数据显示区域的区域参数计算放大倍数,并按照该放大倍数对局部区域进行放大显示。由于放大倍数是依据重叠程度最高的数据显示区域的区域参数计算的,因此对局部区域放大后能够保证数据显示区域之间没有重叠。与现有技术相比,本实施例无需缩小数据显示区域,因此可以在使用户清楚查看数据内容的前提下彻底解决数据显示区域重叠的问题。The method for displaying map data provided by this embodiment can determine the local area that needs to be enlarged according to the zoom-in operation instruction, calculate the magnification factor based on the area parameters of the two data display areas with the highest overlapping degree in the local area, and adjust the local area according to the magnification factor. area to zoom in. Since the magnification factor is calculated based on the area parameters of the data display area with the highest degree of overlap, no overlap between the data display areas can be ensured after the local area is enlarged. Compared with the prior art, this embodiment does not need to reduce the data display area, so the problem of overlapping data display areas can be completely solved on the premise that the user can clearly view the data content.

进一步的,作为对图2所示方法的细化和扩展,本发明实施例还提供了一种显示地图数据的方法。如图3所示,该方法包括:Further, as a refinement and extension of the method shown in FIG. 2 , the embodiment of the present invention also provides a method for displaying map data. As shown in Figure 3, the method includes:

301、响应于放大操作指令,在地图图形中确定需要放大的局部区域。301. In response to a zoom-in operation instruction, determine a local area that needs to be zoomed-in in a map graphic.

本实施例中,放大操作指令具体可以是点击操作指令。用户通过鼠标(对于触控屏而言也可以使用手指)单击或双击地图图形中的某个位置,触发点击操作指令。客户端对该指令进行响应,获取操作焦点的坐标,然后以该坐标为中心、第一预设尺寸的区域确定为局部区域。预设尺寸由预先写入到客户端中的尺寸参数决定,实际应用中,可以将预设尺寸限制为长4厘米、宽3厘米的矩形区域,或者边长4厘米的方形区域,再或者半径2.5厘米的圆形区域。无论用户点击哪个位置,界面中弹出的局部区域的形状都是一致的。In this embodiment, the zoom-in operation instruction may specifically be a click operation instruction. The user clicks or double-clicks a certain position in the map graphic through the mouse (for the touch screen, a finger can also be used) to trigger the click operation command. The client responds to the instruction, acquires the coordinates of the operation focus, and then determines the area with the first preset size centered on the coordinates as the local area. The preset size is determined by the size parameters pre-written in the client. In practical applications, the preset size can be limited to a rectangular area with a length of 4 cm and a width of 3 cm, or a square area with a side length of 4 cm, or a radius 2.5 cm circular area. No matter which position the user clicks, the shape of the pop-up local area in the interface is consistent.

上述数值仅作示例性说明之用,不作为对本实施例的具体限制。The above numerical values are used for illustrative purposes only, and are not intended as specific limitations to this embodiment.

在本实施例的另一种实现方式中,放大操作指令也可以是拖拽操作指令。用户以地图图形中的某个位置为起点,通过鼠标或者手指向任意一个方向进行拖拽,形成矩形、方形或圆形的区域。客户端获取拖拽操作的起始点坐标和终止点坐标,根据两个坐标的位置以及预设的区域形状确定局部区域的位置和大小。与上述方式不同的是,本方式中,局部区域的大小可以由用户自行设定,拖拽距离越大形成的局部区域的尺寸就越大,本实施例不对拖拽操作形成的局部区域的尺寸大小进行限制。In another implementation manner of this embodiment, the zoom-in operation instruction may also be a drag operation instruction. The user starts from a certain position in the map graphics, and drags in any direction with the mouse or finger to form a rectangular, square or circular area. The client obtains the coordinates of the start point and the end point of the drag operation, and determines the position and size of the local area according to the positions of the two coordinates and the preset area shape. Different from the above method, in this method, the size of the local area can be set by the user. The larger the dragging distance, the larger the size of the local area formed. This embodiment does not set the size of the local area formed by the drag operation. Size is limited.

进一步的,在本实施例的另一种实现方式中,放大操作指令还可以是移动操作指令。客户端监测鼠标光标的位置,以光标所在位置为中心、第二预设尺寸的区域确定为局部区域。所述第二预设尺寸与第一预设尺寸类似,其尺寸也是客户端侧预先确定的,用户无法通过手动操作改变之。第一预设尺寸和第二预设尺寸两者可以相同也可以不同,本实施例对此不作限制。实际应用中,用户在操作鼠标时,鼠标光标处于持续移动的过程中,客户端可以在光标的位置发生变化时基于新的光标位置执行图3所示流程,从用户使用的角度上看,其效果类似于放大镜功能。Further, in another implementation manner of this embodiment, the zoom-in operation instruction may also be a move operation instruction. The client monitors the position of the mouse cursor, and determines an area with a second preset size centered on the position of the cursor as the local area. The second preset size is similar to the first preset size, and its size is also predetermined on the client side, and the user cannot change it through manual operation. Both the first preset size and the second preset size may be the same or different, which is not limited in this embodiment. In practical applications, when the user is operating the mouse, the mouse cursor is in the process of continuous movement, and the client can execute the process shown in Figure 3 based on the new cursor position when the cursor position changes. From the user's point of view, its The effect is similar to the magnifying glass function.

在本实施例的一个示例中,客户端确定出的局部区域如图4中矩形区域所示。In an example of this embodiment, the local area determined by the client is shown as a rectangular area in FIG. 4 .

302、在局部区域中,计算各数据显示区域之间的重叠系数。302. In the local area, calculate an overlap coefficient between each data display area.

本实施例以圆形数据显示区域为例进行说明。在确定局部区域后,客户端计算局部区域遮盖的数据显示区域之间的重叠系数,重叠系数的大小用于表征两个数据显示区域之间重叠程度的高低。具体的,客户端可以按照下述公式计算重叠系数:In this embodiment, a circular data display area is taken as an example for illustration. After determining the partial area, the client calculates the overlap coefficient between the data display areas covered by the partial area, and the overlap coefficient is used to represent the degree of overlap between two data display areas. Specifically, the client can calculate the overlap coefficient according to the following formula:

S=r1+r2-d12 S=r 1 +r 2 -d 12

其中,S为重叠系数,r1和r2分别为两个数据显示区域的半径,d12为两个数据显示区域的圆心距。S的数值越大表示两个数据显示区域重叠的部分越多,即重叠程度越高。Among them, S is the overlap coefficient, r 1 and r 2 are the radii of the two data display areas respectively, and d 12 is the distance between the centers of the two data display areas. The larger the value of S, the more overlapping parts of the two data display areas, that is, the higher the degree of overlap.

在本实施例中,客户端可以对局部区域遮盖的所有数据显示区域进行两两配对,获得个区域对。其中,n为局部区域遮盖的数据显示区域数量,表示从n个数据显示区域中任意抽取一对数据显示区域的所有排列组合的数量。然后客户端根据图2步骤202的实现方式对每一对数据显示区域之间是否存在重叠关系进行检测,将不存在重叠关系的区域对剔除,并通过上述公式对剩余的区域对分别计算重叠系数。In this embodiment, the client can pair all the data display areas covered by the local area in pairs to obtain area pair. Among them, n is the number of data display areas covered by the local area, Indicates the number of all permutations and combinations of a pair of data display areas randomly extracted from n data display areas. Then, according to the implementation of step 202 in Figure 2, the client detects whether there is an overlapping relationship between each pair of data display areas, eliminates the area pairs that do not have an overlapping relationship, and calculates the overlapping coefficients for the remaining area pairs using the above formula .

示例性的,假设局部区域遮盖了4个数据显示区域A、B、C、D。客户端对这4个数据显示区域进行两两配对,获得6个区域配对:“A+B”、“A+C”、“A+D”、“B+C”、“B+D”及“C+D”。客户端将数据显示区域的半径之和小于或等于圆心距的区域对剔除,保留半径之和大于圆心距的区域对。假设客户端保留的区域对为“A+D”、“B+C”、“B+D”及“C+D”。然后客户端分别计算每个区域对的重叠系数,获得对应4个区域对的4个重叠系数。Exemplarily, it is assumed that the local area covers four data display areas A, B, C, and D. The client pairs these 4 data display areas in pairs, and obtains 6 area pairs: "A+B", "A+C", "A+D", "B+C", "B+D" and "C+D". The client side removes the area pairs whose sum of the radii of the data display area is less than or equal to the distance between the centers of the circles, and keeps the area pairs whose sum of the radii is greater than the distance between the centers of the circles. Assume that the zone pairs reserved by the client are "A+D", "B+C", "B+D" and "C+D". Then the client calculates the overlapping coefficients of each region pair separately, and obtains 4 overlapping coefficients corresponding to the 4 region pairs.

进一步的,在本实施例的另一种实现方式中,客户端也可以不对数据显示区域之间是否存在重叠关系进行单独判断,而是直接计算任意两个数据显示区域之间的重叠系数,通过重叠系数的数值特点识别并剔除不存在重叠关系的区域对的重叠系数。具体的:Furthermore, in another implementation of this embodiment, the client may not separately judge whether there is an overlapping relationship between the data display areas, but directly calculate the overlap coefficient between any two data display areas, by The numerical properties of the overlap coefficients identify and eliminate overlap coefficients for pairs of regions that do not have an overlapping relationship. specific:

客户端对局部区域遮盖的所有数据显示区域进行两两配对,获得个区域对。然后客户端通过上述公式对所有的区域对分别计算重叠系数,并将小于或等于0的重叠系数剔除掉。The client pairs all the data display areas covered by the local area in pairs to obtain area pair. Then the client calculates the overlap coefficients for all the area pairs using the above formula, and removes the overlap coefficients that are less than or equal to 0.

示例性的,假设客户端仍获得6个区域配对:“A+B”、“A+C”、“A+D”、“B+C”、“B+D”及“C+D”。客户端分别计算每个区域对的重叠系数,获得对应6个区域对的6个重叠系数:“-1.1”、“0”、“-2”、“3”、“3.4”及“5”。然后客户端将重叠系数“-1.1”、“0”及“-2”剔除,保留重叠系数“3”、“3.4”及“5”。Exemplarily, it is assumed that the client still obtains 6 region pairs: "A+B", "A+C", "A+D", "B+C", "B+D" and "C+D". The client calculates the overlapping coefficients of each region pair separately, and obtains 6 overlapping coefficients corresponding to 6 region pairs: "-1.1", "0", "-2", "3", "3.4" and "5". Then the client removes the overlapping coefficients "-1.1", "0" and "-2", and keeps the overlapping coefficients "3", "3.4" and "5".

303、将重叠系数最大的一对数据显示区域确定为目标数据显示区域。303. Determine a pair of data display areas with the largest overlapping coefficients as target data display areas.

在上述示例中,客户端在保留的重叠系数“3”、“3.4”及“5”中选择重叠系数“5”,将该重叠系数对应的一对数据显示区域确定为目标数据显示区域。In the above example, the client selects the overlap factor "5" among the reserved overlap factors "3", "3.4" and "5", and determines a pair of data display areas corresponding to the overlap factor as the target data display area.

在本实施例的另一种实现方式中,客户端也可以不对小于或等于0的重叠系数进行剔除,而是直接从获得的所有重叠系数中选择最大的重叠系数。In another implementation manner of this embodiment, the client may not eliminate overlapping coefficients less than or equal to 0, but directly select the largest overlapping coefficient from all obtained overlapping coefficients.

304、根据目标数据显示区域的区域参数计算局部区域的放大倍数。304. Calculate the magnification factor of the local area according to the area parameter of the target data display area.

客户端根据下述公式计算放大倍数:The client calculates the magnification factor according to the following formula:

其中,N为放大倍数,rt1和rt2分别为两个目标数据显示区域的半径,dt1t2为两个目标数据显示区域的圆心距。Wherein, N is the magnification factor, r t1 and r t2 are the radii of the two target data display areas respectively, and d t1t2 is the distance between the centers of the two target data display areas.

示例性的,假设两个目标数据显示区域的半径分别为3和4,圆心距为5,那么按照该公式计算出的放大倍数N为1.4。Exemplarily, assuming that the radii of the two target data display areas are 3 and 4 respectively, and the center-to-center distance is 5, then the magnification factor N calculated according to this formula is 1.4.

305、将放大后的局部区域移动到可视界面的中心位置进行显示。305. Move the enlarged local area to the center of the visual interface for display.

客户端按照获得的放大倍数对局部区域进行放大,然后将放大后的局部区域移动到可视界面的中心位置进行显示。在对局部区域进行移动时,可以使局部区域的中心点坐标与可视界面的中心点坐标重合,以保证局部区域位于可视界面的中心位置。如图5所示,可视界面显示放大后的局部区域,不再显示地图图形。The client enlarges the local area according to the obtained magnification factor, and then moves the enlarged local area to the center of the visual interface for display. When moving the local area, the coordinates of the center point of the local area can coincide with the coordinates of the center point of the visual interface, so as to ensure that the local area is located at the center of the visual interface. As shown in Figure 5, the visual interface displays the enlarged local area, and no map graphics are displayed anymore.

306、响应于恢复操作指令,按照放大前的显示方式显示地图图形。306. In response to the restoration operation instruction, display the map graphic in the display mode before zooming in.

进一步的,作为图3所示方法的可选步骤,在对局部区域进行放大显示后,为方便用户查看到原先显示的地图图形,客户端还可以为用户提供界面回退功能。当用户触发恢复操作指令时,客户端对该指令进行响应,显示局部放大前显示的地图图形。Further, as an optional step of the method shown in FIG. 3 , after zooming in and displaying a local area, in order to facilitate the user to view the originally displayed map graphics, the client terminal may also provide the user with an interface rollback function. When the user triggers a recovery operation command, the client responds to the command and displays the map graphics displayed before the partial zoom-in.

实际应用中,用户可以在可视界面中的任何位置上,通过单击、双击、长按、滑动等操作触发恢复操作指令。或者客户端也可以提供专用于触发回退功能的控件,用户通过点击该控件触发恢复操作指令。In practical application, the user can trigger the recovery operation instruction by clicking, double-clicking, long-pressing, sliding and other operations at any position in the visual interface. Alternatively, the client may also provide a control dedicated to triggering the rollback function, and the user triggers a recovery operation instruction by clicking the control.

进一步的,在本实施例的另一种实现方式中,客户端也可以通过减少地图图形中数据显示区域数量的方式,减少或消除区域重叠的问题。客户端为用户提供过滤数据显示区域的功能,用户可以对不希望显示数据内容的地域图形进行选择,或者对希望显示数据内容的地域图形进行选择。客户端只在地图图形中用户希望显示数据内容的地域图形上,显示对应的数据显示区域及数据内容。实际应用中,用户可以直接在地图图形中对地域图形进行点选,或者也可以在客户端提供的下拉列表中对显示或不显示数据内容的地域进行选择,本实施例不对选择地域图形的方式进行具体限制。Furthermore, in another implementation manner of this embodiment, the client may also reduce or eliminate the problem of area overlap by reducing the number of data display areas in the map graphic. The client provides the user with the function of filtering the data display area, and the user can select the geographic graphics that do not want to display data content, or select the geographic graphics that want to display data content. The client terminal only displays the corresponding data display area and data content on the geographical graph where the user wants to display data content in the map graph. In practical application, the user can directly click on the region graph in the map graph, or can also select the region to display or not display the data content in the drop-down list provided by the client. Make specific restrictions.

进一步的,作为对图2或图3所示方法的实现,本发明实施例还提供了一种显示地图数据的装置,该装置可以位于客户端内部,也可以独立于客户端但与客户端之间建立数据交互关系。需要说明的是,本装置实施例与前述方法实施例对应,能够实现前述方法实施例中的全部内容。为便于阅读,本装置实施例仅对前述方法实施例中的内容进行概要性描述,不对方法实施例中的细节内容进行逐一赘述。如图6所示,该装置包括:确定单元61、查找单元62、计算单元63以及显示单元64。其中,Further, as an implementation of the method shown in FIG. 2 or FIG. 3 , an embodiment of the present invention also provides a device for displaying map data. The device can be located inside the client, or can be independent of the client but connected to the client. establish data interactions. It should be noted that this device embodiment corresponds to the foregoing method embodiment, and can realize all the content in the foregoing method embodiment. For ease of reading, this device embodiment only briefly describes the content in the foregoing method embodiments, and does not repeat details in the method embodiments one by one. As shown in FIG. 6 , the device includes: a determination unit 61 , a search unit 62 , a calculation unit 63 and a display unit 64 . in,

确定单元61,用于响应于放大操作指令,在地图图形中确定需要放大的局部区域,地图图形由多个地域图形组成,每个地域图形上对应显示有一个数据显示区域,局部区域至少遮盖两个地域图形的数据显示区域;The determining unit 61 is configured to determine a local area that needs to be enlarged in the map graphic in response to the zoom-in operation instruction. The map graphic is composed of a plurality of regional graphics, each regional graphic is correspondingly displayed with a data display area, and the local area covers at least two The data display area of a geographic graph;

查找单元62,用于在局部区域中查找重叠程度最高的数据显示区域,获得目标数据显示区域;A search unit 62, configured to search for the data display area with the highest overlapping degree in the local area to obtain the target data display area;

计算单元63,用于根据目标数据显示区域的区域参数计算局部区域的放大倍数;A calculation unit 63, configured to calculate the magnification factor of the local area according to the area parameters of the target data display area;

显示单元64,用于按照放大倍数对局部区域进行放大显示,以使得局部区域中的数据显示区域互不重叠。The display unit 64 is configured to enlarge and display the local area according to the magnification, so that the data display areas in the local area do not overlap each other.

进一步的,如图7所示,确定单元61,包括:Further, as shown in FIG. 7, the determining unit 61 includes:

第一确定模块611,用于响应于点击操作指令,以操作焦点为中心、第一预设尺寸的区域确定为局部区域。The first determining module 611 is configured to determine, in response to the click operation instruction, an area centered on the operation focus and having a first preset size as a local area.

进一步的,如图7所示,确定单元61,包括:Further, as shown in FIG. 7, the determining unit 61 includes:

第二确定模块612,用于响应于拖拽操作指令,将拖拽形成的区域确定为局部区域。The second determining module 612 is configured to determine an area formed by dragging as a local area in response to a dragging operation instruction.

进一步的,如图7所示,确定单元61,包括:Further, as shown in FIG. 7, the determining unit 61 includes:

第三确定模块613,用于响应于移动操作指令,以光标所在位置为中心、第二预设尺寸的区域确定为局部区域。The third determining module 613 is configured to determine, in response to the movement operation instruction, an area centered on the position of the cursor and having a second preset size as a local area.

进一步的,如图7所示,查找单元62,包括:Further, as shown in FIG. 7, the search unit 62 includes:

计算模块621,用于当数据显示区域为圆形区域时,在局部区域中,计算各数据显示区域之间的重叠系数,重叠系数的大小用于表征两个数据显示区域之间重叠程度的高低;Calculation module 621, used to calculate the overlap coefficient between each data display area in the local area when the data display area is a circular area, the size of the overlap coefficient is used to represent the degree of overlap between two data display areas ;

确定模块622,用于将重叠系数最大的一对数据显示区域确定为目标数据显示区域。The determining module 622 is configured to determine a pair of data display areas with the largest overlap coefficient as the target data display area.

进一步的,计算模块621,用于按照下述公式计算重叠系数:Further, the calculation module 621 is used to calculate the overlap coefficient according to the following formula:

S=r1+r2-d12 S=r 1 +r 2 -d 12

其中,S为重叠系数,r1和r2分别为两个数据显示区域的半径,d12为两个数据显示区域的圆心距。Among them, S is the overlap coefficient, r 1 and r 2 are the radii of the two data display areas respectively, and d 12 is the distance between the centers of the two data display areas.

进一步的,计算单元63,用于按照下述公式计算放大倍数:Further, the calculation unit 63 is used to calculate the magnification according to the following formula:

其中,N为放大倍数,rt1和rt2分别为两个目标数据显示区域的半径,dt1t2为两个目标数据显示区域的圆心距。Wherein, N is the magnification factor, r t1 and r t2 are the radii of the two target data display areas respectively, and d t1t2 is the distance between the centers of the two target data display areas.

进一步的,显示单元64用于将放大后的局部区域移动到可视界面的中心位置进行显示。Further, the display unit 64 is configured to move the enlarged local area to the center of the visual interface for display.

进一步的,显示单元64用于响应于恢复操作指令,按照放大前的显示方式显示地图图形。Further, the display unit 64 is configured to display the map graphic in the display mode before zooming in in response to the restoration operation instruction.

本实施例提供的显示地图数据的装置,能够根据放大操作指令确定需要放大的局部区域,基于局部区域中重叠程度最高的数据显示区域的区域参数计算放大倍数,并按照该放大倍数对局部区域进行放大显示。由于放大倍数是依据重叠程度最高的数据显示区域的区域参数计算的,因此对局部区域放大后能够保证数据显示区域之间没有重叠。与现有技术相比,本实施例无需缩小数据显示区域,因此可以在使用户清楚查看数据内容的前提下彻底解决数据显示区域重叠的问题。The device for displaying map data provided in this embodiment can determine the local area that needs to be enlarged according to the zoom-in operation instruction, calculate the magnification factor based on the area parameters of the data display area with the highest overlapping degree in the local area, and perform the local region according to the magnification factor. Zoom in on the display. Since the magnification factor is calculated based on the area parameters of the data display area with the highest degree of overlap, no overlap between the data display areas can be ensured after the local area is enlarged. Compared with the prior art, this embodiment does not need to reduce the data display area, so the problem of overlapping data display areas can be completely solved on the premise that the user can clearly view the data content.

所述显示地图数据的装置包括处理器和存储器,上述确定单元61、查找单元62、计算单元63以及显示单元64等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。The device for displaying map data includes a processor and a memory. The above-mentioned determination unit 61, search unit 62, calculation unit 63, and display unit 64 are all stored in the memory as program units, and the above-mentioned program stored in the memory is executed by the processor. unit to achieve the corresponding function.

处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来彻底解决数据显示区域重叠的问题。The processor includes a kernel, and the kernel fetches corresponding program units from the memory. One or more kernels can be set, and the problem of overlapping data display areas can be completely solved by adjusting kernel parameters.

存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flashRAM),存储器包括至少一个存储芯片。Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flashRAM), and memory includes at least one storage chip.

本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序代码:响应于放大操作指令,在地图图形中确定需要放大的局部区域,地图图形由多个地域图形组成,每个地域图形上对应显示有一个数据显示区域,局部区域至少遮盖两个地域图形的数据显示区域;在局部区域中查找重叠程度最高的数据显示区域,获得目标数据显示区域;根据目标数据显示区域的区域参数计算局部区域的放大倍数;按照放大倍数对局部区域进行放大显示,以使得局部区域中的数据显示区域互不重叠。The present application also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program code that is initialized with the following method steps: in response to a zoom-in operation instruction, determine a local area that needs to be zoomed in on a map graphic, and the map The graph is composed of multiple regional graphs, and each regional graph corresponds to a data display area, and the local area covers at least two data display areas of the regional graph; find the data display area with the highest overlapping degree in the partial area to obtain the target data Display area; calculate the magnification factor of the local area according to the area parameters of the target data display area; enlarge and display the local area according to the magnification factor, so that the data display areas in the local area do not overlap each other.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flashRAM)。存储器是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory, such as read only memory (ROM) or flash RAM. The memory is an example of a computer readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims (10)

1. A method of displaying map data, the method comprising:
responding to an amplification operation instruction, determining a local area needing to be amplified in a map graph, wherein the map graph is composed of a plurality of regional graphs, each regional graph is correspondingly displayed with a data display area, and the local area at least covers the data display areas of two regional graphs;
searching a data display area with the highest overlapping degree in the local area to obtain a target data display area;
calculating the magnification of the local area according to the area parameters of the target data display area;
and amplifying and displaying the local area according to the amplification factor so that the data display areas in the local area are not overlapped.
2. The method of claim 1, wherein the determining a local area in the map graphic that needs to be magnified in response to the magnification operation instruction comprises:
and responding to a click operation instruction, and determining an area with an operation focus as a center and a first preset size as the local area.
3. The method of claim 1, wherein the determining a local area in the map graphic that needs to be magnified in response to the magnification operation instruction comprises:
and determining the area formed by dragging as the local area in response to the dragging operation instruction.
4. The method of claim 1, wherein the determining a local area in the map graphic that needs to be magnified in response to the magnification operation instruction comprises:
and responding to the movement operation instruction, and determining an area with a second preset size and the position of the cursor as the center as the local area.
5. The method according to claim 1, wherein the data display area is a circular area, and the searching for the data display area with the highest overlapping degree in the local area to obtain the target data display area comprises:
in the local area, calculating an overlapping coefficient between the data display areas, wherein the overlapping coefficient is used for representing the degree of overlapping between the two data display areas;
and determining a pair of data display areas with the largest overlapping coefficient as target data display areas.
6. The method of claim 5, wherein calculating the overlap factor between the data display regions comprises:
the overlap factor is calculated according to the following formula:
S=r1+r2-d12
wherein S is an overlap coefficient, r1And r2Radii of two data display areas, d, respectively12The center distance of the two data display areas.
7. The method of claim 1, wherein said calculating a magnification of said local region based on region parameters of said target data display region comprises:
the magnification was calculated according to the following formula:
N = ( r t 1 + r t 2 ) d t 1 t 2
wherein N is the magnification factor, rt1And rt2Radii of two target data display areas, d, respectivelyt1t2The center distance of the two target data display areas.
8. The method of claim 1, wherein said magnifying the local area by the magnification comprises:
and moving the enlarged local area to the central position of the visual interface for displaying.
9. The method according to any one of claims 1 to 8, wherein after the magnifying displaying of the partial area by the magnification, the method further comprises:
and responding to the recovery operation instruction, and displaying the map graph in a display mode before zooming.
10. An apparatus for displaying map data, the apparatus comprising:
the map graphic comprises a determining unit, a display unit and a display unit, wherein the determining unit is used for responding to an amplifying operation instruction and determining a local area needing to be amplified in a map graphic, the map graphic consists of a plurality of region graphics, a data display area is correspondingly displayed on each region graphic, and the local area at least covers the data display areas of two region graphics;
the searching unit is used for searching the data display area with the highest overlapping degree in the local area to obtain a target data display area;
the calculation unit is used for calculating the magnification of the local area according to the area parameters of the target data display area;
and the display unit is used for amplifying and displaying the local area according to the amplification factor so as to enable the data display areas in the local area not to be overlapped.
CN201510966941.5A 2015-12-21 2015-12-21 Method and device for displaying map data Expired - Fee Related CN106897321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510966941.5A CN106897321B (en) 2015-12-21 2015-12-21 Method and device for displaying map data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510966941.5A CN106897321B (en) 2015-12-21 2015-12-21 Method and device for displaying map data

Publications (2)

Publication Number Publication Date
CN106897321A true CN106897321A (en) 2017-06-27
CN106897321B CN106897321B (en) 2020-06-05

Family

ID=59191658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510966941.5A Expired - Fee Related CN106897321B (en) 2015-12-21 2015-12-21 Method and device for displaying map data

Country Status (1)

Country Link
CN (1) CN106897321B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107393410A (en) * 2017-06-29 2017-11-24 网易(杭州)网络有限公司 The method of display data, medium, device and computing device on map
CN108305211A (en) * 2017-12-29 2018-07-20 广州都市圈网络科技有限公司 Regulatory control plot information query method, electronic equipment, storage medium and system
CN110019586A (en) * 2017-08-31 2019-07-16 北京嘀嘀无限科技发展有限公司 A kind of method, system and computer installation showing congestion in road point
CN110766996A (en) * 2019-10-14 2020-02-07 广东小天才科技有限公司 Point-to-point content positioning method, device, electronic device and storage medium
CN110866071A (en) * 2018-08-14 2020-03-06 海能达通信股份有限公司 Map object display method, device, equipment and storage medium
CN114035731A (en) * 2021-11-17 2022-02-11 四川长虹教育科技有限公司 Method for locally amplifying software interface

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101210824A (en) * 2006-12-28 2008-07-02 富士通株式会社 Information processing device, information processing method, and information processing program
AU2009236283A1 (en) * 2008-04-18 2009-10-22 Google Inc. Content item placement
CN102237011A (en) * 2010-04-21 2011-11-09 微软公司 Representation of overlapping visual entities
CN103198750A (en) * 2012-01-04 2013-07-10 三星电子株式会社 Method and apparatus for displaying digital map in client
CN104252529A (en) * 2014-09-04 2014-12-31 百度在线网络技术(北京)有限公司 Method and device for loading map annotations
CN105139749A (en) * 2015-08-31 2015-12-09 爱国者电子科技有限公司 Optimization method for air quality information display on network map

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101210824A (en) * 2006-12-28 2008-07-02 富士通株式会社 Information processing device, information processing method, and information processing program
AU2009236283A1 (en) * 2008-04-18 2009-10-22 Google Inc. Content item placement
CN102237011A (en) * 2010-04-21 2011-11-09 微软公司 Representation of overlapping visual entities
CN103198750A (en) * 2012-01-04 2013-07-10 三星电子株式会社 Method and apparatus for displaying digital map in client
CN104252529A (en) * 2014-09-04 2014-12-31 百度在线网络技术(北京)有限公司 Method and device for loading map annotations
CN105139749A (en) * 2015-08-31 2015-12-09 爱国者电子科技有限公司 Optimization method for air quality information display on network map

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107393410A (en) * 2017-06-29 2017-11-24 网易(杭州)网络有限公司 The method of display data, medium, device and computing device on map
CN107393410B (en) * 2017-06-29 2020-01-24 网易(杭州)网络有限公司 Method, medium, apparatus and computing device for presenting data on map
CN110019586A (en) * 2017-08-31 2019-07-16 北京嘀嘀无限科技发展有限公司 A kind of method, system and computer installation showing congestion in road point
CN108305211A (en) * 2017-12-29 2018-07-20 广州都市圈网络科技有限公司 Regulatory control plot information query method, electronic equipment, storage medium and system
CN110866071A (en) * 2018-08-14 2020-03-06 海能达通信股份有限公司 Map object display method, device, equipment and storage medium
CN110866071B (en) * 2018-08-14 2022-08-30 海能达通信股份有限公司 Map object display method, device, equipment and storage medium
CN110766996A (en) * 2019-10-14 2020-02-07 广东小天才科技有限公司 Point-to-point content positioning method, device, electronic device and storage medium
CN110766996B (en) * 2019-10-14 2021-11-19 广东小天才科技有限公司 Click-to-read content positioning method and device, electronic equipment and storage medium
CN114035731A (en) * 2021-11-17 2022-02-11 四川长虹教育科技有限公司 Method for locally amplifying software interface

Also Published As

Publication number Publication date
CN106897321B (en) 2020-06-05

Similar Documents

Publication Publication Date Title
EP2990924B1 (en) Gesture-based on-chart data filtering
CN106897321B (en) Method and device for displaying map data
US10409366B2 (en) Method and apparatus for controlling display of digital content using eye movement
TWI550519B (en) Chart drawing method
TWI606383B (en) Electronic device and page zooming method thereof
CN105164628B (en) Lens touch graphic effects for mobile devices
EP2778880B1 (en) Method for controlling display function and an electronic device thereof
US9395910B2 (en) Invoking zoom on touch-screen devices
WO2018198703A1 (en) Display device
US20150113452A1 (en) Graphical user interface
US10936186B2 (en) Gestures used in a user interface for navigating analytic data
CN103164163A (en) Method and device for display adjustment
JP6630669B2 (en) Adjustment method and adjustment device for widget area
WO2017059734A1 (en) Image zoom in/out method and electronic device
WO2019119799A1 (en) Method for displaying application icon, and terminal device
US20190121492A1 (en) Method for Controlling Display of Touchscreen, and Mobile Device
CN104598121A (en) Picture zooming method and device
US20150074597A1 (en) Separate smoothing filter for pinch-zooming touchscreen gesture response
CN105988700B (en) Terminal screen display method and device
WO2014006727A1 (en) Image display device, image enlargement method, and image enlargement program
EP2791773B1 (en) Remote display area including input lenses each depicting a region of a graphical user interface
KR101251021B1 (en) Methode for adjusting image of touch screen
CN105117011B (en) A kind of method for operating application program, device and intelligent watch
CN117666856A (en) Control methods, devices and equipment for virtual interactive interfaces in extended real space
CN107831976B (en) Message display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200605