CN110827658A - Method and device for displaying equipment in electronic map - Google Patents

Method and device for displaying equipment in electronic map Download PDF

Info

Publication number
CN110827658A
CN110827658A CN201911107040.5A CN201911107040A CN110827658A CN 110827658 A CN110827658 A CN 110827658A CN 201911107040 A CN201911107040 A CN 201911107040A CN 110827658 A CN110827658 A CN 110827658A
Authority
CN
China
Prior art keywords
displayed
equipment
devices
electronic map
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911107040.5A
Other languages
Chinese (zh)
Other versions
CN110827658B (en
Inventor
张凌
陈正卿
季童
郑学峰
宗广丰
刘海滨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anthracene Silk Internet Of Things Technology (shanghai) Co Ltd
Original Assignee
Anthracene Silk Internet Of Things Technology (shanghai) 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 Anthracene Silk Internet Of Things Technology (shanghai) Co Ltd filed Critical Anthracene Silk Internet Of Things Technology (shanghai) Co Ltd
Priority to CN201911107040.5A priority Critical patent/CN110827658B/en
Publication of CN110827658A publication Critical patent/CN110827658A/en
Application granted granted Critical
Publication of CN110827658B publication Critical patent/CN110827658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • G09B29/006Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Abstract

The invention provides a method and a device for showing equipment in an electronic map, wherein the method comprises the following steps: determining a current electronic map displayed on a terminal screen; acquiring the position of equipment to be displayed, which needs to be displayed in the current electronic map; aggregating the to-be-displayed devices needing to be aggregated into at least one aggregation point according to the positions of the to-be-displayed devices, and displaying the at least one aggregation point and icons of the to-be-displayed devices not needing to be aggregated on the current electronic map; acquiring the current state of each device to be displayed which does not need to be aggregated; determining the color to be displayed of each device to be displayed which does not need to be aggregated according to the current state of each device to be displayed which does not need to be aggregated; for each device to be displayed which does not need to be aggregated, performing: in the current electronic map, the icon of the current device to be displayed is set to the color to be displayed of the current device to be displayed. The invention can accelerate the speed of displaying the equipment in the electronic map.

Description

Method and device for displaying equipment in electronic map
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for displaying equipment in an electronic map.
Background
An electronic map is a map that is digitally stored and referred to using computer technology. In order to clearly show the positions of the devices, the devices can be displayed on an electronic map.
In the prior art, all devices are displayed on an electronic map, when the number of the devices to be displayed on the electronic map is large, each device is loaded one by one, the situation of blockage occurs in the display process of the electronic map, and the speed of displaying the devices in the electronic map is low.
Disclosure of Invention
The embodiment of the invention provides a method and a device for displaying equipment in an electronic map, which can accelerate the speed of displaying the equipment in the electronic map.
In a first aspect, an embodiment of the present invention provides a method for displaying devices in an electronic map, including:
presetting an icon for each device, and presetting different colors for different states of the devices;
determining a current electronic map displayed on a terminal screen;
acquiring the position of equipment to be displayed, which needs to be displayed in the current electronic map;
according to the position of the to-be-displayed equipment, aggregating the to-be-displayed equipment needing aggregation into at least one aggregation point, and displaying the at least one aggregation point and icons of the to-be-displayed equipment not needing aggregation on the current electronic map;
acquiring the current state of each device to be displayed which does not need to be aggregated;
determining the color to be displayed of each device to be displayed which does not need to be aggregated according to the current state of each device to be displayed which does not need to be aggregated;
for each device to be displayed which does not need to be aggregated, executing: and in the current electronic map, setting the icon of the current device to be displayed as the color to be displayed of the current device to be displayed.
Alternatively,
the method further comprises the following steps: dividing the terminal screen into a plurality of display areas;
the aggregating the to-be-displayed devices which need to be aggregated into at least one aggregation point according to the positions of the to-be-displayed devices, and displaying the at least one aggregation point and the icons of the to-be-displayed devices which do not need to be aggregated on the current electronic map, includes:
for each of the display regions, performing:
judging whether the number of the devices to be displayed in the current display area is larger than a preset value or not, if so, determining that the devices to be displayed in the current display area are the devices to be displayed which need to be aggregated, aggregating the devices to be displayed in the current display area into an aggregation point, and displaying the aggregation point at a position corresponding to the current display area in the current electronic map, otherwise, determining that the devices to be displayed in the current display area are the devices to be displayed which do not need to be aggregated, and displaying icons of the devices to be displayed in the current display area on the current electronic map.
Alternatively,
the method further comprises the following steps:
when an instruction of displaying a device of a target device type input by a user is received, the device to be displayed belonging to the target device type is displayed on the current electronic map, and the device to be displayed not belonging to the target device type is prohibited from being displayed.
Alternatively,
the method further comprises the following steps:
when an instruction of displaying the equipment in the target state, which is input by a user, is received, the equipment to be displayed in the target state is displayed on the current electronic map, and the equipment to be displayed which is not in the target state is prohibited from being displayed.
Alternatively,
the setting of an icon for each device in advance comprises the following steps:
setting a same icon for the devices belonging to the same device type, and setting different icons for the devices belonging to different device types.
Alternatively,
the setting different colors for different states of the device in advance comprises:
setting red for the alarm state of the equipment, setting blue for the normal state of the equipment, setting green for the working state of the equipment, and setting grey for the off-line state of the equipment.
Alternatively,
the method further comprises the following steps:
when it is determined that the user clicks the icon of the device to be displayed, displaying relevant information of the clicked device to be displayed;
the related information comprises: one or more of the latest reported data, the last reported time, the equipment number, the equipment name, the equipment position, the equipment picture and the equipment state.
Alternatively,
the method further comprises the following steps:
when it is determined that the user clicks on the aggregation point,
and amplifying the current electronic map displayed on the terminal screen, and displaying the icon of the equipment to be displayed corresponding to the aggregation point on the current electronic map displayed on the terminal screen.
In a second aspect, an embodiment of the present invention provides an apparatus for displaying devices in an electronic map, including:
a first determination unit for determining a current electronic map displayed on a terminal screen;
the first acquisition unit is used for acquiring the position of the equipment to be displayed, which needs to be displayed in the current electronic map;
the first display unit is used for aggregating the to-be-displayed devices needing to be aggregated into at least one aggregation point according to the positions of the to-be-displayed devices, and displaying the at least one aggregation point and icons of the to-be-displayed devices not needing to be aggregated on the current electronic map;
the second acquisition unit is used for acquiring the current state of each device to be displayed which does not need to be aggregated;
the second determining unit is used for determining the color to be displayed of each device to be displayed, which does not need to be aggregated, according to the current state of each device to be displayed, which does not need to be aggregated;
a setting unit, configured to execute, for each device to be displayed that does not need to be aggregated: in the current electronic map, setting an icon of the current equipment to be displayed as the color to be displayed of the current equipment to be displayed;
wherein each device corresponds to an icon, and different states of the devices correspond to different colors.
Alternatively,
the apparatus further comprises:
the dividing unit is used for dividing the terminal screen into a plurality of display areas;
the display unit is configured to, for each of the display areas, perform:
judging whether the number of the devices to be displayed in the current display area is larger than a preset value or not, if so, determining that the devices to be displayed in the current display area are the devices to be displayed which need to be aggregated, aggregating the devices to be displayed in the current display area into an aggregation point, and displaying the aggregation point at a position corresponding to the current display area in the current electronic map, otherwise, determining that the devices to be displayed in the current display area are the devices to be displayed which do not need to be aggregated, and displaying icons of the devices to be displayed in the current display area on the current electronic map.
Alternatively,
the apparatus further comprises:
the first screening unit is used for displaying the equipment to be displayed which belongs to the target equipment type on the current electronic map and forbidding displaying the equipment to be displayed which does not belong to the target equipment type when receiving an instruction of displaying equipment of the target equipment type input by a user.
Alternatively,
the apparatus further comprises:
and the second screening unit is used for displaying the equipment to be displayed in the target state on the current electronic map and forbidding displaying the equipment to be displayed which is not in the target state when receiving an instruction which is input by a user and is used for displaying the equipment in the target state.
Alternatively,
the devices belonging to the same device type correspond to one and the same icon, and the devices belonging to different device types correspond to different icons.
Alternatively,
the alarm state of the equipment corresponds to red, the normal state of the equipment corresponds to blue, the working state of the equipment corresponds to green, and the off-line state of the equipment corresponds to grey.
Alternatively,
the apparatus further comprises:
the second display unit is used for displaying relevant information of the clicked equipment to be displayed when the user clicks the icon of the equipment to be displayed;
the related information comprises: one or more of the latest reported data, the last reported time, the equipment number, the equipment name, the equipment position, the equipment picture and the equipment state.
Alternatively,
the apparatus further comprises:
and the third display unit is used for amplifying the current electronic map displayed on the terminal screen when the user clicks the aggregation point, and displaying the icon of the device to be displayed corresponding to the aggregation point on the current electronic map displayed on the terminal screen.
In the embodiment of the invention, when the devices to be displayed need to be displayed on the terminal screen, part of the devices to be displayed, which need to be aggregated, can be aggregated into at least one aggregation point, then, the at least one aggregation point and other devices to be displayed, which do not need to be aggregated, are displayed on the current electronic map, even if a large number of devices to be displayed need to be displayed, the devices to be displayed do not need to be loaded one by one, and in the current electronic map, the aggregation point replaces a plurality of devices to be displayed, so that the content which needs to be displayed on the current electronic map is reduced, and the speed of displaying the devices in the current electronic map is accelerated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for displaying devices in an electronic map according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for displaying devices in an electronic map according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an apparatus for displaying a device in an electronic map according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for displaying devices in an electronic map, including:
step 101: presetting an icon for each device, and presetting different colors for different states of the devices;
step 102: determining a current electronic map displayed on a terminal screen;
step 103: acquiring the position of equipment to be displayed, which needs to be displayed in the current electronic map;
step 104: according to the position of the to-be-displayed equipment, aggregating the to-be-displayed equipment needing aggregation into at least one aggregation point, and displaying the at least one aggregation point and icons of the to-be-displayed equipment not needing aggregation on the current electronic map;
step 105: acquiring the current state of each device to be displayed which does not need to be aggregated;
step 106: determining the color to be displayed of each device to be displayed which does not need to be aggregated according to the current state of each device to be displayed which does not need to be aggregated;
step 107: for each device to be displayed which does not need to be aggregated, executing: and in the current electronic map, setting the icon of the current device to be displayed as the color to be displayed of the current device to be displayed.
In the embodiment of the invention, when the devices to be displayed need to be displayed on the terminal screen, part of the devices to be displayed, which need to be aggregated, can be aggregated into at least one aggregation point, then, the at least one aggregation point and other devices to be displayed, which do not need to be aggregated, are displayed on the current electronic map, even if a large number of devices to be displayed need to be displayed, the devices to be displayed do not need to be loaded one by one, and in the current electronic map, the aggregation point replaces a plurality of devices to be displayed, so that the content which needs to be displayed on the current electronic map is reduced, and the speed of displaying the devices in the current electronic map is accelerated.
In the embodiment of the invention, the current electronic map refers to a part of the whole electronic map displayed on the terminal screen. For example: the electronic map is a Chinese map, and the part of Beijing City in the Chinese map is displayed on the terminal screen at present, so that the part of Beijing City is the current electronic map.
In the embodiment of the present invention, the position of the device to be displayed may be a longitude and latitude of the device to be displayed.
In the embodiment of the invention, the terminal screen can be a screen of a mobile phone, a screen of a computer, a screen of a tablet computer and the like.
In the embodiment of the present invention, the device to be displayed that needs to be aggregated refers to: when the number of the devices to be displayed in the region of the preset size of the terminal screen exceeds n, the devices to be displayed are the devices to be displayed which need to be aggregated, the devices to be displayed in the same region are aggregated into an aggregation point, n is a preset threshold, and n is a positive integer. The remaining devices to be displayed are the devices to be displayed that do not need to be aggregated. For example: n is 10, and the number of the devices to be displayed in 1 square centimeter in a certain area of the terminal screen exceeds 10, so that the devices to be displayed are the devices to be displayed which need to be aggregated.
In this embodiment of the present invention, the setting an icon for each device in advance includes:
setting a same icon for the devices belonging to the same device type, and setting different icons for the devices belonging to different device types.
For example, devices that may be displayed on an electronic map may include: equipment types such as a plurality of wisdom well lids, a plurality of wisdom smoke are felt, a plurality of wisdom door magnetism, a plurality of wisdom vibrations check out test set. Wisdom well lid corresponds triangle-shaped, wisdom smoke and feels and corresponds the square, and wisdom door magnetism corresponds trapezoidal, wisdom vibrations check out test set and corresponds the pentagram.
Of course, the pattern of the icon may not be limited to the above-mentioned figure, but may be a more complicated and more vivid figure.
In this embodiment of the present invention, the setting different colors for different states of the device in advance includes:
setting red for the alarm state of the equipment, setting blue for the normal state of the equipment, setting green for the working state of the equipment, and setting grey for the off-line state of the equipment.
In the embodiment of the invention, the alarm state refers to a state in which alarm information is sent when the equipment has a fault, the normal state refers to a state in which the equipment normally runs, the working state refers to a state in which maintenance personnel maintain the equipment, and the offline state refers to a state in which the equipment is offline. Of course, the device may have other states and, accordingly, other colors may be provided.
In the embodiment of the present invention, the type of the device is represented by an icon, and the state of the device is represented by color. For example, a red triangle is displayed on the electronic map for a smart well lid in an alarm state, and a gray trapezoid is displayed on the electronic map for a smart door sensor in an off-line state.
In an embodiment of the invention, the method further comprises: dividing the terminal screen into a plurality of display areas;
the aggregating the to-be-displayed devices which need to be aggregated into at least one aggregation point according to the positions of the to-be-displayed devices, and displaying the at least one aggregation point and the icons of the to-be-displayed devices which do not need to be aggregated on the current electronic map, includes:
for each of the display regions, performing:
judging whether the number of the devices to be displayed in the current display area is larger than a preset value or not, if so, determining that the devices to be displayed in the current display area are the devices to be displayed which need to be aggregated, aggregating the devices to be displayed in the current display area into an aggregation point, and displaying the aggregation point at a position corresponding to the current display area in the current electronic map, otherwise, determining that the devices to be displayed in the current display area are the devices to be displayed which do not need to be aggregated, and displaying icons of the devices to be displayed in the current display area on the current electronic map.
In the embodiment of the invention, a virtual grid can be generated on the terminal screen, and each square in the virtual grid is a display area. The first side of the terminal screen may be equally divided into k parts, and the second side of the terminal screen perpendicular to the first side may be equally divided into t parts, so that the entire terminal screen includes k × t squares, each square is a display area, and the sizes of the squares are equal.
If the number of the devices to be displayed in one display area is too large (for example, exceeds a preset value), it indicates that the density of the devices to be displayed in the display area is high, in this case, a lot of time is required to load each device to be displayed, and a jam condition may occur, so that an aggregation point needs to be aggregated, at this time, only the aggregation point needs to be displayed in the region to be displayed, and the loading speed is high.
If the number of the devices to be displayed in one display area is not large (for example, less than or equal to a preset value), it indicates that the density of the devices to be displayed in the display area is small, in this case, the time required for loading each device to be displayed is short, and the situation of jamming does not occur, so that an aggregation point does not need to be aggregated.
In addition, the preset value may be 5, 6, 7, 8, 10, 50, 100, 1000, etc.
In the embodiment of the present invention, the aggregation point may be located at the center of the display area where the aggregation point is located.
In an embodiment of the invention, the method further comprises:
when an instruction of displaying a device of a target device type input by a user is received, the device to be displayed belonging to the target device type is displayed on the current electronic map, and the device to be displayed not belonging to the target device type is prohibited from being displayed.
In the embodiment of the invention, a button can be set for each device type on the interface of the electronic map, and when a user presses the button corresponding to a certain device type, only the device to be displayed belonging to the device type is displayed on the current electronic map. For example, when the user presses a button corresponding to the smart well lid, only the smart well lid is displayed on the current electronic map.
Of course, the user may also input an instruction to simultaneously display two or more devices of the device type, in which case, only the device to be displayed of the device type requested to be displayed by the user is displayed on the current electronic map. For example: the user has pressed the button that wisdom well lid corresponds to pressed the button that wisdom door magnetism corresponds, under this condition, only show wisdom well lid and wisdom door magnetism on current electronic map.
In an embodiment of the invention, the method further comprises:
when an instruction of displaying the equipment in the target state, which is input by a user, is received, the equipment to be displayed in the target state is displayed on the current electronic map, and the equipment to be displayed which is not in the target state is prohibited from being displayed.
In the embodiment of the invention, a button can be set for each state on the interface of the electronic map, and when a user presses the button corresponding to a certain state, only the to-be-displayed equipment in the state is displayed on the current electronic map. For example, when the user presses a button corresponding to the alarm state, only the device to be displayed in the alarm state is displayed on the current electronic map.
Of course, the user may also input an instruction to simultaneously display two or more devices in different states, in which case, only the device to be displayed in the state that the user desires to display is displayed on the current electronic map. For example: the user presses the button corresponding to the alarm state and presses the button corresponding to the off-line state, and in this case, only the device to be displayed in the alarm state and the device in the off-line state are displayed on the current electronic map.
In addition, the user can simultaneously screen the device types and the states, and when the user inputs an instruction for displaying the device which belongs to the target device type and is in the target state, only the device to be displayed which is in the target state and belongs to the target device type is displayed on the current electronic map. For example: the user has pressed the button that the wisdom well lid corresponds simultaneously and has warned the button that the state corresponds, so, only shows the wisdom well lid that is in the state of reporting an emergency and asking for help or increased vigilance on current electronic map.
In the prior art, all devices are displayed on an electronic map, and a user cannot control the electronic map to only display the devices required by the user. By the embodiment of the invention, the user can screen out the equipment required to be displayed and control the electronic map to only display the equipment required to be displayed. Specifically, the user can filter the devices that need to be displayed in the electronic map according to the device type and the state of the device.
In an embodiment of the invention, the method further comprises:
when it is determined that the user clicks the icon of the device to be displayed, displaying relevant information of the clicked device to be displayed;
the related information comprises: one or more of the latest reported data, the last reported time, the equipment number, the equipment name, the equipment position, the equipment picture and the equipment state.
In the embodiment of the present invention, each device reports data to an internet of things platform, where the data includes: temperature, illumination intensity, angle, vibration amplitude, door magnet state, pressure and the like.
Specifically, when a user clicks an icon of a device to be displayed, an information card of the device to be displayed is displayed, where the information card includes related information of the device to be displayed.
In an embodiment of the invention, the method further comprises:
when it is determined that the user clicks on the aggregation point,
and amplifying the current electronic map displayed on the terminal screen, and displaying the icon of the equipment to be displayed corresponding to the aggregation point on the current electronic map displayed on the terminal screen.
In the embodiment of the present invention, the device to be displayed corresponding to the aggregation point refers to a device to be displayed, where the aggregation point is obtained after aggregation. For example: there are 10 devices to be displayed that need to be aggregated in one area, aggregate the 10 devices to be displayed that need to be aggregated into one aggregation point, and then the device to be displayed corresponding to the aggregation point is the 10 devices to be displayed that need to be aggregated.
When a user clicks the aggregation point, the electronic map on the terminal screen is amplified, the aggregation point is converted into the icon of the corresponding device to be displayed along with the amplification of the electronic map, and after the icons of all the devices to be displayed corresponding to the aggregation point are displayed, the electronic map stops amplifying. As the electronic map is enlarged, the actual area displayed on the terminal screen becomes smaller. For example, the electronic map on the terminal screen displays an electronic map in beijing, wherein the electronic map has an aggregation point, when the user clicks the aggregation point, the electronic map on the terminal screen is enlarged, and finally, only the electronic map in the sunny area is displayed, and at this time, all the devices to be displayed corresponding to the aggregation point are displayed.
As shown in fig. 2, an embodiment of the present invention provides a method for displaying devices in an electronic map, including:
step 201: the method comprises the steps of setting a same icon for equipment belonging to the same equipment type in advance, setting different icons for equipment belonging to different equipment types, and setting different colors for different states of the equipment in advance.
For example, the wisdom well lid corresponds triangle-shaped, wisdom cigarette sense corresponds the square, and wisdom door magnetism corresponds trapezoidal, wisdom vibrations check out test set corresponds the pentagram. The alarm state of the equipment corresponds to red, the normal state of the equipment corresponds to blue, the working state of the equipment corresponds to green, and the off-line state of the equipment corresponds to gray.
Step 202: determining a current electronic map displayed on a terminal screen.
In the embodiment of the invention, only the part of the electronic map displayed on the terminal screen needs to be processed. For example: the whole electronic map is a Chinese map, and the electronic map currently displayed on the terminal screen is an electronic map in Beijing.
Step 203: the terminal screen is divided into a plurality of display areas.
Specifically, the terminal screen is divided into a plurality of squares of equal size.
Step 204: and acquiring the position of the device to be displayed, which needs to be displayed in the current electronic map.
Step 205: for each display area, performing: and judging whether the number of the devices to be displayed in the current display area is larger than a preset value or not, if so, aggregating the devices to be displayed in the current display area into an aggregation point, and displaying the aggregation point at a position corresponding to the current display area in the current electronic map, otherwise, displaying icons of the devices to be displayed in the current display area on the current electronic map.
For example, there are 10 devices to be displayed in the first square, 2 devices to be displayed in the second square, and 4 devices to be displayed in the third square. The preset value is 8. Then, the 10 devices to be displayed in the first square are aggregated into an aggregation point, and the aggregation point is displayed at the position corresponding to the first square. And displaying the icons of the 2 devices to be displayed at the position corresponding to the second square grid, and displaying the icons of the 4 devices to be displayed at the position corresponding to the third square grid.
Step 206: and acquiring the current state of each device to be displayed which does not need to be aggregated.
Specifically, since the to-be-displayed devices that need to be aggregated have been aggregated into one aggregation point, the states of all the to-be-displayed devices corresponding to the aggregation point cannot be marked, and thus, only the current state of the to-be-displayed device that does not need to be aggregated needs to be obtained.
For example, the current states of 2 devices to be displayed in the second grid and the current states of 4 devices to be displayed in the third grid are obtained.
Step 207: and determining the color to be displayed of each device to be displayed which does not need to be aggregated according to the current state of each device to be displayed which does not need to be aggregated.
For example, the current state of the device a to be displayed in the second square is an alarm state, and the color to be displayed of the device a to be displayed is determined to be red. And the current state of the equipment B to be displayed in the second grid is an off-line state, and the color to be displayed of the equipment B to be displayed is determined to be gray.
Step 208: for each device to be displayed which does not need to be aggregated, performing: in the current electronic map, the icon of the current device to be displayed is set to the color to be displayed of the current device to be displayed.
For example, the device a to be displayed is an intelligent smoke sensor, the device B to be displayed is an intelligent door magnet, and in the current electronic map, the square corresponding to the device a to be displayed is set to be red, and the trapezoid corresponding to the device B to be displayed is set to be gray.
In addition, in the embodiment of the present invention, the method further includes: the screen projection interface is preset, valuable data reported by all the devices are processed and analyzed in a unified mode in the screen projection interface, and the maximum advantage of the page can be that the data can be displayed in a large screen to display the data reported by the devices in a centralized mode. In the prior art, data processing and analysis are more placed in each module, and all data cannot be processed and displayed in a centralized mode. The data projection interface of the platform performs unified data analysis on the equipment through different latitudes. The data analysis latitude comprises the statistics of the number of the equipment according to the type of the equipment and the sub account number, the alarm and work order statistics in the last week, the work order completion ratio and the map position distribution of all the equipment.
As shown in fig. 3, an embodiment of the present invention provides an apparatus for displaying devices in an electronic map, including:
a first determination unit 301 for determining a current electronic map displayed on a terminal screen;
a first obtaining unit 302, configured to obtain a position of a device to be displayed, where the device to be displayed needs to be displayed in the current electronic map;
a first display unit 303, configured to aggregate, according to the location of the to-be-displayed device, the to-be-displayed devices that need to be aggregated into at least one aggregation point, and display, on the current electronic map, the at least one aggregation point and icons of the to-be-displayed devices that do not need to be aggregated;
a second obtaining unit 304, configured to obtain a current state of each device to be displayed that does not need to be aggregated;
a second determining unit 305, configured to determine, according to a current state of each device to be displayed that does not need to be aggregated, a color to be displayed of each device to be displayed that does not need to be aggregated;
a setting unit 306, configured to, for each to-be-displayed device that does not need to be aggregated, perform: in the current electronic map, setting an icon of the current equipment to be displayed as the color to be displayed of the current equipment to be displayed;
wherein each device corresponds to an icon, and different states of the devices correspond to different colors.
In an embodiment of the present invention, the apparatus further comprises:
the dividing unit is used for dividing the terminal screen into a plurality of display areas;
the display unit is configured to, for each of the display areas, perform:
judging whether the number of the devices to be displayed in the current display area is larger than a preset value or not, if so, determining that the devices to be displayed in the current display area are the devices to be displayed which need to be aggregated, aggregating the devices to be displayed in the current display area into an aggregation point, and displaying the aggregation point at a position corresponding to the current display area in the current electronic map, otherwise, determining that the devices to be displayed in the current display area are the devices to be displayed which do not need to be aggregated, and displaying icons of the devices to be displayed in the current display area on the current electronic map.
In an embodiment of the present invention, the apparatus further comprises:
the first screening unit is used for displaying the equipment to be displayed which belongs to the target equipment type on the current electronic map and forbidding displaying the equipment to be displayed which does not belong to the target equipment type when receiving an instruction of displaying equipment of the target equipment type input by a user.
In an embodiment of the present invention, the apparatus further comprises:
and the second screening unit is used for displaying the equipment to be displayed in the target state on the current electronic map and forbidding displaying the equipment to be displayed which is not in the target state when receiving an instruction which is input by a user and is used for displaying the equipment in the target state.
In an embodiment of the present invention, the devices belonging to the same device type of the apparatus correspond to one same icon, and the devices belonging to different device types correspond to different icons.
In an embodiment of the present invention, the alarm state of the device corresponds to red, the normal state of the device corresponds to blue, the operating state of the device corresponds to green, and the offline state of the device corresponds to gray.
In an embodiment of the present invention, the apparatus further comprises:
the second display unit is used for displaying relevant information of the clicked equipment to be displayed when the user clicks the icon of the equipment to be displayed;
the related information comprises: one or more of the latest reported data, the last reported time, the equipment number, the equipment name, the equipment position, the equipment picture and the equipment state.
In an embodiment of the present invention, the apparatus further comprises:
and the third display unit is used for amplifying the current electronic map displayed on the terminal screen when the user clicks the aggregation point, and displaying the icon of the device to be displayed corresponding to the aggregation point on the current electronic map displayed on the terminal screen.
It is to be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation to the apparatus for presenting a device in an electronic map. In other embodiments of the invention, the means for presenting the devices in an electronic map may comprise more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
The present invention also provides a computer readable medium storing instructions for causing a computer to perform a method of presenting devices in an electronic map as described herein. Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the embodiments disclosed, and it will be apparent to those skilled in the art that various combinations of the code auditing means in the various embodiments described above may be used to obtain further embodiments of the invention, which are also within the scope of the invention.

Claims (10)

1. A method for showing equipment in an electronic map is characterized in that,
presetting an icon for each device, presetting different colors for different states of the device, and comprising:
determining a current electronic map displayed on a terminal screen;
acquiring the position of equipment to be displayed, which needs to be displayed in the current electronic map;
according to the position of the to-be-displayed equipment, aggregating the to-be-displayed equipment needing aggregation into at least one aggregation point, and displaying the at least one aggregation point and icons of the to-be-displayed equipment not needing aggregation on the current electronic map;
acquiring the current state of each device to be displayed which does not need to be aggregated;
determining the color to be displayed of each device to be displayed which does not need to be aggregated according to the current state of each device to be displayed which does not need to be aggregated;
for each device to be displayed which does not need to be aggregated, executing: and in the current electronic map, setting the icon of the current device to be displayed as the color to be displayed of the current device to be displayed.
2. The method of claim 1,
further comprising: dividing the terminal screen into a plurality of display areas;
the aggregating the to-be-displayed devices which need to be aggregated into at least one aggregation point according to the positions of the to-be-displayed devices, and displaying the at least one aggregation point and the icons of the to-be-displayed devices which do not need to be aggregated on the current electronic map, includes:
for each of the display regions, performing:
judging whether the number of the devices to be displayed in the current display area is larger than a preset value or not, if so, determining that the devices to be displayed in the current display area are the devices to be displayed which need to be aggregated, aggregating the devices to be displayed in the current display area into an aggregation point, and displaying the aggregation point at a position corresponding to the current display area in the current electronic map, otherwise, determining that the devices to be displayed in the current display area are the devices to be displayed which do not need to be aggregated, and displaying icons of the devices to be displayed in the current display area on the current electronic map.
3. The method of claim 1,
further comprising:
when an instruction of displaying a device of a target device type input by a user is received, the device to be displayed belonging to the target device type is displayed on the current electronic map, and the device to be displayed not belonging to the target device type is prohibited from being displayed.
4. The method of claim 1,
further comprising:
when an instruction of displaying the equipment in the target state, which is input by a user, is received, the equipment to be displayed in the target state is displayed on the current electronic map, and the equipment to be displayed which is not in the target state is prohibited from being displayed.
5. The method according to any one of claims 1 to 4,
the setting of an icon for each device in advance comprises the following steps:
setting a same icon for the equipment belonging to the same equipment type, and setting different icons for the equipment belonging to different equipment types;
and/or the presence of a gas in the gas,
the setting different colors for different states of the device in advance comprises:
setting red for the alarm state of the equipment, setting blue for the normal state of the equipment, setting green for the working state of the equipment, and setting grey for the off-line state of the equipment;
and/or the presence of a gas in the gas,
further comprising:
when it is determined that the user clicks the icon of the device to be displayed, displaying relevant information of the clicked device to be displayed;
the related information comprises: one or more of the latest reported data, the latest reported time, the equipment number, the equipment name, the equipment position, the equipment picture and the equipment state;
and/or the presence of a gas in the gas,
further comprising:
when it is determined that the user clicks on the aggregation point,
and amplifying the current electronic map displayed on the terminal screen, and displaying the icon of the equipment to be displayed corresponding to the aggregation point on the current electronic map displayed on the terminal screen.
6. An apparatus for displaying devices in an electronic map, comprising:
a first determination unit for determining a current electronic map displayed on a terminal screen;
the first acquisition unit is used for acquiring the position of the equipment to be displayed, which needs to be displayed in the current electronic map;
the first display unit is used for aggregating the to-be-displayed devices needing to be aggregated into at least one aggregation point according to the positions of the to-be-displayed devices, and displaying the at least one aggregation point and icons of the to-be-displayed devices not needing to be aggregated on the current electronic map;
the second acquisition unit is used for acquiring the current state of each device to be displayed which does not need to be aggregated;
the second determining unit is used for determining the color to be displayed of each device to be displayed, which does not need to be aggregated, according to the current state of each device to be displayed, which does not need to be aggregated;
a setting unit, configured to execute, for each device to be displayed that does not need to be aggregated: in the current electronic map, setting an icon of the current equipment to be displayed as the color to be displayed of the current equipment to be displayed;
wherein each device corresponds to an icon, and different states of the devices correspond to different colors.
7. The apparatus of claim 6,
further comprising:
the dividing unit is used for dividing the terminal screen into a plurality of display areas;
the display unit is configured to, for each of the display areas, perform:
judging whether the number of the devices to be displayed in the current display area is larger than a preset value or not, if so, determining that the devices to be displayed in the current display area are the devices to be displayed which need to be aggregated, aggregating the devices to be displayed in the current display area into an aggregation point, and displaying the aggregation point at a position corresponding to the current display area in the current electronic map, otherwise, determining that the devices to be displayed in the current display area are the devices to be displayed which do not need to be aggregated, and displaying icons of the devices to be displayed in the current display area on the current electronic map.
8. The apparatus of claim 6,
further comprising:
the first screening unit is used for displaying the equipment to be displayed which belongs to the target equipment type on the current electronic map and forbidding displaying the equipment to be displayed which does not belong to the target equipment type when receiving an instruction of displaying equipment of the target equipment type input by a user.
9. The apparatus of claim 6,
further comprising:
and the second screening unit is used for displaying the equipment to be displayed in the target state on the current electronic map and forbidding displaying the equipment to be displayed which is not in the target state when receiving an instruction which is input by a user and is used for displaying the equipment in the target state.
10. The apparatus according to any one of claims 6 to 9,
the devices belonging to the same device type correspond to one same icon, and the devices belonging to different device types correspond to different icons;
and/or the presence of a gas in the gas,
the alarm state of the equipment corresponds to red, the normal state of the equipment corresponds to blue, the working state of the equipment corresponds to green, and the off-line state of the equipment corresponds to grey;
and/or the presence of a gas in the gas,
further comprising:
the second display unit is used for displaying relevant information of the clicked equipment to be displayed when the user clicks the icon of the equipment to be displayed;
the related information comprises: one or more of the latest reported data, the latest reported time, the equipment number, the equipment name, the equipment position, the equipment picture and the equipment state;
and/or the presence of a gas in the gas,
further comprising:
and the third display unit is used for amplifying the current electronic map displayed on the terminal screen when the user clicks the aggregation point, and displaying the icon of the device to be displayed corresponding to the aggregation point on the current electronic map displayed on the terminal screen.
CN201911107040.5A 2019-11-13 2019-11-13 Method and device for displaying equipment in electronic map Active CN110827658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911107040.5A CN110827658B (en) 2019-11-13 2019-11-13 Method and device for displaying equipment in electronic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911107040.5A CN110827658B (en) 2019-11-13 2019-11-13 Method and device for displaying equipment in electronic map

Publications (2)

Publication Number Publication Date
CN110827658A true CN110827658A (en) 2020-02-21
CN110827658B CN110827658B (en) 2022-11-25

Family

ID=69554573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911107040.5A Active CN110827658B (en) 2019-11-13 2019-11-13 Method and device for displaying equipment in electronic map

Country Status (1)

Country Link
CN (1) CN110827658B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111785153A (en) * 2020-05-23 2020-10-16 中兵勘察设计研究院有限公司 Engineering project display method, device and system based on electronic map
CN114840288A (en) * 2022-03-29 2022-08-02 北京旷视科技有限公司 Rendering method of distribution diagram, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087593A (en) * 2009-12-08 2011-06-08 手持产品公司 Remote device management interface
US20130044137A1 (en) * 2011-08-17 2013-02-21 Nils Forsblom Selective map marker aggregation
CN104836699A (en) * 2015-04-16 2015-08-12 深圳中兴网信科技有限公司 Equipment state processing method and equipment state processing system
CN106326304A (en) * 2015-06-30 2017-01-11 阿里巴巴集团控股有限公司 Page display method and device
CN107784017A (en) * 2016-08-30 2018-03-09 杭州海康威视系统技术有限公司 The polymerization and device of map resource point

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087593A (en) * 2009-12-08 2011-06-08 手持产品公司 Remote device management interface
US20130044137A1 (en) * 2011-08-17 2013-02-21 Nils Forsblom Selective map marker aggregation
CN104836699A (en) * 2015-04-16 2015-08-12 深圳中兴网信科技有限公司 Equipment state processing method and equipment state processing system
CN106326304A (en) * 2015-06-30 2017-01-11 阿里巴巴集团控股有限公司 Page display method and device
CN107784017A (en) * 2016-08-30 2018-03-09 杭州海康威视系统技术有限公司 The polymerization and device of map resource point

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111785153A (en) * 2020-05-23 2020-10-16 中兵勘察设计研究院有限公司 Engineering project display method, device and system based on electronic map
CN114840288A (en) * 2022-03-29 2022-08-02 北京旷视科技有限公司 Rendering method of distribution diagram, electronic device and storage medium

Also Published As

Publication number Publication date
CN110827658B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN110827658B (en) Method and device for displaying equipment in electronic map
US10834424B2 (en) Method and device for compressing image, and electronic device
US10447573B2 (en) Method and system for aggregating diagnostic analyzer related information
AU2019275490A1 (en) Method of processing push information, method of pushing advertisement information, device and platform
CN104272245A (en) Overscan support
CN108717357B (en) Page display code conversion method, device, equipment and computer storage medium
US20240126407A1 (en) Display control method and apparatus, electronic device, and medium
CN111726605B (en) Resolving power determining method and device, terminal equipment and storage medium
CN109656647B (en) Chart picture generation method, device and equipment and computer readable storage medium
WO2023082440A1 (en) Fault reproduction method and apparatus, and device and readable storage medium
CN114356191B (en) Circuit board image display method, device, equipment and storage medium
CN113082699B (en) Game display control method and device and electronic terminal
CN113961161A (en) Data display method, system, mobile terminal, storage medium and program product
CN107948572A (en) A kind of protocol level record screen back method
US20180081951A1 (en) Information generation system, a method and a non-transitory computer readable medium thereof
CN114578744B (en) Method and device for acquiring equipment operation data
CN115904572B (en) Template creation method, calling method, program product, system and device
CN108228841A (en) Method, apparatus, storage medium and the computer equipment of intelligent aggregation information
US20170139796A1 (en) Bus interface card detection system and method for detecting bus interface card
CN115938090A (en) Data early warning method and device, electronic equipment and computer readable storage medium
CN110875869B (en) Red packet identification method, system and terminal equipment
CN116126671A (en) Method, device, equipment and readable storage medium for testing electronic equipment
CN115080881A (en) Picture detection method and device, computer equipment and storage medium
CN116775176A (en) Form input processing method, device, equipment and medium
CN115501588A (en) Image rendering method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant