Map display method, device, equipment and medium for visualization screen

By reversely determining the zoom attributes of the map container and adjusting the zoom label, a scaling parameter relationship function is generated, and the scaling parameters of the map page are dynamically calculated, which solves the problem of proportional distortion and blur when displaying the map on the visual screen, and achieves clear display of the map and accurate mouse position. accuracy.

CN114816182BActive Publication Date: 2024-09-27ZHAOTONG LIANGFENGTAI INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210277145.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-21
Publication Date
2024-09-27
Estimated Expiration
2042-03-21

AI Technical Summary

Technical Problem

Existing visualization screens are prone to scale distortion and blurring when displaying maps. Especially when using Amap or Baidu Maps, the position and center point will shift when the mouse zooms in or out.

Method used

Set the zoom attribute of the outermost container by obtaining the size of the visualization screen, and reversely determine the zoom attribute of the map container, adjust the zoom label of the map page, generate a relationship function between the zoom parameter of the map page and the zoom attribute of the map container, and dynamically calculate the target Map page zoom parameters to ensure clear display of the map on the visualization screen.

Benefits of technology

It solves the problem of scale distortion and blur when displaying the map, ensuring that the map is clearly displayed on the visualization screen and avoiding the mouse position and center point deviation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816182B
    Figure CN114816182B
Patent Text Reader

Abstract

The present invention provides a map display method, device, equipment and medium for a visualization screen, which relates to the field of data processing technology, and includes: obtaining the size of the visualization screen to set the zoom attribute of an outermost container, and determining the zoom attribute of the map container; adjusting the zoom label of a map page according to the zoom attribute of the map container to obtain the zoom parameter of the map page; setting the initial zoom attribute of the map container to obtain the zoom reference value and floating coefficient of the map page; scaling the outermost container multiple times to generate a relationship function between the zoom parameter of the map page and the zoom attribute of the map container; obtaining the display parameter of the map page, calculating the zoom attribute of the target outermost container, and dynamically calculating the zoom parameter of the target map page based on the zoom attribute of the target outermost container according to the relationship function, so as to display the map on the visualization screen, and solve the problem of scale distortion and blur when displaying the map on the existing visualization screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a map display method, device, equipment and medium for a visualization screen. Background Art

[0002] Visualization screen is a very effective data visualization tool. It can display key indicators of the business in a visual way on one or more display screens, which not only enables business personnel to quickly and directly find important data from complex business data, but also assists decision makers. GIS: Geographic Information System (Geographic Information System or Geo-Information system, GIS), sometimes called "geographic information system" or "resource and environmental information system". It is a specific and very important spatial information system. It describes any information system that integrates, stores, edits, analyzes, shares and displays geographic information.

[0003] In the field of visualization screens, especially when applied to smart transportation and smart city data display, it is often necessary to display not only some data charts, but also some GIS information through maps. However, in the current visualization screen adaptation scheme, the scaling attribute is basically used in the outermost container to affect the scaling of all internal elements. However, if the project needs to use Amap or Baidu Map, this adaptation scheme will cause the map scale to be distorted. At the same time, when the mouse is zoomed in and out on the map, there will be a large offset between the mouse position and the center point. Summary of the invention

[0004] In order to overcome the above technical defects, the purpose of the present invention is to provide a map display method, device, equipment and medium for a visualization screen to solve the problem of scale distortion and blur when displaying maps on existing visualization screens.

[0005] The present invention discloses a map display method for a visualization screen, comprising:

[0006] Get the size of the visualization screen to set the scaling property of the outermost container, and inversely determine the scaling property of the map container;

[0007] Adjusting the zoom tag of the map page according to the zoom attribute of the map container to obtain the zoom parameter of the map page;

[0008] Setting the initial zoom attribute of the map container, and obtaining the zoom reference value and floating coefficient of the map page;

[0009] The outermost container is scaled multiple times, and the scaling parameters of the map page are obtained synchronously, and a scaling property relationship function between the scaling parameters of the map page and the map container is generated according to the scaling reference value and floating coefficient of the map page;

[0010] The display parameters of the map page are obtained, the zoom attribute of the target outermost container is calculated, and the zoom parameter of the target map page is dynamically calculated based on the zoom attribute of the target outermost container according to the relationship function to display the map on the visualization screen.

[0011] Preferably, the relationship function between the zoom parameter of the map page and the zoom attribute of the map container is:

[0012] X=μ-(a-1)×θ

[0013] Among them, X is the zoom parameter of the map page; μ is the zoom reference value of the map page; θ is the floating coefficient; a is the larger value of the length or width zoom ratio in the zoom attribute of the map container.

[0014] Preferably, after setting the initial zoom attribute of the map container and before obtaining the zoom reference value and floating coefficient of the map page, the method further includes:

[0015] The map page is zoomed and adjusted, and the zoom label of the map page is simultaneously updated.

[0016] Preferably, the initial scaling property of the map container is set to enable the length and width of the map container to scale in equal proportion.

[0017] Preferably, the setZoom interface is called when adjusting the zoom tag of the map page.

[0018] The present invention also provides a map display device for a visualization screen, comprising:

[0019] A first calculation module is used to obtain the size of the visualization screen to set a scaling property of the outermost container, and reversely determine the scaling property of the map container;

[0020] A second calculation module, used for adjusting the zoom tag of the map page according to the zoom attribute of the map container to obtain the zoom parameter of the map page;

[0021] A parameter determination module, used to set the initial zoom attribute of the map container and obtain the zoom reference value and floating coefficient of the map page;

[0022] A processing module, used for scaling the outermost container multiple times and synchronously obtaining the scaling parameters of the map page, and generating a scaling attribute relationship function between the scaling parameters of the map page and the map container according to the scaling reference value and floating coefficient of the map page;

[0023] The execution module obtains the display parameters of the map page, calculates the zoom attribute of the target outermost container, and dynamically calculates the zoom parameter of the target map page based on the zoom attribute of the target outermost container according to the relationship function to display the map on the visualization screen.

[0024] Preferably, under the processing module, the relationship function between the zoom parameter of the generated map page and the zoom attribute of the map container is:

[0025] X=μ-(a-1)×θ

[0026] Wherein, X is the zoom parameter of the map page; μ is the zoom reference value of the map page; θ is the floating coefficient; and a is the larger value of the length or width zoom ratio in the zoom attribute of the map container.

[0027] Preferably, it also includes:

[0028] The adjustment module is used to adjust the zoom of the map page after setting the initial zoom attribute of the map container and before obtaining the zoom reference value and floating coefficient of the map page, and synchronously update the zoom label of the map page.

[0029] The present invention also discloses a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and is characterized in that the steps of the map display method are implemented when the processor of the computer device executes the computer program.

[0030] The present invention also discloses a computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the map display method are implemented.

[0031] Compared with the prior art, the above technical solution has the following beneficial effects:

[0032] In this scheme, the corresponding relationship between the zoom attribute of the map container and the zoom attribute of the outermost container of the visualization screen is first determined, and the map page is scaled according to the zoom attribute of the map container to obtain the corresponding zoom parameters of the map page, and according to the zoom reference value and floating coefficient of the map page according to the preset initial zoom attribute of the map container, and then the zoom attribute of the outermost container is adjusted multiple times to generate a relationship function between the zoom parameter of the map page and the zoom attribute of the map container under the determined zoom reference value and floating coefficient, and finally the zoom parameter of the map page is calculated according to the visualization screen size and the display parameters of the map page, so that the map is displayed clearly and in normal proportion on the visualization screen, solving the problem of distorted proportion and blur when displaying maps on the existing visualization screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is a flow chart of Embodiment 1 of the method for displaying a visualized screen map according to the present invention;

[0034] Figure 2 A flowchart for reflecting the positional relationship between the outermost container and the map container in the first embodiment of the method for displaying a map on a visual screen according to the present invention;

[0035] Figure 3 This is a schematic diagram of program modules of Embodiment 2 of the visual screen map display device of the present invention;

[0036] Figure 4 Schematic diagram of the hardware structure of the computer device in the third embodiment of the computer device of the present invention.

[0037] Reference numerals: 6 - map display device of visualization screen; 61 - first calculation module; 62 - second calculation module; 63 - parameter determination module; 64 - processing module; 65 - execution module DETAILED DESCRIPTION

[0038] The advantages of the present invention are further described below in conjunction with the accompanying drawings and specific embodiments.

[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0040] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0041] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0042] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0043] In the description of the present invention, unless otherwise specified and limited, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a mechanical connection or an electrical connection, or it can be the internal connection between two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.

[0044] In the following description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module" and "component" can be used interchangeably.

[0045] Embodiment 1: This embodiment provides a map display method for a visualization screen, which is used to adapt the map to the visualization screen. Figure 1 and Figure 2 The outermost container is a visualization screen, and other icon components are required for map page display. Other components are set according to the actual usage scenario. Specifically, the method includes the following steps:

[0046] S100: Acquire the size of the visualization screen to set a scaling property of the outermost container, and reversely determine the scaling property of the map container;

[0047] Specifically, the scaling property of the outermost container is set to be opposite to the scaling property of the map container, mainly to make the map maintain its initial size without being affected by the outermost container, so as to reduce the blurring of the map caused by zooming again. As an example and not a limitation, assume that the scaling property value of the outermost container is obtained as transform:scale(1,0.5) according to the size of the visualization screen, which means that the overall width of the map remains unchanged and the height is halved when it is displayed on the visualization screen. Add the property transform:scale(1,2) to the map container to reversely zoom in on the map, so that its width remains unchanged and its height is doubled.

[0048] S200: adjusting the zoom tag of the map page according to the zoom attribute of the map container to obtain the zoom parameter of the map page;

[0049] In the above steps, the zoom tag is a setZoom tag. As an example but not a limitation, the zoom tag is set to Figure 2 .0 version as an example, it provides developers with the zoom attribute to set the zoom ratio or zoom ratio of the map through the setZoom tag. The Zoom attribute is a proprietary attribute of the IE browser, that is, the map page where the map page is located, which can set or retrieve the zoom ratio of the object. Therefore, the setZoom interface is called when adjusting the zoom tag of the map page.

[0050] S300: setting the initial zoom attribute of the map container, and obtaining the zoom reference value and floating coefficient of the map page;

[0051] Specifically, the initial zoom attribute of the map container is set to make the length and width of the map container scale in equal proportion. That is, the zoom ratio is 1:1. For example, in the above example, if the maximum size of the map is 1920*1080, the initial zoom attribute is transform:scale(1,1). The zoom parameter of the map page at this time can be obtained through the getZoom method provided by Amap, which is the base value of the map page, which is 11.2. At the same time, getZoom can also be used to directly obtain the floating coefficient 1.1.

[0052] S400: scaling the outermost container multiple times, and synchronously obtaining the scaling parameters of the map page, and generating a scaling attribute relationship function between the scaling parameters of the map page and the map container according to the scaling reference value and floating coefficient of the map page;

[0053] Specifically, the outermost container can be scaled multiple times. The developer debugging tool of the browser where the map page is located can be used to operate the outermost container. Set the attribute value of the map container to transform:scale(1,2). At this time, call the setZoom tag to scale, and get the zoom parameter of the map page at this time as 10.1 according to getZoom. You can also select other zoom ratios to scale the outermost container multiple times. For the convenience of calculation, the zoom attribute is transformed:scale(1,0.25), and the zoom attribute of the map container is synchronized to transform:scale(1,4). At this time, the zoom parameter of the map page is about 7.89. In order to calculate more accurately, you can continue to adjust the ratio to obtain more zoom parameters.

[0054] For the sake of clarity, the following table is used as an example:

[0055]

[0056]

[0057] Based on the zoom attribute of the map container and the zoom parameter of the map page in the above table, a functional relationship between the two can be deduced: X = 11.2-(a-1) × 1.1, where 11.2 is the zoom base value of the map page, a is the maximum value of the length and width in the zoom attribute scale(1,1) of the map container, 1 is the base zoom ratio, 1.1 is the floating coefficient, and X is the zoom parameter of the map page, where the zoom base value and floating coefficient of the map page can be adaptively changed according to different map pages and different visualization screens.

[0058] Based on the above, the relationship function between the zoom parameter of the map page and the zoom attribute of the map container can be obtained as follows:

[0059] X=μ-(a-1)×θ

[0060] Among them, X is the zoom parameter of the map page; μ is the zoom reference value of the map page; θ is the floating coefficient; a is the larger value of the length or width zoom ratio in the zoom attribute of the map container.

[0061] In this embodiment, based on the above-mentioned multiple scaling of the outermost container, the relationship function between the scaling parameters of any map page and the scaling properties of the map container during the visualization screen display process is obtained, and the scaling properties of the outermost container can be calculated according to the visualization screen size and the display parameters of the map page, and then the scaling properties of the map container are determined, and finally the scaling parameters of the map page are obtained, and the map page is scaled so that the map is displayed clearly and in normal proportion on the visualization screen.

[0062] Furthermore, in the present embodiment, the above-mentioned use of the setZoom tag to modify the zoom attribute of the map container, in order to further improve the accuracy of obtaining the zoom reference value and the floating coefficient, after setting the initial zoom attribute of the map container and before obtaining the zoom reference value and the floating coefficient of the map page, it also includes: adjusting the zoom of the map page and synchronously updating the zoom tag of the map page. The zoom adjustment can be a manual adjustment or a command can be set to keep the initial zoom attribute of the map container at 1:1, thereby reducing the problem of poor adaptation effect caused by errors.

[0063] S500: Acquire display parameters of a map page, calculate the zoom attribute of a target outermost container, and dynamically calculate the zoom parameter of a target map page based on the zoom attribute of the target outermost container according to the relationship function, so as to display the map on a visualization screen.

[0064] In the above steps, as mentioned above, after obtaining the display parameters of the map page, the length and width zoom ratio (i.e., the ratio of the visual screen size to the map size in length and width, respectively) can be calculated according to the size of the visualization screen. The zoom ratio is the zoom attribute of the outermost container, and the zoom attribute of the map container is calculated in reverse. Finally, the zoom parameter of the target map page is calculated according to the above relationship function. After the map is zoomed according to the zoom parameter of the target map page, it is displayed on the visualization screen to achieve a synchronous zoom adaptation effect. By setting the zoom parameters of the map page separately, compared with the conventional visualization screen that directly sets the zoom ratio based on the size, this embodiment can solve the problem of map distortion and large center point focus offset.

[0065] Embodiment 2: This embodiment provides a map display device 6 for a visualization screen, comprising:

[0066] A first calculation module 61 is used to obtain the size of the visualization screen, set the scaling property of an outermost container, and reversely determine the scaling property of the map container;

[0067] It should be emphasized that the scaling properties of the outermost container are set to be opposite to the scaling properties of the map container. This is mainly to ensure that the map maintains its initial size and is not affected by the outermost container.

[0068] A second calculation module 62 is used to adjust the zoom tag of the map page according to the zoom attribute of the map container to obtain the zoom parameter of the map page;

[0069] Specifically, the zoom tag of the map page is adjusted using the setZoom tag. When adjusting the zoom tag of the map page, the setZoom interface is directly called.

[0070] The parameter determination module 63 is used to set the initial zoom attribute of the map container and obtain the zoom reference value and floating coefficient of the map page; specifically, the initial zoom attribute of the map container is set to make the length and width of the map container scale proportionally.

[0071] Specifically, the initial zoom ratio is set to 1:1, and the getZoom interface can be used to obtain the zoom base value and floating coefficient of the map page at this time.

[0072] The processing module 64 is used to perform multiple zooming on the outermost container and synchronously obtain the zoom parameters of the map page, and generate a zoom attribute relationship function between the zoom parameters of the map page and the map container according to the zoom reference value and floating coefficient of the map page;

[0073] Specifically, under the processing module, the relationship function between the zoom parameter of the generated map page and the zoom attribute of the map container is:

[0074] X=μ-(a-1)×θ

[0075] Wherein, X is the zoom parameter of the map page; μ is the zoom reference value of the map page; θ is the floating coefficient; and a is the larger value of the length or width zoom ratio in the zoom attribute of the map container.

[0076] The execution module 65 is used to obtain the display parameters of the map page, calculate the zoom attribute of the target outermost container, and dynamically calculate the zoom parameter of the target map page based on the zoom attribute of the target outermost container according to the relationship function to display the map on the visualization screen.

[0077] Specifically, after obtaining the display parameters of the map page, the length and width zoom ratio can be calculated according to the size of the visualization screen. The zoom ratio is the zoom property of the outermost container, and the zoom property of the map container is calculated accordingly. Finally, the zoom parameters of the target map page are obtained according to the relationship function. After the map is zoomed, it is displayed on the visualization screen.

[0078] Specifically, the map display device further includes:

[0079] The adjustment module 66 is used to adjust the zoom of the map page after setting the initial zoom attribute of the map container and before obtaining the zoom reference value and floating coefficient of the map page, and synchronously update the zoom label of the map page. It is used to further improve the accuracy of the obtained zoom reference value and floating coefficient, so that the initial zoom attribute of the map container is accurately maintained at 1:1 after adjustment, thereby reducing the problem of poor adaptation effect caused by errors.

[0080] In the above implementation, the first calculation module 61 is used to determine and calculate the corresponding relationship between the zoom attribute of the map container and the zoom attribute of the outermost container, and then the second calculation module 62 is used to determine the zoom parameter of the map page corresponding to the zoom attribute of the set outermost container by scaling the map page. The parameter determination module 63 determines the zoom reference value and floating coefficient of the map page according to the preset initial zoom attribute of the map container. The processing module 64 is then used to adjust the zoom attribute of the outermost container and generate a relationship function between the zoom parameter of the map page and the zoom attribute, zoom reference value, and floating coefficient of the map container. Finally, the execution module 65 can calculate the zoom attribute of the outermost container according to the visualization screen size and the display parameters of the map page, and then determine the zoom attribute of the map container, and finally obtain the zoom parameter of the map page, and scale the map page so that the map is displayed clearly and in normal proportion on the visualization screen, solving the problem of distorted proportion and blur when displaying maps on the existing visualization screen. Furthermore, in order to avoid errors caused by the zoom reference value and the floating coefficient in this process, the adjustment module 66 can be used to adjust the map page after setting the initial zoom attribute of the map container during the calculation of the zoom reference value and the floating coefficient of the map page, so as to further improve the adaptation rate between the map and the visualization screen.

[0081] Embodiment three:

[0082] To achieve the above object, the present invention also provides a computer device 7, such as Figure 4 As shown, the computer device may be a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that executes the program. The computer device of this embodiment includes at least but is not limited to: a memory 71 and a processor 72 that can be interconnected through a system bus, such as Figure 4 It should be pointed out that Figure 4 Only a computer device with components is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0083] In this embodiment, the memory 71 includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 71 can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 71 can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 71 can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory 71 is generally used to store the operating system and various application software installed on the computer device, such as the program code and map page of the map display method of the visualization screen of the first embodiment. In addition, the memory 71 can also be used to temporarily store various types of data that have been output or are to be output.

[0084] The processor 72 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 72 is generally used to control the overall operation of the computer device. In this embodiment, the processor 72 is used to run the program code stored in the memory 71 or process data, such as running the map display device 6 of the visualization screen to implement the map display method of the visualization screen of the first embodiment.

[0085] Embodiment 4:

[0086] To achieve the above purpose, the present invention also provides a computer-readable storage system, which includes multiple storage media, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, App application store, etc., on which a computer program is stored, and the program realizes the corresponding function when executed by the processor 72. The computer-readable storage medium of this embodiment is used to store data storage query device, and when executed by the processor 72, the map display method of the visualization screen of the first embodiment is realized.

[0087] It should be noted that the embodiments of the present invention have better practicability and do not impose any form of limitation on the present invention. Any technician familiar with the field may use the technical content disclosed above to change or modify it into an equivalent effective embodiment. However, any modification or equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

[0088] It should be noted that the embodiments of the present invention have better practicability and do not impose any form of limitation on the present invention. Any technician familiar with the field may use the technical content disclosed above to change or modify it into an equivalent effective embodiment. However, any modification or equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A map display method for a visualization screen, characterized in that: include: Get the size of the visualization screen to set the scaling property of the outermost container, and inversely determine the scaling property of the map container; Adjusting the zoom tag of the map page according to the zoom attribute of the map container to obtain the zoom parameter of the map page; Setting the initial zoom attribute of the map container, and obtaining the zoom reference value and floating coefficient of the map page; The outermost container is scaled multiple times, and the scaling parameters of the map page are obtained synchronously, and a relationship function between the scaling parameters of the map page and the scaling attributes of the map container is generated according to the scaling reference value and floating coefficient of the map page; the display parameters of the map page are obtained, the scaling attributes of the target outermost container are calculated, and the scaling parameters of the target map page are dynamically calculated based on the scaling attributes of the target outermost container according to the relationship function, so as to display the map on a visualization screen; The relationship function between the zoom parameter of the map page and the zoom attribute of the map container is: X=μ-(a-1)×θ Among them, X is the zoom parameter of the map page; μ is the zoom reference value of the map page; θ is the floating coefficient; a is the larger value of the length or width zoom ratio in the zoom attribute of the map container.

2. The map display method according to claim 1, characterized in that: After setting the initial zoom attribute of the map container and before obtaining the zoom reference value and floating coefficient of the map page, the method further includes: The map page is zoomed and adjusted, and the zoom label of the map page is simultaneously updated.

3. The map display method according to claim 1, characterized in that: The initial scaling property of the map container is set to make the length and width of the map container scale in equal proportion.

4. The map display method according to claim 1, characterized in that: The setZoom interface is called when adjusting the zoom tag of the map page.

5. A map display device for a visualization screen, characterized in that: include: A first calculation module is used to obtain the size of the visualization screen to set a scaling property of the outermost container, and reversely determine the scaling property of the map container; A second calculation module, used for adjusting the zoom tag of the map page according to the zoom attribute of the map container to obtain the zoom parameter of the map page; A parameter determination module, used to set the initial zoom attribute of the map container and obtain the zoom reference value and floating coefficient of the map page; A processing module, used for scaling the outermost container multiple times and synchronously obtaining the scaling parameters of the map page, and generating a scaling attribute relationship function between the scaling parameters of the map page and the map container according to the scaling reference value and floating coefficient of the map page; Under the processing module, the relationship function between the zoom parameter of the generated map page and the zoom attribute of the map container is: X=μ-(a-1)×θ Wherein, X is the zoom parameter of the map page; μ is the zoom reference value of the map page; θ is the floating coefficient; a is the larger value of the length or width zoom ratio in the zoom attribute of the map container; The execution module is used to obtain the display parameters of the map page, calculate the zoom attribute of the target outermost container, and dynamically calculate the zoom parameter of the target map page based on the zoom attribute of the target outermost container according to the relationship function to display the map on the visualization screen.

6. The map display device according to claim 5, characterized in that: Also includes: The adjustment module is used to adjust the zoom of the map page after setting the initial zoom attribute of the map container and before obtaining the zoom reference value and floating coefficient of the map page, and synchronously update the zoom label of the map page.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor of the computer device executes the computer program, the steps of the map display method according to any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the map display method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Method for carrying out data analysis by combining map

    CN102819671A

  • Thermodynamic diagram visualization method and system and computer equipment

    CN112965650A

  • Map generation method and map generation device

    CN113393554A

  • Map marking method and device thereof, terminal and storage medium

    CN113986094A

  • Web page adaptive layout method, server and computer-readable storage medium

    WO2021068331A1