CN114816182A - Map display method, device, equipment and medium for visual screen - Google Patents

Map display method, device, equipment and medium for visual screen Download PDF

Info

Publication number
CN114816182A
CN114816182A CN202210277145.0A CN202210277145A CN114816182A CN 114816182 A CN114816182 A CN 114816182A CN 202210277145 A CN202210277145 A CN 202210277145A CN 114816182 A CN114816182 A CN 114816182A
Authority
CN
China
Prior art keywords
map
zooming
container
attribute
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210277145.0A
Other languages
Chinese (zh)
Inventor
杨超
吴斌
王迅
秦绍阳
马涵
耿昌彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhaotong Liangfengtai Information Technology Co ltd
Original Assignee
Zhaotong Liangfengtai Information 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 Zhaotong Liangfengtai Information Technology Co ltd filed Critical Zhaotong Liangfengtai Information Technology Co ltd
Priority to CN202210277145.0A priority Critical patent/CN114816182A/en
Publication of CN114816182A publication Critical patent/CN114816182A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Algebra (AREA)
  • Computational Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Instructional Devices (AREA)

Abstract

The invention provides a map display method, a map display device, map display equipment and a map display medium for a visual screen, which relate to the technical field of data processing and comprise the following steps: acquiring the size of a visual screen, setting the zooming attribute of an outermost container, and determining the zooming attribute of a map container; adjusting a zooming label of a map page according to the zooming attribute of the map container to obtain zooming parameters of the map page; setting an initial zooming attribute of a map container, and obtaining a zooming reference value and a floating coefficient of a map page; zooming the outermost container for multiple times to generate a zooming attribute relation function of the zooming parameters of the map page and the map container; the method comprises the steps of obtaining display parameters of a map page, calculating the zooming attribute of a target outermost container, and dynamically calculating the zooming parameter of the target map page based on the zooming attribute of the target outermost container according to a relation function so as to display the map on a visual screen, and the problems of scale distortion and fuzziness when the map is displayed on the existing visual screen are solved.

Description

Map display method, device, equipment and medium for visual screen
Technical Field
The invention relates to the technical field of data processing, in particular to a map display method, device, equipment and medium of a visual screen.
Background
The visualization screen is a very effective data visualization tool, and can display the key indexes of the business on one or more display screens in a visualization mode, so that business personnel can quickly and directly find important data from complex business data, and a decision maker can be assisted. And GIS: namely, Geographic Information Systems (GIS), also sometimes referred to as "Geographic Information systems" or "resource and environment Information systems". It is a specific and very important spatial information system. Any information system that integrates, stores, compiles, analyzes, shares, and displays geographic information is described.
In the field of visual screens, especially when the data display device is applied to data display of smart traffic and smart cities, a plurality of data charts are displayed, and GIS information is displayed through a map. However, in the existing visual screen adaptation scheme, all elements inside the outermost container are basically scaled by adopting the scaling attribute, but if the item needs to use a high-resolution map or a Baidu map, the adaptation scheme can cause map scaling distortion, and meanwhile, when a mouse is displayed on the map in a zooming-in and zooming-out mode, the mouse position and the center point can have large offset.
Disclosure of Invention
In order to overcome the technical defects, the invention aims to provide a map display method, a map display device, map display equipment and a map display medium for a visual screen, which solve the problems of scale distortion and fuzziness when the map is displayed on the existing visual screen.
The invention discloses a map display method of a visual screen, which comprises the following steps:
acquiring the size of a visual screen, setting the zooming attribute of an outermost container, and reversely determining the zooming attribute of a map container;
adjusting a zooming label of the map page according to the zooming attribute of the map container to obtain zooming parameters of the map page;
setting an initial zooming attribute of a map container, and obtaining a zooming reference value and a floating coefficient of the map page;
zooming the outermost container for multiple times, synchronously obtaining zooming parameters of the map page, and generating a zooming attribute relation function of the zooming parameters of the map page and the map container according to the zooming reference value and the floating coefficient of the map page;
obtaining display parameters of a map page, calculating the zooming attribute of the target outermost container, and dynamically calculating the zooming parameter of the target map page based on the zooming attribute of the target outermost container according to the relation function so as to display the map on a visual screen.
Preferably, the zoom attribute relation function between the zoom parameter of the map page and the map container is as follows:
X=μ-(a-1)×θ
wherein X is a zooming parameter of a map page; mu is a zoom reference value of the map page; theta is a floating coefficient; a is the greater of the length or width scale in the map container zoom attribute.
Preferably, 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, the method further comprises:
and carrying out zoom adjustment on the map page, and synchronously updating the zoom tag of the map page.
Preferably, the initial zoom attribute of the map container is set such that the map container is zoomed in equal ratio to the length and the width of the map container.
Preferably, the setZoom interface is invoked when the zoom tab of the map page is adjusted.
The invention also provides a map display device of the visual screen, which comprises:
the first calculation module is used for acquiring the scaling attribute of an outermost container set by the size of a visual screen and reversely determining the scaling attribute of a map container;
the second calculation module is used for adjusting the zooming label of the map page according to the zooming attribute of the map container to obtain the zooming parameter of the map page;
the parameter determining module is used for setting an initial zooming attribute of the map container and obtaining a zooming reference value and a floating coefficient of the map page;
the processing module is used for zooming the outermost container for multiple times, synchronously obtaining the zooming parameters of the map page, and generating the zooming attribute relation function of the zooming parameters of the map page and the map container according to the zooming reference value and the floating coefficient of the map page;
and the execution module is used for acquiring the display parameters of the map page, calculating the scaling attribute of the target outermost container, and dynamically calculating the scaling parameters of the target map page according to the relation function based on the scaling attribute of the target outermost container so as to display the map on the visual screen.
Preferably, under the processing module, the generated scaling parameter of the map page and the scaling attribute relation function of the map container are as follows:
X=μ-(a-1)×θ
wherein X is a zooming parameter of a map page; mu is a zoom reference value of the map page; theta is a floating coefficient; a is the greater of the length or width scaling in the map container's scaling attributes.
Preferably, the method further comprises the following steps:
and the adjusting module is used for carrying out zoom adjustment on the map page and synchronously updating the zoom label of the map page 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.
The invention also discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that: the steps of the map presentation method are implemented when the processor of the computer device executes the computer program.
The present invention also discloses a computer-readable storage medium having stored thereon a computer program characterized in that: the computer program realizes the steps of the map presentation method when executed by a processor.
After the technical scheme is adopted, compared with the prior art, the method has the following beneficial effects:
in the scheme, the corresponding relation between the zooming attribute of the map container and the zooming attribute of the outermost container of the visual screen is determined firstly, zooming the map page according to the zooming attribute of the map container to obtain the zooming parameter of the corresponding map page, and according to the preset initial zooming attribute of the map container, according to the zooming reference value and the floating coefficient of the map page, then, the zooming attribute of the outermost container is adjusted for a plurality of times to generate a relation function of the zooming parameter of the map page and the zooming attribute of the map container under the determined zooming reference value and the floating coefficient, finally, the zooming parameter of the map page is calculated according to the size of the visual screen and the display parameter of the map page, the map is displayed on the visual screen clearly and in a normal proportion, and the problems of scale distortion and fuzziness when the map is displayed on the existing visual screen are solved.
Drawings
FIG. 1 is a flowchart of a first embodiment of a method for displaying a visual screenshot map according to the present invention;
FIG. 2 is a flowchart for showing a positional relationship between an outermost container and a map container according to a first embodiment of a map displaying method on a visual screen of the present invention;
FIG. 3 is a schematic diagram of program modules of a second embodiment of a map display apparatus according to the present invention;
fig. 4 is a schematic diagram of a hardware structure of a computer device according to a third embodiment of the present invention.
Reference numerals: 6-map presentation means of the visual screen; 61-a first calculation module; 62-a second calculation module; 63-a parameter determination module; 64-a processing module; 65-execution module
Detailed Description
The advantages of the invention are further illustrated in the following description of specific embodiments in conjunction with the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the description of the present invention, it is to be understood that the terms "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, and are merely for convenience of description and simplicity of description, but do not indicate or imply that the device or element referred to must have a particular orientation, be constructed in a particular orientation, and be operated, and thus, are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise specified and limited, it is to be noted that the terms "mounted," "connected," and "connected" are to be interpreted broadly, and may be, for example, a mechanical connection or an electrical connection, a communication between two elements, a direct connection, or an indirect connection via an intermediate medium, and specific meanings of the terms may be understood by those skilled in the art according to specific situations.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The first embodiment is as follows: the embodiment provides a map display method of a visual screen, which is used for enabling a map to be matched with the visual screen, and referring to fig. 1 and fig. 2, an outermost container is the visual screen, other icon components are needed for displaying a map page, and according to actual use scene setting, the method specifically comprises the following steps:
s100: acquiring the size of a visual screen, setting the zooming attribute of an outermost container, and reversely determining the zooming attribute of a map container;
specifically, the zoom attribute of the outermost container and the zoom attribute of the map container are set to be opposite, and the zoom attribute is mainly used for keeping the original size of the map and preventing the map from being influenced by the outermost container, so that map blurring caused by zooming in the second process is reduced. By way of example and not limitation, assume that the outermost container scaling attribute value obtained according to the size of the visualization screen is transform: scale (1,0.5), which represents that the overall width of the map is unchanged and the height is reduced by one time when the map is displayed on the visualization screen. Scale (1,2) is added to the map container, so that the map is reversely magnified, the width of the map is unchanged, and the height of the map is magnified by 2 times.
S200: adjusting a zooming label of a map page according to the zooming attribute of the map container to obtain zooming parameters of the map page;
in the above steps, the Zoom tag is a setZoom tag, and by way of example and not limitation, taking the version 2.0 of the grand map as an example, a Zoom attribute for setting a Zoom-out or Zoom-in scale of the map by a developer through the setZoom tag is provided, where the Zoom attribute is a proprietary attribute of the IE browser, that is, a map page where the map page is located, and it can set or retrieve the Zoom scale of an object. Therefore, the setZoom interface is called when the zoom tab of the map page is adjusted.
S300: setting an initial zooming attribute of a map container, and obtaining a zooming reference value and a floating coefficient of the map page;
specifically, the initial zoom attribute of the map container is set such that the map container is zoomed in length and width in equal proportion. That is, the zoom scale is 1:1, as in the foregoing example, 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 by the getZoom method provided by the grand map, that is, the reference value of the map page is 11.2, and meanwhile, the floating coefficient 1.1 can also be directly obtained by the getZoom.
S400: zooming the outermost container for multiple times, synchronously obtaining zooming parameters of the map page, and generating a zooming attribute relation function of the zooming parameters of the map page and the map container according to the zooming reference value and the floating coefficient of the map page;
specifically, the outermost container is zoomed for multiple times, the outermost container can be operated through a developer debugging tool of a browser where the map page is located, the attribute value of the map container is set to transform: scale (1,2), the setZoom tag is called to zoom at the moment, and the zoom parameter of the map page at the moment is obtained to be 10.1 according to the getZoom. Other scaling ratios can be selected to scale the outermost container multiple times, so that for convenience of calculation, the scaling attribute is transform: scale (1,0.25), and the scaling attribute of the map container is synchronized to transform: scale (1,4), and the scaling parameter of the acquired map page is about 7.89. For more accurate calculation, the scale may be continuously adjusted to obtain more scaling parameters.
For clarity, the following table is given as an example:
Figure RE-GDA0003722712410000051
Figure RE-GDA0003722712410000061
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 derived, where X is 11.2- (a-1) × 1.1, where 11.2 is the zoom reference 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 reference zoom scale, 1.1 is the floating coefficient, and X is the zoom parameter of the map page, where the zoom reference value and the floating coefficient of the map page can be adaptively changed according to different map pages and different visualization screens.
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:
X=μ-(a-1)×θ
wherein X is a zooming parameter of a map page; mu is a zoom reference value of the map page; theta is a floating coefficient; a is the greater of the length or width scale in the map container scale attribute.
In this embodiment, the scaling of the outermost container is performed multiple times, and a relationship function between the scaling parameter of any map page and the scaling attribute of the map container in the display process of the visual screen is obtained, that is, the scaling attribute of the outermost container is calculated according to the size of the visual screen and the display parameter of the map page, then the scaling attribute of the map container is determined, and finally the scaling parameter of the map page is obtained, and the map page is scaled, so that the map is displayed on the visual screen clearly and in a normal scale.
Further, in this embodiment, in order to further improve the accuracy of obtaining the zoom reference value and the floating coefficient by modifying the zoom attribute of the map container by using the setZoom tag, 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, the method further includes: and carrying out zoom adjustment on the map page, and synchronously updating the zoom label of the map page, wherein the zoom adjustment can be manual adjustment or setting an instruction so as to keep the initial zoom attribute of the map container at 1:1, thereby reducing the problem of poor adaptation effect caused by errors.
S500: obtaining display parameters of a map page, calculating the zooming attribute of the target outermost container, and dynamically calculating the zooming parameter of the target map page based on the zooming attribute of the target outermost container according to the relation function so as to display the map on a visual screen.
In the above step, as described above, after obtaining the display parameters of the map page, the length-width scaling ratio (i.e. the ratio of the size of the visual screen to the size of the map in length and width) can be calculated according to the size of the visual screen, and the scaling ratio is the scaling attribute of the outermost container, so that the scaling attribute of the map container is reversely calculated, and finally, the scaling parameters of the target map page are obtained according to the above relation function, and after scaling the map according to the scaling parameters of the target map page, the map is displayed on the visual screen, so as to achieve the effect of synchronous scaling adaptation. By independently setting the zoom parameters of the map page, compared with the conventional visual screen which directly sets the zoom scale according to the size, the embodiment can solve the problems of map distortion and too large focus offset of the central point.
Example two: the present embodiment provides a map display device 6 of a visual screen, including:
the first calculation module 61 is used for acquiring the size of the visual screen, setting the zooming attribute of an outermost container, and reversely determining the zooming attribute of the map container;
it is emphasized that the scaling property of the outermost container is set to be the inverse of the scaling property of the map container, mainly to achieve the effect of keeping the original size of the map unaffected by the outermost container
The second calculation module 62 is configured to adjust a zoom tag of the map page according to the attribute of zooming of the map container, so as to obtain a zoom parameter of the map page;
specifically, the zoom tab of the map page is adjusted to be the setZoom tab, and the setZoom interface is directly called when the zoom tab of the map page is adjusted.
The parameter determining module 63 is configured to set an initial zooming attribute of the map container, and obtain a zooming reference value and a floating coefficient of the map page; specifically, the initial zoom attribute of the map container is set such that the map container is zoomed in length and width in equal proportion.
Specifically, the initial scaling ratio is set to 1:1, and the scaling reference value and the floating coefficient of the map page at the moment can be obtained by using the getZoom interface.
The processing module 64 is configured to zoom the outermost container for multiple times, synchronously obtain a zoom parameter of the map page, and generate a zoom attribute relationship function between the zoom parameter of the map page and the map container according to the zoom reference value and the floating coefficient of the map page;
specifically, under the processing module, the generated scaling parameter of the map page and the scaling attribute relation function of the map container are as follows:
X=μ-(a-1)×θ
wherein X is a zooming parameter of a map page; mu is a zoom reference value of the map page; theta is a floating coefficient; a is the greater of the length or width scaling in the map container's scaling attributes.
The executing module 65 is configured to obtain display parameters of a map page, calculate a scaling attribute of the target outermost container, and dynamically calculate a scaling parameter of the target map page according to the relationship function based on the scaling attribute of the target outermost container, so as to display the map on the visualization screen.
Specifically, after the display parameters of the map page are obtained, the length-width scaling ratio, which is the scaling attribute of the outermost container, can be calculated according to the size of the visual screen, so that the scaling attribute of the map container is calculated, finally, the scaling parameters of the target map page are obtained according to the relation function, and the map is displayed on the visual screen after being scaled.
Specifically, the map display device further includes:
the adjusting module 66 is configured to, after the initial zoom attribute of the map container is set and before the zoom reference value and the floating coefficient of the map page are obtained, perform zoom adjustment on the map page, and update the zoom tag of the map page synchronously. The method is used for further improving the accuracy of the obtained zooming reference value and the obtained floating coefficient, and the initial zooming attribute of the map container is accurately kept at 1:1 after adjustment, so that the problem of poor adaptation effect caused by errors is solved.
In the above embodiment, 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, the second calculation module 62 is used to determine the zoom parameter of the map page corresponding to the set zoom attribute of the outermost container by performing zoom adjustment on the map page, the parameter determination module 63 determines the zoom reference value and the floating coefficient of the map page according to the preset initial zoom attribute of the map container, the processing module 64 is used to adjust the zoom attribute of the outermost container, and a relationship function between the zoom parameter of the map page and the zoom attribute, the zoom reference value and the floating coefficient of the map container is generated, finally the execution module 65 can calculate the zoom attribute of the outermost container according to the visual screen size and the display parameter of the map page, and then determine the zoom attribute of the map container, finally, zooming parameters of the map page are obtained, and zooming processing is carried out on the map page, so that the map is clearly displayed on the visual screen in a normal scale, and the problems of scale distortion and fuzziness when the map is displayed on the existing visual screen are solved. Further, in order to avoid errors caused by the zoom reference value and the floating coefficient in the process, the adjustment module 66 may be further used to adjust the map page after the initial zoom attribute of the map container is set in the process of calculating the zoom reference value and the floating coefficient of the map page, so as to further improve the adaptation rate of the map and the visual screen.
Example three:
in order to achieve the above object, the present invention further provides a computer device 7, as shown in fig. 4, the computer device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack-mounted server, a blade server, a tower server or a rack-mounted server (including an independent server or a server cluster formed by multiple servers), etc. that executes programs. The computer device of the embodiment at least includes but is not limited to: a memory 71, a processor 72, which may be communicatively coupled to each other via a system bus, as shown in FIG. 4. It should be noted that fig. 4 only shows a computer device with components, but it should be understood that not all of the shown components are required to be implemented, and more or fewer components may be implemented instead.
In this embodiment, the memory 71 includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 71 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory 71 may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device. Of course, the memory 71 may also include both internal and external storage devices of the computer device. In this embodiment, the memory 71 is generally used for storing an operating system installed in the computer device and various application software, such as program codes, map pages, and the like of the map display method of the visualization screen in the first embodiment. Further, the memory 71 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 72 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 72 generally serves to control the overall operation of the computer apparatus. In this embodiment, the processor 72 is configured to execute the program code stored in the memory 71 or process data, for example, execute the map displaying apparatus 6 of the visualization screen, so as to implement the map displaying method of the visualization screen according to the first embodiment.
Example four:
to achieve the above objects, the present invention also provides a computer-readable storage system including a plurality of storage media, such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by a processor 72, implements corresponding functions. The computer-readable storage medium of the embodiment is used for storing a data storage query device, and when being executed by the processor 72, the computer-readable storage medium implements the map displaying method of the visualization screen of the embodiment.
It should be noted that the embodiments of the present invention have been described in terms of preferred embodiments, and not by way of limitation, and that those skilled in the art can make modifications and variations of the embodiments described above without departing from the spirit of the invention.
It should be noted that the embodiments of the present invention have been described in terms of preferred embodiments, and not by way of limitation, and that those skilled in the art can make modifications and variations of the embodiments described above without departing from the spirit of the invention.

Claims (10)

1. A map display method of a visual screen is characterized by comprising the following steps:
acquiring the size of a visual screen, setting the zooming attribute of an outermost container, and reversely determining the zooming attribute of a map container;
adjusting a zooming label of a map page according to the zooming attribute of the map container to obtain zooming parameters of the map page;
setting an initial zooming attribute of a map container, and obtaining a zooming reference value and a floating coefficient of the map page;
zooming the outermost container for multiple times, synchronously obtaining zooming parameters of the map page, and generating a zooming attribute relation function of the zooming parameters of the map page and the map container according to the zooming reference value and the floating coefficient of the map page; obtaining display parameters of a map page, calculating the zooming attribute of the target outermost container, and dynamically calculating the zooming parameter of the target map page based on the zooming attribute of the target outermost container according to the relation function so as to display the map on a visual screen.
2. The map display method according to claim 1, characterized in that:
the zoom attribute relation function of the zoom parameter of the map page and the map container is as follows:
X=μ-(a-1)×θ
wherein X is a zooming parameter of a map page; mu is a zoom reference value of the map page; theta is a floating coefficient; a is the greater of the length or width scale in the map container zoom attribute.
3. The map displaying method of claim 2, wherein 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, the method further comprises:
and carrying out zoom adjustment on the map page, and synchronously updating the zoom tag of the map page.
4. The map display method according to claim 1, characterized in that:
the initial zoom attribute of the map container is set such that the map container is zoomed in-ratio of length and width.
5. The map displaying method according to claim 1,
and calling a setZoom interface when the zoom label of the map page is adjusted.
6. A map display device of a visual screen, comprising:
the first calculation module is used for acquiring the scaling attribute of an outermost container set by the size of a visual screen and reversely determining the scaling attribute of a map container;
the second calculation module is used for adjusting the zooming label of the map page according to the zooming attribute of the map container to obtain the zooming parameter of the map page;
the parameter determining module is used for setting an initial zooming attribute of the map container and obtaining a zooming reference value and a floating coefficient of the map page;
the processing module is used for zooming the outermost container for multiple times, synchronously obtaining the zooming parameters of the map page, and generating the zooming attribute relation function of the zooming parameters of the map page and the map container according to the zooming reference value and the floating coefficient of the map page;
and the execution module is used for acquiring the display parameters of the map page, calculating the zooming attribute of the target outermost container, and dynamically calculating the zooming parameter of the target map page according to the relation function based on the zooming attribute of the target outermost container so as to display the map on the visual screen.
7. The map display apparatus of claim 6, comprising:
under the processing module, the generated scaling parameter of the map page and the scaling attribute relation function of the map container are as follows:
X=μ-(a-1)×θ
wherein X is a zooming parameter of a map page; mu is a zoom reference value of the map page; theta is a floating coefficient; a is the greater of the length or width scaling in the map container's scaling attributes.
8. The map display apparatus of claim 6, further comprising:
and the adjusting module is used for carrying out zoom adjustment on the map page and synchronously updating the zoom label of the map page 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.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein: the steps of the map presentation method of any one of claims 1 to 5 are implemented by a processor of the computer device when executing the computer program.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when being executed by a processor, carries out the steps of the map presentation method of any one of claims 1 to 5.
CN202210277145.0A 2022-03-21 2022-03-21 Map display method, device, equipment and medium for visual screen Pending CN114816182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210277145.0A CN114816182A (en) 2022-03-21 2022-03-21 Map display method, device, equipment and medium for visual screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210277145.0A CN114816182A (en) 2022-03-21 2022-03-21 Map display method, device, equipment and medium for visual screen

Publications (1)

Publication Number Publication Date
CN114816182A true CN114816182A (en) 2022-07-29

Family

ID=82530361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210277145.0A Pending CN114816182A (en) 2022-03-21 2022-03-21 Map display method, device, equipment and medium for visual screen

Country Status (1)

Country Link
CN (1) CN114816182A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819671A (en) * 2012-07-25 2012-12-12 深圳市网信联动技术有限公司 Method for carrying out data analysis by combining map
WO2021068331A1 (en) * 2019-10-11 2021-04-15 平安科技(深圳)有限公司 Web page adaptive layout method, server and computer-readable storage medium
CN112965650A (en) * 2021-03-12 2021-06-15 平安国际智慧城市科技股份有限公司 Thermodynamic diagram visualization method and system and computer equipment
CN113393554A (en) * 2021-06-25 2021-09-14 京东方科技集团股份有限公司 Map generation method and map generation device
CN113986094A (en) * 2021-10-29 2022-01-28 深圳市优必选科技股份有限公司 Map marking method, device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819671A (en) * 2012-07-25 2012-12-12 深圳市网信联动技术有限公司 Method for carrying out data analysis by combining map
WO2021068331A1 (en) * 2019-10-11 2021-04-15 平安科技(深圳)有限公司 Web page adaptive layout method, server and computer-readable storage medium
CN112965650A (en) * 2021-03-12 2021-06-15 平安国际智慧城市科技股份有限公司 Thermodynamic diagram visualization method and system and computer equipment
CN113393554A (en) * 2021-06-25 2021-09-14 京东方科技集团股份有限公司 Map generation method and map generation device
CN113986094A (en) * 2021-10-29 2022-01-28 深圳市优必选科技股份有限公司 Map marking method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN109977192B (en) Unmanned aerial vehicle tile map rapid loading method, system, equipment and storage medium
CN108733336B (en) Page display method and device
US6976226B1 (en) Translating tabular data formatted for one display device to a format for display on other display devices
US20140351689A1 (en) Methods and systems for displaying webpage content
US9720582B2 (en) Responsive image rendition authoring
EP3842763B1 (en) Method for displaying electronic map, corresponding electronic device, corresponding readable storage medium and corresponding computer program product
CN112131332B (en) Information point updating method and device, electronic equipment and computer storage medium
CN105430331A (en) Method and device for adjusting display direction of monitor image
CN113127784A (en) Large-screen data visual display method and device, storage medium and computer equipment
US9548042B2 (en) Responsive document breakpoints systems and methods
CN112034488A (en) Automatic target object labeling method and device
US20150077433A1 (en) Algorithm for improved zooming in data visualization components
US9360339B2 (en) Rendering maps with canvas elements
CN110443772B (en) Picture processing method and device, computer equipment and storage medium
CN111091497A (en) Map vector line and plane thinning method, intelligent terminal and storage medium
CN109213465B (en) Multi-display identification method and system for education operation system
CN117292079B (en) Multi-dimensional scene coordinate point position conversion and mapping method applied to digital twin
CN102739699B (en) Map display method under browser/server mode and client thereof
CN114816182A (en) Map display method, device, equipment and medium for visual screen
CN108776669B (en) Map display method, map display device, computer device and storage medium
Gustafson et al. Design and implementation of software for assembly and browsing of 3D brain atlases
US8488183B2 (en) Moving labels in graphical output to avoid overprinting
CN113407080A (en) Method and device for generating component label, computer equipment and storage medium
CN113485658B (en) Screen boundary switching method and device, storage medium and electronic equipment
CN110533746B (en) Method, device and equipment for generating response type hotspot view and storage medium

Legal Events

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