Map processing method and device, readable storage medium and medical electronic whiteboard

By obtaining and rendering the scalable vector graphics file of the map and establishing an interactive coordinate system, the problem of excessive map memory usage is solved, the map usage capability of low-memory terminals is realized, and performance support is improved.

CN119668478APending Publication Date: 2025-03-21SHENZHEN NUBOMED EQUIP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411555886.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the prior art, maps have excessive memory usage due to map modeling and complex functions, which makes it difficult for terminals with low memory configuration to support the operation of maps, especially in internal applications such as hospitals.

Method used

By obtaining the scalable vector graphics file of the map, creating a graphic container for rendering, establishing a coordinate system, and modifying the graphic container properties in response to operation instructions to achieve interaction with the rendered map.

Benefits of technology

This reduces the memory usage of the map, so that terminals with low memory configuration can also use the map, and improves the performance support capabilities of low-configuration terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668478A_ABST
    Figure CN119668478A_ABST
Patent Text Reader

Abstract

The invention discloses a map processing method and device, a readable storage medium and a medical electronic whiteboard, and relates to the technical field of maps, and the map processing method comprises the steps of firstly obtaining a scalable vector graphic file of a map, then creating a first graphic container, and rendering the scalable vector graphic file through the first graphic container to obtain a rendered map. And constructing to obtain the map based on the scalable vector graph. And then establishing a first coordinate system based on the rendered map, in response to a received operation instruction for the rendered map, modifying the attribute of the first graphic container based on the operation instruction and the first coordinate system, and realizing interaction with the rendered map. As the scalable vector graph occupies low memory, the memory occupation of the map can be reduced, and a terminal with relatively low memory configuration can also use the map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of map technology, and in particular to a map processing method, device, readable storage medium and medical electronic whiteboard. Background Art

[0002] With the development of mobile Internet, "Internet + Medical Health" has become the direction of medical development that the country is vigorously promoting. Hospitals will set up electronic interactive screens in each ward. The electronic interactive screens can not only display the data of medical equipment in the area, but also reflect the location data of each office or bed in the area. The most intuitive and effective way to display it is through maps, on which the data are statistically analyzed and regulated.

[0003] For example, users can zoom in and out on the map on the electronic interactive screen to query the location of each office, bed or medical equipment, and can also associate the corresponding fixed-point location with the target user's identity information to facilitate searching.

[0004] Maps in related technologies occupy a lot of memory resources when running due to map modeling and complex functions, and many low-configuration terminals cannot support the operation of maps. In particular, for specific maps that are only used within the enterprise, there is usually no need to use complex functions. For example, electronic interactive screens used in hospitals have low memory, resulting in their performance being unable to support large-scale modeled maps. Summary of the invention

[0005] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a map processing method, device, computer-readable storage medium and medical electronic whiteboard, which can reduce the memory usage of the map so that terminals with low memory configuration can also use the map.

[0006] According to the first aspect of the present application, a map processing method includes:

[0007] Get the scalable vector graphics file for the map;

[0008] Creating a first graphic container, and rendering the scalable vector graphics file through the first graphic container to obtain a rendered map;

[0009] Establishing a first coordinate system based on the rendered map;

[0010] In response to receiving an operation instruction for the rendered map, modifying properties of the first graphic container based on the operation instruction and the first coordinate system.

[0011] According to the map processing method of the embodiment of the present application, there are at least the following beneficial effects: the map processing method implemented by the present application first obtains the scalable vector graphics file of the map, then creates a first graphic container, renders the scalable vector graphics file through the first graphic container, and obtains a rendered map, thus constructing a map based on scalable vector graphics. Then, a first coordinate system is established based on the rendered map, and in response to receiving an operation instruction for the rendered map, the properties of the first graphic container are modified based on the operation instruction and the first coordinate system to achieve interaction with the rendered map. Since scalable vector graphics occupy low memory, the embodiment of the present application can reduce the memory usage of the map, so that terminals with low memory configuration can also use the map.

[0012] According to some embodiments of the present application, the operation instruction includes a zoom instruction;

[0013] In response to receiving an operation instruction for the rendered map, modifying the property of the first graphic container based on the operation instruction and the first coordinate system includes:

[0014] In response to receiving the scaling instruction, obtaining a scaling value from the scaling instruction;

[0015] Determine a current coordinate value of the selected point in the first coordinate system, and determine a first physical location of the selected point based on the current coordinate value and a preset map zoom ratio;

[0016] modifying a scaling parameter in the properties of the first graphics container based on the scaling value;

[0017] A second physical location of the selected point is determined based on the scaling value and the first physical location.

[0018] According to some embodiments of the present application, the scaling instruction is obtained by the following steps:

[0019] Listen for mouse wheel events;

[0020] The zoom instruction is determined based on the scroll wheel event.

[0021] According to some embodiments of the present application, the operation instruction includes a translation instruction;

[0022] In response to receiving an operation instruction for the rendered map, modifying the property of the first graphic container based on the operation instruction and the first coordinate system includes:

[0023] In response to receiving the translation instruction, determining a translation offset from the translation instruction;

[0024] A translation parameter in the properties of the first graphics container is modified based on the translation offset.

[0025] According to some embodiments of the present application, the translation instruction is obtained by the following steps:

[0026] Listen for mouse click events;

[0027] Determine, based on the click event, a first current coordinate value of the point selected when the mouse is pressed;

[0028] Determine two current coordinate values ​​of the selected point when the mouse is released based on the click event;

[0029] Obtaining the translation offset based on the first current coordinate value and the second current coordinate value;

[0030] In the case where it is detected that the translation offset is a non-zero value, the translation instruction is generated based on the translation offset.

[0031] According to some embodiments of the present application, it further includes:

[0032] Get the current coordinate value of the selected point;

[0033] Determine the current physical location of the selected point based on the current coordinate value as a marked point;

[0034] A second graphic container is created in the marking point, and a preset character mark is added to the second graphic container.

[0035] According to some embodiments of the present application, after creating a second graphic container in the physical positioning and adding a preset character mark to the second graphic container, the method further includes:

[0036] When it is detected that the coordinate value of the mouse cursor is the same as the coordinate value of the marking point, the character mark of the second graphic container at the marking point is displayed.

[0037] A second aspect of the present application provides a map processing device, including:

[0038] An acquisition module, used for acquiring a scalable vector graphics file of a map;

[0039] A creation module, used for creating a first graphic container, and rendering the scalable vector graphics file through the first graphic container to obtain a rendered map;

[0040] An establishing module, used for establishing a first coordinate system based on the rendered map;

[0041] The modification module is used for modifying the properties of the first graphic container based on the operation instruction and the first coordinate system in response to receiving the operation instruction for the rendered map.

[0042] The third aspect of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the map processing method described in any one of the first aspect of the present application.

[0043] The fourth aspect of the present application provides a medical electronic whiteboard, which includes a display screen, a memory and a processor. The memory stores a computer program, and the processor implements the map processing method described in any one of the first aspect of the present application when executing the computer program.

[0044] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:

[0046] Figure 1 A schematic flow chart of the steps of a map processing method according to the first aspect of the present application;

[0047] Figure 2 A schematic diagram of a rendered map according to an embodiment of the present application;

[0048] Figure 3 A schematic diagram of a structure for establishing a first coordinate system according to an embodiment of the present application;

[0049] Figure 4 for Figure 1 A specific flow chart of step S140;

[0050] Figure 5 It is a schematic diagram of the selected point on the first coordinate system;

[0051] Figure 6 A schematic diagram of the coordinates of the selected point in the second coordinate system after scaling;

[0052] Figure 7 A flowchart of the steps for generating a scaling instruction;

[0053] Figure 8 for Figure 1 A specific flow chart of another embodiment of step S140;

[0054] Fig. 9 A schematic diagram of the flow of steps for generating a translation instruction;

[0055] Fig.10 A flowchart of a map processing method according to another embodiment of the present application;

[0056] Fig.11 for Fig.11 This is a schematic diagram of the marked node and pop-up window;

[0057] Fig.12 A schematic diagram of the structure of a map processing device according to an embodiment of the present application;

[0058] Fig.13 This is a structural schematic diagram of a medical electronic whiteboard according to an embodiment of the third aspect of the present application. DETAILED DESCRIPTION

[0059] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0060] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0061] In the description of this application, "several" means more than one, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0062] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.

[0063] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0064] The present invention is applied to the electronic interactive screen of the hospital. Taking the medical electronic whiteboard as an example, the medical electronic whiteboard is usually installed in the nurse station of the ward, or other locations convenient for medical care or patients to use. The medical electronic whiteboard becomes a large data interactive screen through the map data display method of the present invention. The user can zoom in and out the map through an external device to query the location of each office, bed or medical equipment, and can also associate the corresponding fixed-point location according to the identity information of the target user to achieve convenient search. It can also be understood that the display screen of the medical electronic whiteboard includes a touch screen, and the user can directly touch it to achieve zooming, moving, etc. The specific map in the related art is only used within the enterprise, including the hospital, and usually does not need to use huge functions. For example, the map is built based on the office space of the enterprise, and only a flat map is needed. If the traditional map construction method is used, the map will occupy a lot of memory resources when the map is running due to the huge map modeling and functions, and the memory of the terminal used within the enterprise is usually low, and its performance cannot support the huge modeled map.

[0065] Based on this, the embodiments of the present application provide a map processing method, device, electronic device and computer-readable storage medium, which can reduce the memory usage of the map so that terminals with lower memory configurations can also use the map.

[0066] The map processing method of the embodiments of the present application can be applied to a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a router, a programmable switch, a network card, etc.; the server can be configured as an independent physical server, or as a server cluster or a distributed system composed of multiple physical servers, or as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the map processing method, etc., but is not limited to the above forms.

[0067] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific services or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which services are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0068] Reference Figure 1 , Figure 1 The map processing method of the first aspect of the present application is a flowchart of the steps of the map processing method of the first aspect of the present application. The map processing method of the first aspect of the present application may include but is not limited to steps S110 to S140.

[0069] Step S110, obtaining a scalable vector graphics file of the map;

[0070] It is worth noting that Scalable Vector Graphics (SVG) files are used to describe two-dimensional graphics and animations. SVG is an XML-based markup language used to describe two-dimensional vector graphics. Scalable vector graphics is a file format that stores vector graphics. Scalable vector graphics are vector-based, so they can be enlarged or reduced to any size without affecting clarity. Scalable vector graphics are displayed normally in browsers and can be displayed in browsers such as Chrome, Firefox, Safari, Edge, etc. Since Scalable Vector Graphics uses vector format, it takes up less memory when representing complex graphics.

[0071] Step S120, creating a first graphic container, and rendering a scalable vector graphic through the first graphic container to obtain a rendered map;

[0072] It is worth noting that the graphic container generally refers to an element used to embed scalable vector graphics in an HTML page. And the scalable vector graphics can be rendered through the graphic container. For example, refer to Figure 2 , Figure 2This is a schematic diagram of a rendered map according to an embodiment of the present application. Specifically, an external container is first created, and a business container is created in the external container. The business container is used to operate the map. Then, a first graphic container is created in the business container, and a scalable vector graphic is rendered through the first graphic container to obtain a rendered map.

[0073] It should be noted that HTML (HyperText Markup Language) page is a standard markup language used to create web pages.

[0074] Step S130, establishing a first coordinate system based on the rendered map;

[0075] For example, refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of establishing the first coordinate system in an embodiment of the present application. A rectangular first coordinate system is established with the lower left corner of the rendered map as the origin. It is worth noting that the map zoom ratio preset for the rendered map is 1, and the unit value of the first coordinate system is 1 pixel when the map zoom ratio is 1. The map zoom ratio, i.e., the map scale, is the proportional relationship between the distance on the map and the corresponding distance in the real world.

[0076] Step S140: in response to receiving an operation instruction for rendering a map, modifying properties of the first graphic container based on the operation instruction and the first coordinate system.

[0077] It is worth noting that the map processing method of the embodiment of the present application can be applied to a computer browser, the rendered map is displayed in the browser, and the user operates the rendered map through the mouse or keyboard, thereby generating operation instructions for the rendered map. The attribute of the first graphic container refers to the transform attribute, which is used to transform the SVG element. By setting or modifying the parameters in the transform attribute, the element can be translated, scaled, rotated, skewed, and other operations. The transform attribute can contain one or more transformation instructions, each separated by a space.

[0078] The map processing method of the embodiment of the present application, through steps S110 to S140, first obtains the scalable vector graphics of the map, then creates a first graphic container, and renders the scalable vector graphics through the first graphic container to obtain a rendered map, so as to construct a map based on SVG. Then, a first coordinate system is established based on the rendered map, and in response to receiving an operation instruction for the rendered map, the properties of the first graphic container are modified based on the operation instruction and the first coordinate system to achieve interaction with the rendered map. Since scalable vector graphics occupy low memory, the embodiment of the present application can reduce the memory usage of the map, so that terminals with low memory configuration can also use the map.

[0079] It is understandable that, referring to Figure 4 , Figure 4 for Figure 1 A specific flow chart of step S140 in FIG. Step S140 may include but is not limited to steps S410 to S440.

[0080] Step S410, in response to receiving a zoom instruction, obtaining a zoom value from the zoom instruction;

[0081] It is worth noting that the zoom value represents the zoom villa of the rendered map. For example, if the zoom value is 0.5, the rendered map is zoomed to 0.5 times the original size. For example, if the zoom value is 2, the rendered map is zoomed to 2 times the original size.

[0082] Step S420, determining the current coordinate value of the selected point in the first coordinate system, and determining the first physical location of the selected point based on the current coordinate value and a preset map zoom ratio;

[0083] It is worth noting that the selected point refers to the location selected by the user by clicking the mouse on the rendered map. The current coordinate value of the selected point is determined by the first coordinate system, and the first physical location of the selected point is determined based on the current coordinate value and the preset map zoom ratio. For example, if the current coordinate value is (x1, y1) and the map zoom ratio is 1, the coordinates of the first physical location are (x1, y1). It should be noted that the coordinate system of the first physical location is a second coordinate system established based on the actual physical location.

[0084] Step S430, modifying the scaling parameter in the properties of the first graphic container based on the scaling value;

[0085] Exemplarily, the scaling value is 2. The scaling parameters include sx (scale x), which defines the scaling ratio of the element along the x-axis. For example, sx (scale 2) will magnify the element by 2 times along the x-axis. The scaling parameters also include sy (scale y), which defines the scaling ratio of the element along the y-axis. For example, sy (scale 2) will magnify the element by 2 times along the y-axis.

[0086] Step S440: Determine a second physical location of the selected point based on the zoom value and the first physical location.

[0087] It is worth noting that the value of the x-axis in the second physical positioning = the scaling value * the value of the x-axis in the first physical positioning, and the value of the y-axis in the second physical positioning = the scaling value * the value of the y-axis in the first physical positioning.

[0088] For example, refer to Figure 5 , Figure 5 This is a schematic diagram of the selected point in the first coordinate system. Figure 5 Point A is the selected point, and the coordinates of the selected point in the second coordinate system are (1, 1), corresponding to the first physical location in the rendered map, which is one grid away from the X axis and one grid away from the Y axis, that is, x=1, y=1. Figure 6 , Figure 6 The coordinates of the selected point in the second coordinate system after scaling are shown in Figure 1. When the scaling value is 5, A' is the position of point A after scaling, and the second physical location of point A' is x=5, y=5.

[0089] The map processing method of the embodiment of the present application implements the zooming operation on the rendered map through steps S410 to S440. The operation is simple, and the user can control the rendered map to zoom in or out by using the mouse.

[0090] It is understandable that, referring to Figure 7 , Figure 7 The flowchart of the steps for generating the scaling instruction is shown in FIG. The scaling instruction is obtained by the following steps:

[0091] Step S710, monitoring the mouse wheel event;

[0092] Step S720: determining a zoom instruction based on the scroll wheel event.

[0093] Specifically, in JavaScript, the wheel event can be used to listen to the mouse wheel event. The wheel event is triggered when the user rolls the mouse wheel. When triggered, check the deltaY property of the event object, which represents the amount of scrolling of the wheel in the vertical direction. The zoom value can be obtained through the preset zoom conversion ratio. For example, the zoom value = scrolling amount * zoom conversion ratio. After obtaining the zoom value, a zoom instruction is generated based on the zoom value. It should be noted that JavaScript (JS) is an advanced, interpreted programming language. It is widely used in many fields such as web development, server-side development (through platforms such as Node.js), desktop applications, mobile applications, and game development.

[0094] It is understood that the operation instructions include translation instructions;

[0095] Reference Figure 8 , Figure 8 yes Figure 1 FIG. 1 is a schematic diagram of a specific flow chart of another embodiment of step S140 in FIG. 140 may also include but is not limited to step S810 and step S820.

[0096] Step S810, in response to receiving a translation instruction, determining a translation offset from the translation instruction;

[0097] Step S820: modify the translation parameters in the properties of the first graphic container based on the translation offset.

[0098] It is worth noting that the translation offset includes the offset on the x-axis and the offset on the y-axis. The translation parameters include tx(translate x) and ty(translate y). The tx(translate x) parameter defines the translation distance of the element along the x-axis. The ty(translate y) parameter defines the translation distance of the element along the y-axis. For example, if the offset on the x-axis is a and the offset on the y-axis is b, set the value of tx(translate x) to a and modify the value of ty(translate y) to b.

[0099] The map processing method of the embodiment of the present application realizes the translation of the rendered map through steps S810 to S820. The user can drag the rendered map with the mouse to generate a translation instruction, which is convenient for the user to translate the rendered map.

[0100] It is understandable that, referring to Fig. 9 , Fig. 9 The figure is a flow chart of the steps for generating the translation instruction. The translation instruction is obtained through the following steps:

[0101] Step S910, monitoring the mouse click event;

[0102] Step S920, determining the first current coordinate value of the point selected when the mouse is pressed based on the click event;

[0103] Step S930, determining the current coordinate value of the point selected when the mouse is released based on the click event;

[0104] Step S940, obtaining a translation offset based on the first current coordinate value and the second current coordinate value;

[0105] Step S950: When it is detected that the translation offset is a non-zero value, a translation instruction is generated based on the translation offset.

[0106] It is worth noting that in JavaScript, the mouse click event is monitored through the mousedown event. When the mouse is pressed, the first current coordinate value of the selected point is determined; when the mouse is released, the second current coordinate value of the selected point is determined. The second current coordinate value - the first current coordinate value = the translation offset. For example, the first current coordinate value is (x1, y1), and the second current coordinate value is (x2, y2), then the translation offset is (x1-x2, y1-y2). Then, when the translation offset is detected to be a non-zero value, it can be determined that the user drags and translates the rendered map with the mouse, and thus a translation instruction is generated based on the translation offset.

[0107] It is understandable that, referring to Fig.10 , Fig.10 This is a flowchart of a map processing method according to another embodiment of the present application. The map processing method according to the embodiment of the present application includes but is not limited to:

[0108] Step S1110, obtaining the current coordinate value of the selected point;

[0109] Step S1120, determining the current physical location of the selected point based on the current coordinate value as a marked point;

[0110] Step S1130, creating a second graphic container in the marking point, and adding a preset character mark to the second graphic container.

[0111] Specifically, refer to Fig.11 , Fig.11 This is a schematic diagram of a marked node and a pop-up window. A second graphic container is created at the marked point location, and a preset character tag is added to the second graphic container so that the second graphic container can render the preset character tag to display the character tag on the rendered map. The character tag is an HTML string. Fig.11 In the example, "01" is a character mark.

[0112] It is worth noting that, in one embodiment, after step S1130, when it is detected that the coordinate value of the mouse cursor is the same as the coordinate value of the marked point, the character mark of the second graphic container in the marked point is displayed.

[0113] In one embodiment, the marking point is a DOM node. A DOM (Document Object Model) node is the basic unit of the HTML and XML document structure. DOM is a programming interface that presents a document as a tree structure consisting of nodes and objects (node ​​objects), allowing programs and scripts to dynamically access and update the content, structure, and style of a document. Therefore, JavaScript can obtain and perform a series of operations on DOM nodes, such as changing content, adjusting styles, binding events, etc. For example, referring to Fig.11 , add a pop-up window to the DOM node through JavaScript. When the coordinate value of the mouse cursor is the same as the coordinate value of the marked point and the mouse is pressed, the pop-up window is displayed. Fig.11 In the window where "Zhang San" is located, it is a pop-up window.

[0114] Reference Fig.12 , Fig.12 A second aspect of the present application provides a map processing device, including:

[0115] An acquisition module 1210 is used to acquire a scalable vector graphics file of a map;

[0116] A creation module 1220, configured to create a first graphic container, and render a scalable vector graphic through the first graphic container to obtain a rendered map;

[0117] An establishing module 1230 is used to establish a first coordinate system based on the rendered map;

[0118] The modification module 1240 is configured to modify the properties of the first graphic container based on the operation instruction and the first coordinate system in response to receiving an operation instruction for rendering the map.

[0119] The map processing device of the embodiment of the present application is used to execute the map processing method of the embodiment of the first aspect of the present application. When executing the map processing method, the scalable vector graphics of the map are first obtained, and then a first graphic container is created. The scalable vector graphics are rendered by the first graphic container to obtain a rendered map. In this way, a map based on SVG is constructed. Then, a first coordinate system is established based on the rendered map. In response to receiving an operation instruction for the rendered map, the properties of the first graphic container are modified based on the operation instruction and the first coordinate system to achieve interaction with the rendered map. Since scalable vector graphics occupy low memory, the embodiment of the present application can reduce the memory usage of the map, so that terminals with low memory configuration can also use the map.

[0120] The third aspect of the present application is a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the map processing method of any one of the first aspect embodiments is implemented.

[0121] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0122] Reference Fig.13 , Fig.13 This is a schematic diagram of the structure of a medical electronic whiteboard according to an embodiment of the fourth aspect of the present application. The medical electronic whiteboard is usually installed in the nurse station of the ward or other locations convenient for medical staff or patients to use. The medical electronic whiteboard becomes a large data interactive screen through the map data display method of the present invention.

[0123] Medical electronic whiteboard includes:

[0124] The processor 1301 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0125] The memory 1302 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1302 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1302, and the processor 1301 calls and executes the map processing method of the embodiment of this application;

[0126] The display screen 1306, the external device implements zooming and moving instructions on the map on the display screen 1306 through the interface to query the location of each office, bed or medical equipment, and can also associate the corresponding fixed point location according to the identity information of the target user to achieve convenient search. It can also be understood that the display screen 1306 of the medical electronic whiteboard can be a touch screen, and the user can directly touch it to achieve zooming.

[0127] Input / output interface 1303, used to implement information input and output;

[0128] The communication interface 1304 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0129] A bus 1305 that transmits information between the various components of the device (e.g., the processor 1301, the memory 1302, the input / output interface 1303, and the communication interface 1304);

[0130] The display screen 1306 , the processor 1301 , the memory 1302 , the input / output interface 1303 and the communication interface 1304 are connected to each other in communication within the device via the bus 1305 .

[0131] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0132] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0133] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0135] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0136] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the mapping relationship of the mapping objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next mapping objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0137] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0138] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0139] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0140] If the integrated unit 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 technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0141] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A map processing method, characterized in that: include: Get the scalable vector graphics file for the map; Creating a first graphic container, and rendering the scalable vector graphics file through the first graphic container to obtain a rendered map; Establishing a first coordinate system based on the rendered map; In response to receiving an operation instruction for the rendered map, modifying properties of the first graphic container based on the operation instruction and the first coordinate system.

2. The map processing method according to claim 1, characterized in that: The operation instruction includes a zoom instruction; In response to receiving an operation instruction for the rendered map, modifying the property of the first graphic container based on the operation instruction and the first coordinate system includes: In response to receiving the scaling instruction, obtaining a scaling value from the scaling instruction; Determine a current coordinate value of the selected point in the first coordinate system, and determine a first physical location of the selected point based on the current coordinate value and a preset map zoom ratio; modifying a scaling parameter in the properties of the first graphics container based on the scaling value; A second physical location of the selected point is determined based on the scaling value and the first physical location.

3. The map processing method according to claim 2, characterized in that: The scaling instruction is obtained by the following steps: Listen for mouse wheel events; The zoom instruction is determined based on the scroll wheel event.

4. The map processing method according to claim 1, characterized in that: The operation instruction includes a translation instruction; In response to receiving an operation instruction for the rendered map, modifying the property of the first graphic container based on the operation instruction and the first coordinate system includes: In response to receiving the translation instruction, determining a translation offset from the translation instruction; A translation parameter in the properties of the first graphics container is modified based on the translation offset.

5. The map processing method according to claim 4, characterized in that: The translation instruction is obtained by the following steps: Listen for mouse click events; Determine, based on the click event, a first current coordinate value of the point selected when the mouse is pressed; Determine two current coordinate values ​​of the selected point when the mouse is released based on the click event; Obtaining the translation offset based on the first current coordinate value and the second current coordinate value; In the case where it is detected that the translation offset is a non-zero value, the translation instruction is generated based on the translation offset.

6. The map processing method according to claim 1, characterized in that: Also includes: Get the current coordinate value of the selected point; Determine the current physical location of the selected point based on the current coordinate value as a marked point; A second graphic container is created in the marking point, and a preset character mark is added to the second graphic container.

7. The map processing method according to claim 6, characterized in that: The step of creating a second graphic container in the physical positioning and adding a preset character mark to the second graphic container further includes: When it is detected that the coordinate value of the mouse cursor is the same as the coordinate value of the marking point, the character mark of the second graphic container at the marking point is displayed.

8. A map processing device, characterized in that: include: An acquisition module, used for acquiring a scalable vector graphics file of a map; A creation module, used for creating a first graphic container, and rendering the scalable vector graphics file through the first graphic container to obtain a rendered map; An establishing module, used for establishing a first coordinate system based on the rendered map; The modification module is used for modifying the properties of the first graphic container based on the operation instruction and the first coordinate system in response to receiving the operation instruction for the rendered map.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the map processing method according to any one of claims 1 to 7 is implemented.

10. A medical electronic whiteboard, characterized in that: The medical electronic whiteboard comprises a display screen, a memory and a processor, wherein the memory stores a computer program, and the processor implements the map processing method according to any one of claims 1 to 7 when executing the computer program.

Citation Information

Cited By

  • Method, device, equipment and medium for simulating multi-layer dynamic interaction and vector element control of 3D map

    CN121411853A