Electronic map automatic zooming method, electronic map system and storage medium
By obtaining the observation distance between the viewer and the display screen, and automatically adjusting the zoom level and icon size of the electronic map, the problem of poor user experience in the existing technology is solved, the best display effect at different viewing distances is achieved, and the electronics is improved The ease of use of maps.
Patent Information
- Application Number
- CN202411072493.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-12
AI Technical Summary
The prior art is difficult to ensure that the electronic map zoom scale meets user needs when the user is far away or the screen control personnel are not on site, resulting in poor experience for viewers in front of the map screen.
By obtaining the observation distance between the viewer and the display screen, calculate the level to be scaled and the size of the icon element according to the preset zoom rules, and automatically adjust the zoom level and icon size of the electronic map to ensure that the most suitable display effect is provided at different viewing distances.
It improves the convenience and satisfaction of users when viewing electronic maps, avoids the need to frequently adjust the zoom size manually, and improves the convenience of using electronic maps.
Smart Images

Figure CN118939154A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of screen display technology, and in particular to an electronic map automatic zooming method, an electronic map system and a storage medium. Background Art
[0002] The electronic map screen is a modern display tool that combines electronic display technology and map information. It is widely used in many fields such as urban planning, traffic management, tourism navigation, and commercial display. Under current technology, users can interact with the electronic map screen through touch, mouse, or gestures to achieve functions such as zooming, panning, and querying. However, in some cases, such as when the visiting user is far away or the screen operator is not on site, it is difficult for existing technology to ensure that the map zoom scale meets the needs of users in front of the screen. Users cannot see the icon road and other element information in the electronic map on the screen in time, resulting in a poor experience for people watching the map screen. Summary of the invention
[0003] In view of the deficiencies in the prior art, the present invention provides an automatic scaling method for an electronic map, wherein the electronic map is displayed on a display screen, and comprises the following steps:
[0004] Obtaining the observation distance between a person viewing the electronic map and the display screen;
[0005] Calculating and obtaining the zoom level to be zoomed in and out of the current display layer of the electronic map corresponding to the observation distance and the adjustment size of each icon element according to the preset zooming rule according to the observation distance;
[0006] The current layer of the electronic map is zoomed and adjusted according to the to-be-zoomed level, and the corresponding icons are configured according to the size of each icon element, and then presented on the display screen.
[0007] Preferably, the method of calculating and obtaining the to-be-zoomed level of the current display layer of the electronic map corresponding to the observation distance and the adjustment size of each icon element according to a preset zoom rule according to the observation distance specifically includes:
[0008] The electronic map configuration library is queried to obtain the zoom rule of the currently displayed electronic map, and the zoom level L of the currently displayed layer of the sub-map is calculated according to the zoom rule: L=mD+b, where D is the observation distance of the current viewer from the display screen, m is a preset fixed parameter for measuring the impact of distance changes on the zoom level, and b is a preset offset coefficient.
[0009] Preferably, according to the current display layer of the electronic map, the maximum map level L that is suitable for the current display layer is obtained from the map configuration library. max , minimum map level L min, the farthest observation distance D max and the closest observation distance D min , calculate and obtain the fixed parameter m,
[0010] Preferably, the method of calculating and obtaining the to-be-zoomed level of the current display layer of the electronic map corresponding to the observation distance and the adjustment size of each icon element according to a preset zoom rule according to the observation distance further includes:
[0011] According to the current display layer of the electronic map, the standard size W of each icon element on the current display screen is obtained from the map configuration library. min *H min , calculate and obtain the icon element adjustment size W*H on the electronic map corresponding to the observation distance, Wherein p is a preset fixed parameter that affects the distance change and the degree of scaling, and p is a positive number.
[0012] Preferably, obtaining the observation distance between the viewing person in front of the electronic map and the display screen specifically includes:
[0013] Analyze multiple portrait data in the image in front of the screen collected within a set time interval. If the moving range of each portrait data in the image in front of the screen within the set time interval is lower than a set value, obtain the measured distance of the viewing person corresponding to each portrait data and use the average of the maximum value and the minimum value of each measured distance as the observation distance between the current person and the screen;
[0014] If there is at least one portrait data whose moving range in the screen image within the set time interval is greater than the set value, the observation distance acquisition is not performed and the portrait data in the screen image collected at the next time interval is waited for analysis.
[0015] The present invention also discloses an electronic map system, comprising a screen, a distance detection device and a controller, wherein the distance detection device is located above the screen, and the controller is connected to the screen and the distance detection device respectively, wherein the screen is used to display a display image within a target area; the distance detection device is used to detect the distance between a viewer and the screen; the controller is also configured to obtain an observation distance of a viewer located in front of the electronic map from the display screen; according to the observation distance, the zoom level of the current display layer of the electronic map corresponding to the observation distance and the adjustment size of each icon element are calculated according to a preset zoom rule; the current layer of the electronic map is zoomed and adjusted according to the zoom level, and the corresponding icons are configured according to the adjustment size of each icon element, and then presented to the display screen.
[0016] Preferably, the controller is also configured to query the electronic map configuration library to obtain the zoom rule of the currently displayed electronic map, and calculate the zoom level L of the currently displayed layer of the sub-map according to the zoom rule: L=mD+b, where D is the observation distance of the current viewer from the display screen, where m is a preset fixed parameter for measuring the impact of distance changes on the zoom level, and b is a preset offset coefficient.
[0017] Preferably, the controller is further configured to query and obtain the maximum map level L that is suitable for the current display layer from the map configuration library according to the current display layer of the electronic map. max , minimum map level L min , the farthest observation distance D max and the closest observation distance D min , calculate and obtain the fixed parameter m,
[0018] The present invention also discloses a controller, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the computer program.
[0019] The present invention also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0020] The electronic map automatic zooming method, electronic map system and storage medium disclosed in the present invention adjust the zoom level and icon element size of the electronic map according to the observation distance of the person viewing the electronic map in front of the screen, and after real-time monitoring and obtaining the observation distance between the person viewing the electronic map and the corresponding screen, calculate and obtain the to-be-zoomed level and the adjusted size of each icon element of the current display layer of the electronic map corresponding to the current observation distance according to a preset electronic map zooming rule, and then zoom and adjust the current layer of the electronic map according to the to-be-zoomed level, and configure the corresponding icons according to the adjusted size of each icon element, so that they are presented on the display screen, ensuring that at different viewing distances, the zoom scale of the electronic map and the size of the icon elements in the electronic map can be automatically adjusted to the state most suitable for the user's viewing distance, thereby improving the convenience and satisfaction of the user when viewing the electronic map, avoiding the problem that the screen operator needs to frequently manually adjust the zoom size of the electronic map according to the distance of the person viewing the screen, and improving the convenience of using the electronic map.
[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0023] Figure 1 The figure is a schematic diagram of the steps of a method for automatically zooming in and out of an electronic map according to an embodiment of the present invention.
[0024] Figure 2 A side schematic diagram of an electronic map system disclosed in an embodiment of the present invention.
[0025] Figure 3 It is a front schematic diagram of an electronic map system disclosed in an embodiment of the present invention.
[0026] Figure 4 This is a schematic diagram of specific steps of step S1 disclosed in one embodiment of the present invention.
[0027] Figure 5 This is a structural block diagram of an electronic map system disclosed in another embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] In the present invention, unless otherwise clearly specified and limited, the technical terms or scientific terms used herein shall have the common meanings understood by persons with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the patent application specification and claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "an" do not indicate a quantity limitation, but indicate the existence of at least one.
[0030] The electronic map large screen is a modern display tool that combines electronic display technology and map information. It is widely used in many fields such as urban planning, traffic management, tourism navigation, and commercial display. Under current technology, users can interact with the electronic map large screen through touch, mouse, or gestures to achieve functions such as zooming, panning, and querying. However, in the case of large traffic or long distances between users, it is difficult for existing technology to ensure that the map zoom scale meets the approximate needs of all users in a timely manner. Users cannot see the icon road and other element information in the electronic map on the screen in time, which reduces the user experience. For this reason, this embodiment discloses an automatic zoom method for electronic maps, as shown in the attached figure. Figure 1 As shown, the following steps are included.
[0031] Step S1, obtaining the observation distance of a viewer in front of the electronic map from the display screen.
[0032] Specifically, the electronic map is located on the entire display screen or in a specific area for viewing by the user, and the zoom scale can be automatically adjusted as the viewing distance of the viewer relative to the screen changes. The viewing distance is the straight-line distance of the viewer relative to the screen. In this embodiment, as shown in the attached Figure 2 As shown, the distance detection device 1 is located above the screen 2 and is used to detect the distance between the viewer 4 and the screen 2. Preferably, it is located at the center of the upper edge or lower edge of the screen 2 to avoid blocking the content of the screen 2 while ensuring the accuracy of each measured distance; the screen 2 is used to display a scalable electronic map; the distance detection device 1 measures the straight-line distance between the viewer 4 and the screen 2. The distance measurement method includes but is not limited to infrared distance measurement, ultrasonic distance measurement, laser detection, camera image recognition distance measurement and other methods.
[0033] In this embodiment, camera image recognition and ranging are adopted, which specifically includes the following contents.
[0034] Step S11, collect and identify the image data in front of the display screen, obtain the portrait data in the image, the portrait data includes one or more viewing person information, and detect the measured distance between each viewing person and the display screen. Specifically, use a high-definition, high-resolution camera or camera to capture the image in front of the screen, and extract the portrait data in the image through feature extraction and face recognition technology, and then use stereo vision technology or prior knowledge to measure the distance between each viewing person and the screen.
[0035] Step S12: calculating the observation distance between the current observer and the display screen according to the measured distance.
[0036] The obtained measured distance is further accurately corrected, and the observation distance is further adjusted according to the number of viewers in the portrait data. Specifically, step S12 also includes judging the number of viewers in the portrait data. If the portrait data contains only one viewer, the measured distance of the viewer is used as the observation distance between the current viewer and the screen; if the portrait data contains multiple viewers, the average value of the maximum and minimum values of the measured distances of the viewers is used as the observation distance between the current viewer and the screen. Figure 3 As shown, the detection range of the distance detection device 1 is generally a cone, which is considered a fan when viewed from above. When the viewers 4 gather in front of the screen 2, the average distance between the viewers 4 and the screen 2 is generally used as the final value point, so the monitored effective distance is ΔD, and the best observation position is an arc with a radius of ΔD.
[0037] In this embodiment, as shown in the attached Figure 4 As shown, the step S1 also includes the following contents.
[0038] Step S101, analyzing multiple portrait data in the image in front of the screen collected within a set time interval, if the moving range of each portrait data in the image in front of the screen within the set time interval is lower than a set value, obtaining the measured distance of the viewing person corresponding to each portrait data and taking the average of the maximum and minimum values in each measured distance as the observation distance between the current person and the screen.
[0039] Step S102: if there is at least one portrait data whose moving range in the screen image within the set time interval is greater than the set value, the observation distance acquisition is not performed and the portrait data in the screen image collected at the next time interval is waited for to be analyzed.
[0040] At this time, when there are moving people in the crowd watching in front of the screen, the screen will not be adjusted to avoid visual interference caused by multiple frequency changes of the screen due to the frequent movement of the crowd, affecting the user's viewing experience and information transmission efficiency.
[0041] In another embodiment, the step S1 also includes the following contents.
[0042] Step S201, collecting the measured distance between the viewer in front of the screen and the screen and the viewer's user identity information at a preset time interval, and obtaining the measured distance and user identity information of the viewer collected at the current frequency and the previous frequency.
[0043] Step S202: determine whether the difference between the measured distance of each viewer in the current frequency and the measured distance in the previous frequency is greater than a preset value.
[0044] Step S203, calculating the viewing distance between the viewer and the screen according to the measured distance of the viewer at the current frequency corresponding to the measured distance within the preset value.
[0045] Specifically, for people passing by the screen, when the distance between them and the screen changes, the difference between the two measured distances is too large, and the calculated viewing distance does not include this data. When the distance between them changes, the difference between the two measured distances is basically the same, and the overall impact on the calculated viewing distance is small, thus avoiding the frequent adjustment of the screen content zoom caused by passers-by. At the same time, when the viewer moves forward and backward relative to the screen, no adjustment is made until the viewer stands still and the position does not change within the preset time interval, and then the screen is adjusted according to the current distance of the viewer, avoiding the viewing inconvenience caused by frequent adjustments to the overall viewers, and improving the overall stability of the system.
[0046] Step S2, according to the observation distance, the zoom level to be zoomed in and the size adjustment of each icon element of the current display layer of the electronic map corresponding to the observation distance are calculated according to a preset zoom rule.
[0047] Specifically, electronic map zooming includes overall zooming and icon zooming. Overall zooming is achieved by defining the zoom level. Different zoom levels correspond to different map display ranges and levels of detail. The higher the zoom level, the smaller the displayed map range and the richer the details; the lower the zoom level, the larger the displayed map range, but the details are relatively simplified; electronic map icons are appropriately adjusted according to the zoom level, including store signs, road signs, side display information, etc., to ensure clear readability at different zoom levels. In this embodiment, the zoom level to be adjusted and the icon element size are adjusted simultaneously, and different coefficients are selected by comprehensively considering the map resolution, user visual habits, device screen size and resolution, etc., to provide a comfortable and efficient map browsing experience.
[0048] Among them, the scaling of the display layer includes the following contents.
[0049] Step S301: query and obtain the maximum map level L that is suitable for the current display layer from the map configuration library according to the current display layer of the electronic map. max , minimum map level L min , the farthest observation distance D max and the closest observation distance D min , calculate and obtain the fixed parameter m,
[0050] Step S302, query the electronic map configuration library to obtain the zoom rule of the currently displayed electronic map, and calculate the zoom level L of the currently displayed layer of the sub-map according to the zoom rule: L=mD+b, where D is the observation distance of the current viewer from the display screen, m is a preset fixed parameter for measuring the impact of distance changes on the zoom level, and b is a preset offset coefficient.
[0051] Specifically, when the zoom level is moderate, the user can accurately locate a specific location or area on the map, which helps to make better decisions. Where L is an integer, when the electronic map has a map zoom level of 1-20, the observation distance is in the range of 2-10, and the front viewer distance D is 8 meters, At this time, b is -3.75, and L=15.25 is obtained. The integer is 15, which means that the electronic map needs to be adjusted to layer 15.
[0052] The scaling of each icon element in the display layer includes: querying and obtaining the standard size W of each icon element on the current display screen from the map configuration library according to the current display layer of the electronic map. min *H min , calculate and obtain the icon element adjustment size W*H on the electronic map corresponding to the observation distance, Wherein p is a preset fixed parameter that affects the distance change and the degree of scaling, and p is a positive number.
[0053] Specifically, the standard size of the icon can be set according to its type or importance, and different fixed parameters p can be set to different zoom ratios for different types of icons to ensure that the icons are neither too crowded nor too sparse, can clearly convey the required information, and enable users to quickly identify important elements on the map. For example, when the standard size of the icon is 100*100, p is 2, and D is 6, W*H=1600-1600, that is, when the viewing distance of the person in front of the screen is 6 meters and the electronic map is adjusted to the 15th floor, the icon needs to be enlarged to a resolution of 1600*1600 to match the map zoom level.
[0054] Step S3, scaling the current layer of the electronic map according to the to-be-scaled level, configuring the corresponding icons according to the size of each icon element, and presenting them on the display screen.
[0055] The electronic map automatic zooming method disclosed in the embodiment adjusts the zoom level and icon element size of the electronic map according to the observation distance of the person viewing the electronic map in front of the screen. After real-time monitoring and obtaining the observation distance between the person viewing the electronic map and the corresponding screen, the zoom level to be zoomed and the adjustment size of each icon element of the current display layer of the electronic map corresponding to the current observation distance are calculated according to a preset electronic map zooming rule, and then the current layer of the electronic map is zoomed and adjusted according to the zoom level to be zoomed, and the corresponding icons are configured according to the adjustment size of each icon element, so that they are presented on the display screen, ensuring that at different viewing distances, the zoom scale of the electronic map and the size of the icon elements in the electronic map can be automatically adjusted to the state most suitable for the user's viewing distance, thereby improving the convenience and satisfaction of the user when viewing the electronic map, avoiding the problem that the screen operator needs to frequently manually adjust the zoom size of the electronic map according to the distance of the person viewing the screen, and improving the convenience of using the electronic map.
[0056] In another embodiment, an electronic map system is also disclosed, as shown in the attached Figure 5 As shown, it includes a screen 2, a distance detection device 1 and a controller 3, the distance detection device 1 is located above the screen 2, and the controller 3 is connected to the screen 2 and the distance detection device 1 respectively. The screen 2 is used to display the display image in the target area; the distance detection device 1 is used to detect the distance between the viewer and the screen; the controller 3 is also configured to obtain the observation distance of the viewer located in front of the electronic map from the display screen; according to the observation distance, the zoom level of the current display layer of the electronic map corresponding to the observation distance and the adjustment size of each icon element are calculated according to the preset zoom rule; the current layer of the electronic map is zoomed and adjusted according to the zoom level, and the corresponding icons are configured according to the adjustment size of each icon element, and then presented to the display screen.
[0057] In this embodiment, the controller 3 is also configured to query the electronic map configuration library to obtain the zoom rule of the currently displayed electronic map, and calculate the zoom level L of the currently displayed layer of the sub-map according to the zoom rule: L=mD+b, where D is the observation distance of the current viewer from the display screen, where m is a preset fixed parameter for measuring the impact of distance changes on the zoom level, and b is a preset offset coefficient.
[0058] In this embodiment, the controller 3 is further configured to query and obtain the maximum map level L adapted to the current display layer from the map configuration library according to the current display layer of the electronic map. max , minimum map level L min , the farthest observation distance D max and the closest observation distance D min , calculate and obtain the fixed parameter m,
[0059] The specific functions of the electronic map system described above correspond to the electronic map automatic zooming method disclosed in the previous embodiment, so they will not be described in detail here. For details, please refer to the various embodiments of the electronic map automatic zooming method disclosed in the previous embodiment. It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.
[0060] If the electronic map automatic zooming method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0061] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
[0062] In conclusion, the above is only a preferred embodiment of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the patent of the present invention.
Claims
1. A method for automatically zooming in and out of an electronic map, wherein the electronic map is displayed on a display screen, It is characterized in that The steps include: Obtaining the observation distance between a person viewing the electronic map and the display screen; Calculating and obtaining the zoom level to be zoomed in and out of the current display layer of the electronic map corresponding to the observation distance and the adjustment size of each icon element according to the preset zooming rule according to the observation distance; The current layer of the electronic map is zoomed and adjusted according to the to-be-zoomed level, and the corresponding icons are configured according to the size of each icon element, and then presented on the display screen.
2. The electronic map automatic zooming method according to claim 1, It is characterized in that Calculating and obtaining the to-be-zoomed level of the current display layer of the electronic map corresponding to the observation distance and the adjustment size of each icon element according to a preset zoom rule according to the observation distance specifically includes: The electronic map configuration library is queried to obtain the zoom rule of the currently displayed electronic map, and the zoom level L of the currently displayed layer of the sub-map is calculated according to the zoom rule: L=mD+b, where D is the observation distance of the current viewer from the display screen, m is a preset fixed parameter for measuring the impact of distance changes on the zoom level, and b is a preset offset coefficient.
3. The electronic map automatic zooming method according to claim 2, Features: According to the current display layer of the electronic map, query the map configuration library to obtain the maximum map level L that is suitable for the current display layer. max , minimum map level L min , the farthest observation distance D max and the closest observation distance D min , calculate and obtain the fixed parameter m, 4. The electronic map automatic zooming method according to claim 3, Features: The method further comprises: calculating and obtaining the zoom level to be zoomed in and out of the current display layer of the electronic map corresponding to the observation distance and the adjustment size of each icon element according to a preset zoom rule according to the observation distance, and further comprising: According to the current display layer of the electronic map, the standard size W of each icon element on the current display screen is obtained from the map configuration library. min *H min , calculate and obtain the icon element adjustment size W*H on the electronic map corresponding to the observation distance, Wherein p is a preset fixed parameter that affects the distance change and the degree of scaling, and p is a positive number.
5. The electronic map automatic zooming method according to claim 4, It is characterized in that Obtaining the observation distance between a person viewing the electronic map and the display screen includes: Analyze multiple portrait data in the image in front of the screen collected within a set time interval. If the moving range of each portrait data in the image in front of the screen within the set time interval is lower than a set value, obtain the measured distance of the viewing person corresponding to each portrait data and use the average of the maximum value and the minimum value of each measured distance as the observation distance between the current person and the screen; If there is at least one portrait data whose moving range in the screen image within the set time interval is greater than the set value, the observation distance acquisition is not performed and the portrait data in the screen image collected at the next time interval is waited for analysis.
6. An electronic map system, It is characterized in that It includes a screen, a distance detection device and a controller, wherein the distance detection device is located above the screen, and the controller is connected to the screen and the distance detection device respectively. The screen is used to display a scalable electronic map; The distance detection device is used to detect the distance between the viewer and the screen; The controller is also configured to obtain the observation distance of a viewer in front of the electronic map from the display screen; calculate the zoom level to be scaled and the size adjustment of each icon element of the current display layer of the electronic map corresponding to the observation distance according to a preset zoom rule based on the observation distance; scale and adjust the current layer of the electronic map according to the zoom level to be scaled, and configure the corresponding icons according to the size adjustment of each icon element, and then present them on the display screen.
7. The electronic map system according to claim 6, It is characterized in that The controller is also configured to query the electronic map configuration library to obtain the zoom rule of the currently displayed electronic map, and calculate the zoom level L of the currently displayed layer of the sub-map according to the zoom rule: L=mD+b, where D is the observation distance of the current viewer from the display screen, where m is a preset fixed parameter for measuring the impact of distance changes on the zoom level, and b is a preset offset coefficient.
8. The electronic map system according to claim 7, It is characterized in that The controller is further configured to query and obtain a maximum map level L adapted to the current display layer from a map configuration library according to the current display layer of the electronic map. max , minimum map level L min , the farthest observation distance D max and the closest observation distance D min , calculate and obtain the fixed parameter m, 9. A controller comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, Features: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium storing a computer program. Features: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
