WO2018040796A1 - 地图中汇聚点生成方法和装置 - Google Patents

地图中汇聚点生成方法和装置 Download PDF

Info

Publication number
WO2018040796A1
WO2018040796A1 PCT/CN2017/094104 CN2017094104W WO2018040796A1 WO 2018040796 A1 WO2018040796 A1 WO 2018040796A1 CN 2017094104 W CN2017094104 W CN 2017094104W WO 2018040796 A1 WO2018040796 A1 WO 2018040796A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
convergence point
point
map
state information
Prior art date
Application number
PCT/CN2017/094104
Other languages
English (en)
French (fr)
Inventor
卢越
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018040796A1 publication Critical patent/WO2018040796A1/zh

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
    • 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
    • G09B29/007Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes using computer methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Definitions

  • the present disclosure relates to the field of electronic maps, for example, to a method and apparatus for generating a convergence point in a map.
  • the aggregation of feature points is a function of electronic maps.
  • the aggregation of feature points is to use a small number of points or icons to represent all the points in the map, so that the map display is clearer and clear, and the electronic map is used in the scene.
  • the map interface is cumbersome to display, and the map display occupies a large amount of system resources, causing browser crashes and jams, which affects the user experience.
  • the feature point aggregation is based on the coordinate information of multiple feature points on the map and the zoom level of the map, and the number of feature points in the plurality of grid blocks on the map is calculated by a certain algorithm.
  • All feature points in each grid block are represented by a convergence point icon, and the aggregation point icon generally has a number to indicate how many feature points the aggregation point represents.
  • the convergence point only roughly represents the relatively coarse position information of the child nodes it represents.
  • the child node is the feature point corresponding to the convergence point, but the child node is not completely expressed. Other state information of the node, and when the state information of the child node changes, the state change of the child node cannot be reflected.
  • the method and device for generating a convergence point in the map provided by the present disclosure can solve the problem that the convergence point in the map cannot reflect the state information of the feature point corresponding to the convergence point.
  • the embodiment provides a method for generating a convergence point in a map, including:
  • the display parameter of the convergence point is determined according to the current state information of the feature point, and the convergence point is generated and displayed on the display position according to the display parameter.
  • the embodiment further provides a convergence point generating device in the map, including:
  • a first determining module configured to determine a display position of a plurality of feature points and a convergence point in the map that are required to be represented by a convergence point in the current display scale
  • a second determining module configured to determine a display parameter of the convergence point according to current state information of the feature point
  • the display processing module is configured to generate and display a convergence point on the display position according to the display parameters.
  • the embodiment further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method for generating a convergence point in the map according to any one of the foregoing.
  • the method, device, and computer storage medium for generating a convergence point in a map by determining a display position of a plurality of feature points and a convergence point represented by a convergence point in the map at a current display ratio, and Obtaining the current state information of the feature point; determining the display parameter of the convergence point according to the current state information of the feature point, and generating and displaying the convergence point according to the display parameter at the display position; that is, determining the convergence according to the state information of the feature point corresponding to the convergence point
  • the display parameter of the point generates a convergence point according to the display parameter for display, so that the convergence point can reflect the state information of the corresponding element point, and only the number of corresponding element points can be displayed in the convergence point in the related art.
  • FIG. 1 is a flowchart of a method for generating a convergence point in a map according to Embodiment 1;
  • FIGS. 2a to 2c are schematic diagrams showing adjustment of a convergence point according to the second embodiment
  • FIG. 3 is a schematic diagram of a process of adjusting a convergence point when the state information of an element point changes in the second embodiment
  • FIG. 4 is a schematic diagram of a process of adjusting a convergence point when a map display ratio changes according to Embodiment 2;
  • FIG. 5 is a schematic diagram of a convergence point generating apparatus in a map according to Embodiment 3; FIG.
  • FIG. 6 is a schematic structural diagram of hardware of an electronic device according to Embodiment 4 of the present invention.
  • This embodiment provides a method for generating a convergence point in a map.
  • the method may include the following steps.
  • step 110 it is determined that the map needs to display the position of the plurality of feature points and the convergence points in the map with a convergence point under the current display scale, and acquire current state information of the feature points.
  • step 120 the display parameter of the convergence point is determined according to the current state information of the feature point, and the convergence point is generated and displayed on the display position according to the display parameter.
  • the feature points may be aggregated according to the display ratio of the current map to form a convergence point, and the display parameter of the convergence point is determined according to the current state information of the feature points corresponding to the convergence point, according to the display parameter.
  • the convergence point is set, and the convergence point is displayed at the corresponding position on the map at the convergence point, so that the convergence point can reflect the status information of the feature points corresponding to the convergence point.
  • the method for determining the convergence point may be to locate multiple feature points on the current map according to the current display ratio of the map, and perform aggregation of the feature points on the current feature points according to the processing method such as the grid method to form a convergence point.
  • the convergence point includes at least one feature point.
  • Determining the display position of the convergence point on the map may be determining the feature point corresponding to the convergence point, and determining the display position of the convergence point on the current map according to the current display ratio of the map.
  • the current state information of the feature point may be obtained by detecting the state of the feature point in the background of the server, and acquiring current state information of the multiple feature points.
  • the status information of the element point includes at least one of alarm information and alarm level information.
  • the current state information of the acquiring the feature point may be the alarm information corresponding to the current feature point, or the alarm level information of the alarm corresponding to the feature point, or the alarm information and the alarm level information.
  • the alarm information and the alarm level information may be information for setting an alarm event, where the alarm information may include an alarm state, such as an alarm and a normal state, and may also include an alarm event information; the alarm level information may be a zero level, a level
  • the alarm level can be set according to the alarm event and the user's needs. The zero level can also indicate no alarm, that is, the normal status.
  • the display parameter of the convergence point is determined according to the current state information of the feature point, and the convergence point is generated and displayed on the display position according to the display parameter, that is, the display of the convergence point corresponding to the feature point is determined according to the current state information of the feature point. status.
  • the determining the display parameter of the convergence point according to the current state information of the feature point includes: querying the correspondence between the preset state information and the display parameter according to the current state information of the feature point, and determining the display parameter of the convergence point.
  • the mapping between the state information of the feature point corresponding to the convergence point and the display parameter of the convergence point may be preset in the map display management system, for example, the state information of the feature point corresponding to the convergence point and the display of the convergence point may be set.
  • the convergence point After determining the current state information of the feature point, querying the preset according to the current state information Correspondence between the state information of the feature point and the display parameter of the convergence point to determine the display parameter of the convergence point corresponding to the feature point. After determining the display parameters of the convergence point, the convergence point is generated and displayed at the display position of the convergence point according to the display parameters.
  • the display parameter may include at least one of a color, a size, and a shape.
  • the correspondence between the state information of the feature point corresponding to the convergence point and the display parameter of the convergence point may be at least one of status information of the feature point corresponding to the convergence point and display color, display size, and display shape of the convergence point. Correspondence.
  • the correspondence between the state information of the feature point and the display parameter of the convergence point may be: the state of all the feature points corresponding to the convergence point is normal, and the display of the convergence point
  • the shape is a square or the color is blue; if the state information of at least one feature point corresponding to the convergence point is an alarm, the display shape of the convergence point is a circle or the display color is red.
  • the display shape and the display color of the plurality of convergence points may be set to be the same, and whether the aggregation point includes the feature point of the alarm state may be distinguished according to the display size.
  • the corresponding relationship between the state information of the feature point and the display parameter of the convergence point may be: if the alarm level of the feature point corresponding to the convergence point is zero, then the The display point of the convergence point is a square or the display color is blue; the alarm level of the feature point corresponding to the convergence point includes one or two levels, and the display shape of the convergence point is circular or the display color is red; and the convergence point If the alarm level of the corresponding feature point includes three or more levels, the display shape of the convergence point is circular and the display color is purple.
  • the setting parameter of the aggregation point can be selected according to the alarm level of the feature point corresponding to the convergence point, and the display parameter of the convergence point is usually determined according to the correspondence between the feature point and the convergence point with a high alarm level.
  • the correspondence between the state information of the feature point corresponding to the convergence point and the display parameter of the convergence point may further include a correspondence between the state information of the pixel point and the display size of the convergence point. That is, according to the state information of the feature points such as the alarm information and the alarm level information, at least one of the color, the size, and the shape of the convergence point may be selected to set the correspondence between the state information of the feature point and the display parameter of the convergence point.
  • the form of the correspondence between the state information of the feature points and the display parameters of the convergence point is not limited, and may be set as needed.
  • a convergence point is generated and displayed at a display position corresponding to the convergence point, and at least one of a display color, a display size, and a display shape of the convergence point may be set according to the display parameter.
  • the method for generating a convergence point in the map further includes: if the state information of any one of the plurality of feature points represented by the convergence point changes, re-based the current state of the feature point The information determines the display parameters of the aggregation point.
  • the current state information of the feature point can be determined, and the element is determined according to the current state information of the feature point.
  • the display parameter of the corresponding convergence point can adjust the display state of the convergence point according to the display parameter, or generate a new convergence point instead of the original display convergence point.
  • the method for generating a convergence point in the map may update the convergence point corresponding to the feature point according to the state information of the feature point, that is, update the rendering state of the convergence point, so that the The convergence point can reflect the current state information of the corresponding feature points, so that the display of the map is more in line with the actual situation, and the state information of the feature points is provided to the user.
  • the method for generating a convergence point in the provided map in the embodiment further includes: if the display proportion of the map changes, re-determining a plurality of feature points that the map needs to represent by a convergence point in the current display ratio. And a new display location of the new convergence point in the map, and obtaining current state information of the feature points indicated by the new convergence point; determining a new convergence point according to current state information of the feature points indicated by the new convergence point Display parameters, generate and display new convergence points on the new display position according to the display parameters of the new convergence point.
  • the re-aggregation of the feature points is triggered, a new convergence point is generated according to the changed display ratio, the feature points corresponding to the new convergence point are determined, and the new convergence is determined.
  • Click where to display on the current map. Determining current state information of the feature point corresponding to the new convergence point, determining a display parameter of the new convergence point according to the current state information, generating a display position of the new convergence point on the map according to the display parameter, and displaying the New gathering point.
  • the method for generating a convergence point in the map when the display scale of the map changes, that is, when the zoom level of the map changes, the feature point aggregation may be performed again to generate a new convergence point, and the reaggregation convergence point is adopted.
  • the current state information of the feature points corresponding to the convergence point is timely reflected, so that the user can intuitively obtain the state information of the feature points corresponding to the convergence point.
  • the method for generating a convergence point in the map determines the display position of the plurality of feature points and the convergence point in the map by using a convergence point in the current display scale, and obtains the current state information of the feature point.
  • the display parameter of the convergence point is determined according to the current state information of the feature point, and the convergence point is generated and displayed according to the display parameter at the display position; that is, the display parameter of the convergence point can be set according to the state information of the feature point corresponding to the convergence point, according to the
  • the display parameter generates a convergence point for display, so that the convergence point can reflect the state information of the corresponding element point, and the electronic map can be made compared to the method in which the convergence point can only display the number of corresponding element points in the related art.
  • the displayed information is more diverse, more in line with the needs of users, and improves the user experience.
  • the embodiment provides a method for generating a convergence point in a map, where the method can be applied to a map display management system including a browser, a foreground, and a background server, and the aggregation point generation method in the map performs element point aggregation to form an aggregation.
  • the process of point mapping and display can include the following steps.
  • the map display management system receives the user's opening operation of the map through the browser, and performs element point aggregation according to the user's opening operation of the map to form a map including the aggregation point and display.
  • the map display management system queries all the feature point related information, such as the location information, the display name, and the state information of the feature point, according to the operation of the user to open the map page, and the element is aggregated according to the convergence algorithm.
  • the points are divided into different blocks, and the feature points in the plurality of blocks are represented by the convergence points.
  • the convergence point A3, the convergence point B4, and the convergence point C are formed.
  • the state of the corresponding element point can be set to be normal, that is, the shape of the convergence point without the alarm is a square, and the shape of the corresponding element point is set to a circular shape of the alarm point, so that the user can intuitively understand the convergence.
  • the status information of the corresponding feature points can be set to be normal, that is, the shape of the convergence point without the alarm is a square, and the shape of the corresponding element point is set to a circular shape of the alarm point, so that the user can intuitively understand the convergence.
  • the convergence point A3 indicates that the convergence point A3 has three feature points, and the shape of the convergence point A3 is a square, indicating that the state of the three feature points corresponding to the convergence point is normal;
  • the convergence point B4 indicates that the convergence point B4 has four element points, and the shape of the convergence point B4 indicates that the state of at least one of the four element points corresponding to the convergence point is an alarm.
  • the map display management system temporarily stores information of which aggregation points are aggregated in the foreground cache, and according to whether there are alarms and alarm levels in the feature points.
  • the notification browser selects the display parameters of the aggregation point to perform the aggregation point rendering.
  • the map display management system detects whether it is necessary to adjust the currently displayed map, and if it receives a message that the status information of the element point changes, it is considered necessary Make convergence point adjustments.
  • the process of adjusting the convergence point can be referred to FIG. 3, wherein the status information of the acquired element point may be a status update message of the foreground to the server background subscription element point information in the map display management system.
  • the server background pushes the feature point status information update message to the foreground.
  • the point status information update message is used to calculate the convergence point to be updated, determine which element point status information changes, and determine the element point where the status information changes.
  • the current station updates the message according to the element point status information pushed by the background server, and determines that the state information of the element point changes, and then adjusts the convergence point corresponding to the element point.
  • the location information of the feature point may be determined by the foreground according to the feature point state information, and then the convergence point to be updated is notified to the browser, and the location information and the state information of the feature point are notified to the browser, and browsed.
  • the device re-renders the convergence point corresponding to the feature point according to the location information and the status information, and adjusts the display state of the convergence point.
  • the foreground may further determine, according to the convergence state of the feature points cached in the foreground, whether the feature points whose status information changes are existed alone or are aggregated into one large convergence point.
  • the browser receives the location information and status information of the feature points sent by the foreground, if the feature points are not aggregated into a large aggregation point, the unique existing feature points are directly re-rendered, as shown in FIG. 2a.
  • the convergence point C if the original state information of the convergence point is normal, is displayed as a square. When the convergence point state information is changed to an alarm, the display shape of the convergence point is adjusted to a circle, and the convergence point is adjusted.
  • the display state of C can be seen in Figure 2b.
  • the convergence point corresponding to the feature point is re-rendered, as shown in the aggregation point A3 shown in FIG. 2a, and the state of the three feature points corresponding to the convergence point A3 is Normally, when the status information of at least one element point corresponding to the convergence point A3 changes and becomes an alarm, the display shape of the convergence point A3 is adjusted to a circle, and the adjusted convergence point A3 can be as shown in FIG. 2b.
  • the aggregation point When the aggregation point is rendered, different ways can be selected according to the type of the alarm message to render the convergence point to highlight the alarm state of the element point.
  • the aggregation point needs to be re-rendered to a normal state by using a browser; if the alarm is sent, the convergence point needs to be rendered into an alarm state by the browser; if the convergence point originally corresponds to The feature point of the alarm state, but the alarm level of the feature point corresponding to the convergence point changes, the browser needs to render the convergence point as the display parameter corresponding to the feature point with the highest alarm level in the corresponding feature point. Indicates that the alarm level of the feature point corresponding to the convergence point has changed.
  • different rendering modes can be selected to indicate different alarm levels for distinguishing.
  • the map display management system detects whether it is necessary to adjust the currently displayed map, and if the adjustment instruction of the map display ratio is detected, it is considered that the current display map needs to be performed. Update.
  • the display scale of the map changes, when the display scale of the map changes, the re-aggregation of the feature points is triggered, the original convergence point in the map changes, and the status information of all the feature points is triggered.
  • the adjustment process of the convergence point may include the following steps.
  • the display scale of the map on the browser changes, the browser sends a message indicating that the map display ratio changes to the foreground, and the display scale of the foreground map is notified to change; after receiving the message that the map display ratio changes, the foreground zoom level according to the map.
  • the display scale re-aggregates the feature points in the map, and performs the calculation of the convergence point of the feature points in the current map to be updated, determines the convergence point that needs to be re-rendered, and notifies the browser of the convergence point that needs to be re-rendered, so that the browser The re-rendering of the convergence point is performed, and the browser displays the updated map on the map display interface, so that the displayed map can reflect the state information of the feature points corresponding to the plurality of convergence points in real time.
  • the original convergence point B4 reconverges to become a convergence point b and a convergence point.
  • B3 since the state of the element point b in the original convergence point B4 is an alarm, the display shape of the convergence point b including only the element point b independently displayed is a circle; and the state of the three element points corresponding to the convergence point b3 is Normally, the display shape of the convergence point b3 is a square.
  • the map shown in FIG. 2a or FIG. 2b is reduced, it is possible that the convergence point A3 and the convergence point B4 form a new convergence point.
  • the convergence point B4 corresponds to an element point whose state is an alarm, The newly generated convergence point has a circular shape.
  • the display parameters of the convergence point on the map are re-adjusted, that is, the convergence point is re-rendered, so that the convergence point
  • the display form of the convergence point can be adjusted according to the change of the state information of the element point corresponding to the convergence point or the display ratio of the map, so that the electronic map can reflect the state of the element point corresponding to the convergence point in real time and conveniently.
  • the present embodiment provides a device for generating a convergence point in a map.
  • the device may include: a first determining module 51, an obtaining module 52, a second determining module 53 and a display processing module 54.
  • the first determining module 51 is configured to determine a plurality of feature points and a display position of the convergence point in the map that need to be represented by one convergence point in the current display scale.
  • the acquisition module 52 is configured to obtain current state information of the feature points.
  • the second determining module 53 is configured to determine display parameters of the convergence point based on current state information of the feature points.
  • the display processing module 54 is arranged to generate and display a convergence point at the display location based on the display parameters.
  • the feature points may be aggregated according to the display ratio of the current map to form a convergence point, and then the display parameter of the convergence point is determined according to the current state information of the feature points corresponding to the convergence point, according to the display.
  • the parameter sets the convergence point, and displays the convergence point at the corresponding position on the map at the convergence point, so that the convergence point can reflect the state information of the feature point corresponding to the convergence point.
  • the first determining module 51 determines the display position of the plurality of element points and the convergence point in the map that the map needs to use a convergence point in the current display ratio, and may be based on the current display ratio of the map on the current map.
  • the plurality of feature points are positioned to determine the feature points on the current map display screen, and then the feature points are aggregated on the current feature points according to the processing method such as the grid method to form a convergence point; the convergence point includes at least one feature point.
  • the obtaining module 52 obtains current state information of the feature points, and may detect the state of the feature points through the background of the server, and acquire current state information of the plurality of feature points.
  • the second determining module 53 is configured to query the correspondence between the preset state information and the display parameter according to the current state information of the element point, and determine the display parameter of the convergence point.
  • the second determining module 53 determines the display parameter of the convergence point according to the current state information of the element point, and may preset the correspondence between the state information of the element point and the display parameter of the convergence point in the map display management system, for example, the corresponding point of the convergence point may be set.
  • a relationship table between the correspondence between the state information of the feature points and the display parameters of the convergence points and stores the relationship table.
  • the display processing module 54 After the current state information of the feature point is determined, the corresponding relationship between the state information of the preset feature point and the display parameter of the convergence point is queried according to the current state information to determine a display parameter of the convergence point corresponding to the feature point. After determining the display parameters of the convergence point, the display processing module 54 generates and displays the convergence point on the display position according to the display parameters.
  • the status information of the element points in this embodiment includes at least one of alarm information and alarm level information.
  • the display parameters of the convergence point include at least one of color, size, and shape.
  • the correspondence between the state information of the element point and the display parameter of the convergence point of at least one of the color, the size, and the shape of the convergence point may be selected.
  • the convergence point generating means the obtaining module 52 is configured to update the current state information of the element points.
  • the second determining module 53 is configured to determine the display parameter of the convergence point based on the current state information of the element point if the state information of any one of the plurality of feature points indicated by the convergence point changes.
  • the display processing module 54 is configured to generate and display a convergence point on the display location based on the re-determined display parameters.
  • the convergence point corresponding to the convergence point can still be reflected by the convergence point displayed on the map.
  • the current state, the current state information of the feature point may be determined by the obtaining module 52, and the second determining module 53 determines the display parameter of the convergence point corresponding to the feature point according to the current state information of the feature point, which may be displayed by the display processing module 54. Adjust the display state of the convergence point according to the display parameter, or generate a new convergence point instead of the original display convergence point.
  • the convergence point corresponding to the feature point may be updated according to the state information of the feature point, that is, the rendering state of the convergence point is updated, so that the convergence point can reflect the corresponding
  • the current state information of the feature points makes the display of the map more in line with the actual situation, and provides the user with state information of the feature points.
  • the first determining module 51 is configured to: if the display ratio of the map changes, re-determine that the map needs to be represented by a convergence point in the current display ratio. The new display location of the feature points and new convergence points in the map.
  • the acquisition module 52 is set to acquire current state information of the feature points represented by the new convergence point.
  • the second determining module 53 is a display parameter configured to determine a new convergence point based on current state information of the feature points indicated by the new convergence point.
  • the display processing module 54 is arranged to generate and display a new convergence point on the new display location based on the display parameters of the new convergence point.
  • the first determining module 51 may generate a new convergence point according to the changed display ratio, and determine the feature points corresponding to the new convergence point. And the location of the new convergence point on the current map.
  • the current state information of the feature point corresponding to the new convergence point is determined by the obtaining module 52, and the second determining module 53 determines the display parameter of the new convergence point according to the current state information, and is generated by the display processing module 54 according to the display parameter.
  • the new aggregation point displays the location on the map and displays the new convergence point.
  • the convergence point generating device in the map provided by the embodiment may change the display scale of the map, that is, when the zoom level of the map changes, the element point aggregation may be performed again to generate a new convergence point, and the reaggregation convergence point is adopted.
  • the current state information of the feature points corresponding to the convergence point is timely reflected, so that the user can intuitively obtain the state information of the feature points corresponding to the convergence point.
  • the convergence point generating device determines the display position of the plurality of element points and the convergence point in the map by using a convergence point in the current display scale, and acquires the current state information of the element point.
  • the display parameter of the convergence point is determined according to the current state information of the feature point, and the convergence point is generated and displayed according to the display parameter at the display position; that is, the display parameter of the convergence point can be set according to the state information of the feature point corresponding to the convergence point, according to the The display parameter generates a convergence point for display, so that the convergence point can reflect the state information of the corresponding element point.
  • the convergence point can only display the number of element points corresponding to the convergence point.
  • the aggregation point generating device in the map provided by the example can make the information displayed by the electronic map more diversified, more in line with the needs of the user, and improve the user experience.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for performing the above method.
  • FIG. 6 is a schematic diagram showing the hardware structure of an electronic device according to Embodiment 4, as shown in FIG. 6, the electronic device includes: one or more processors 410 and a memory 420.
  • One processor 410 is taken as an example in FIG.
  • the electronic device may further include an input device 430 and an output device 440.
  • the processor 410, the memory 420, the input device 430, and the output device 440 in the electronic device may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the input device 430 can receive input numeric or character information
  • the output device 440 can include a display device such as a display screen.
  • the memory 420 is a computer readable storage medium that can be used to store software programs, computer executable programs, and modules.
  • the processor 410 executes various functional applications and data processing by executing software programs, instructions, and modules stored in the memory 420 to implement any of the above-described embodiments.
  • the memory 420 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the electronic device, and the like.
  • the memory may include a volatile memory such as a random access memory (RAM), and may also include a non-volatile memory, such as at least one Disk storage devices, flash devices, or other non-transitory solid state storage devices.
  • Memory 420 can be a non-transitory computer storage medium or a transitory computer storage medium.
  • the non-transitory computer storage medium such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 420 can optionally include memory remotely located relative to processor 410, which can be connected to the electronic device over a network. Examples of the above networks may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Input device 430 can be used to receive input digital or character information and to generate key signal inputs related to user settings and function control of the electronic device.
  • Output device 440 can include a display device such as a display screen.
  • the electronic device of this embodiment may further include communication means for transmitting and/or receiving information over the communication network.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by executing related hardware by a computer program, and the program can be stored in a non-transitory computer readable storage medium.
  • the program when executed, may include the flow of an embodiment of the method as described above, wherein the non-transitory computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM). Wait.
  • the plurality of modules or steps of the embodiment may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, they may be used
  • the program code executable by the computing device is implemented such that they can be stored in a computer storage medium (ROM/RAM, disk, optical disk) by a computing device, and in some cases, may be different from
  • the steps shown or described are performed sequentially, or they are separately fabricated into a plurality of integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module.
  • the method and device for generating a convergence point in a map provided by the present disclosure may set display parameters of the convergence point according to state information of the feature points corresponding to the convergence point, generate a convergence point according to the display parameter, and display the convergence point so that the convergence point can reflect
  • the state information of the corresponding feature point is compared with the way that the convergence point of the related art can only display the number of feature points corresponding to the convergence point, and the convergence point in the map provided by the present disclosure
  • the generating method and device can make the information displayed by the electronic map more diversified, more in line with the needs of the user, and improve the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Databases & Information Systems (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • Computer Hardware Design (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Ecology (AREA)
  • Navigation (AREA)
  • Instructional Devices (AREA)

Abstract

一种地图中汇聚点生成方法和装置,其中,方法包括:确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和汇聚点在地图中的显示位置,以及获取要素点的当前状态信息(S110);根据要素点的当前状态信息确定汇聚点的显示参数,根据显示参数在显示位置上生成并显示汇聚点(S120)。

Description

地图中汇聚点生成方法和装置 技术领域
本公开涉及电子地图领域,例如涉及一种地图中汇聚点生成方法和装置。
背景技术
在电子地图的应用中,要素点聚合显示是电子地图的一项功能,要素点聚合是用少量的点或图标来表示地图中的所有点,让地图显示更清晰明朗,避免电子地图使用场景中需要呈现的要素点过多时,地图界面显示繁琐,及地图显示占用大量系统资源,引发浏览器的崩溃、卡顿,影响用户体验的问题。地图汇聚技术中,进行要素点聚合是根据多个要素点在地图上的坐标信息以及地图的缩放级别,来通过一定的算法计算地图上的多个网格区块内的要素点个数,把每个网格区块内的所有要素点用一个汇聚点图标来表示,汇聚点图标上一般会带有一个数字来表示本汇聚点代表了多少个要素点。这种要素点聚合的方式,汇聚点只在一定程度上大致表示了其代表的子节点的比较粗略的位置信息,该子节点即为汇聚点对应的要素点,但是没有完整的表达出其子节点的其他状态信息,且当子节点的状态信息发生变化时,也无法体现出子节点的状态变化。
发明内容
本公开提供的地图中汇聚点生成方法和装置,可以解决地图中的汇聚点无法体现出与汇聚点对应的要素点的状态信息的问题。
本实施例提供一种地图中汇聚点生成方法,包括:
确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和汇聚点在地图中的显示位置,以及获取要素点的当前状态信息;
根据要素点的当前状态信息确定汇聚点的显示参数,根据显示参数在显示位置上生成并显示汇聚点。
本实施例还提供一种地图中汇聚点生成装置,包括:
第一确定模块,设置为确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和汇聚点在地图中的显示位置;
获取模块,设置为获取要素点的当前状态信息;
第二确定模块,设置为根据要素点的当前状态信息确定汇聚点的显示参数;
显示处理模块,设置为根据显示参数在显示位置上生成并显示汇聚点。
本实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行前述的任一项的地图中汇聚点生成方法。
根据本实施例提供的地图中汇聚点生成方法、装置以及计算机存储介质,通过确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和汇聚点在地图中的显示位置,以及获取要素点的当前状态信息;根据要素点的当前状态信息确定汇聚点的显示参数,根据显示参数在显示位置上生成并显示汇聚点;即可以根据汇聚点对应的要素点的状态信息确定该汇聚点的显示参数,根据该显示参数生成汇聚点进行显示,使得该汇聚点可以体现出其对应的要素点的状态信息,相比于相关技术中汇聚点只能显示其对应的要素点的个数的方式,可以使得地图显示的信息更加多样化,更加符合用户的需求,提高了用户体验。
附图说明
图1为本实施例一的地图中汇聚点生成方法流程图;
图2a至图2c为本实施例二的汇聚点调整示意图;
图3为本实施例二的要素点状态信息发生变化时汇聚点调整过程示意图;
图4为本实施例二的地图显示比例发生变化时汇聚点调整过程示意图;
图5为本实施例三的地图中汇聚点生成装置示意图;
图6为本实施例四的一种电子设备的硬件结构示意图。
具体实施方式
下面通过具体实施方式结合附图对本实施例作详细说明。
实施例一
本实施例提供一种地图中汇聚点生成方法,请参见图1,该方法可以包括以下步骤。
在步骤110中,确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和汇聚点在地图中的显示位置,以及获取要素点的当前状态信息。
在步骤120中,根据要素点的当前状态信息确定汇聚点的显示参数,根据显示参数在显示位置上生成并显示汇聚点。
可选地,在地图的生成过程中,可以根据当前地图的显示比例进行要素点汇聚,形成汇聚点,根据汇聚点对应的要素点的当前状态信息,确定汇聚点的显示参数,根据该显示参数设置汇聚点,并在该汇聚点在地图上的对应位置显示该汇聚点,使得汇聚点可以体现出与汇聚点对应的要素点的状态信息。
对于步骤110,确定汇聚点的方式可以是根据地图的当前显示比例,对当前地图上的多个要素点进行定位,根据网格法等处理方式,对当前要素点进行要素点聚合,形成汇聚点;该汇聚点包括至少一个要素点。
确定汇聚点在地图上的显示位置可以是确定汇聚点对应的要素点,并根据该地图当前的显示比例,确定该汇聚点在当前地图上的显示位置。
获取要素点的当前状态信息可以是通过服务器后台对要素点的状态进行检测,获取多个要素点的当前状态信息。
本实施例中,要素点的状态信息包括:告警信息和告警级别信息中的至少一种。可选地,获取要素点的当前状态信息可以是获取要素点当前对应的告警信息,也可以是获取要素点对应告警的告警级别信息,或者同时获取告警信息和告警级别信息。该告警信息和告警级别信息可以是针对告警事件进行设置的信息,其中告警信息可以包括告警状态,如告警和正常两种状态,还可以包括告警事件信息;告警级别信息可以是零级、一级和二级等,告警级别可以根据告警事件和用户需要设置,其中零级也可以表示无告警,即正常状态。
对于步骤120,根据要素点的当前状态信息确定汇聚点的显示参数,根据显示参数在显示位置上生成并显示汇聚点,即为根据要素点的当前状态信息确定与要素点对应的汇聚点的显示状态。
其中,根据要素点的当前状态信息确定汇聚点的显示参数包括:根据要素点的当前状态信息,查询预设的状态信息与显示参数的对应关系,确定出汇聚点的显示参数。可选地,可以在地图显示管理系统中预先设置汇聚点对应的要素点的状态信息与汇聚点的显示参数的对应关系,如可以设置包含汇聚点对应的要素点的状态信息与汇聚点的显示参数的对应关系的关系表,并将关系表进行存储。在确定了要素点的当前状态信息后,根据该当前状态信息查询预设的 要素点的状态信息与汇聚点的显示参数的对应关系,以确定该要素点对应的汇聚点的显示参数。在确定汇聚点的显示参数后,根据显示参数在汇聚点的显示位置上生成并显示汇聚点。
本实施例中,显示参数可以包括:颜色、大小和形状中的至少一种。可选地,汇聚点对应的要素点的状态信息与汇聚点的显示参数的对应关系可以是汇聚点对应的要素点的状态信息与汇聚点的显示颜色、显示大小和显示形状中至少一种参数的对应关系。例如,当要素点的状态信息包括告警信息时,要素点的状态信息与汇聚点的显示参数的对应关系可以是:与汇聚点对应的所有要素点的状态都为正常,则该汇聚点的显示形状为正方形或者颜色为蓝色;与汇聚点对应的至少一个要素点的状态信息为告警,则该汇聚点的显示形状为圆形或者显示颜色为红色。另外,也可以将多个汇聚点的显示形状和显示颜色设置为相同的,根据显示大小区别汇聚点是否包含有告警状态的要素点。
可选地,当要素点的状态信息包括告警级别信息时,要素点的状态信息与汇聚点的显示参数的对应关系可以是:与汇聚点对应的要素点的告警级别均为零级,则该汇聚点的显示形状为正方形或显示颜色为蓝色;与汇聚点对应的要素点的告警级别包括一级或二级,则该汇聚点的显示形状为圆形或显示颜色为红色;与汇聚点对应的要素点的告警级别包括三级或三级以上,则该汇聚点的显示形状圆形,显示颜色为紫色。即可以根据汇聚点对应的要素点的告警级别选择汇聚点的设置参数,通常根据告警级别高的要素点与汇聚点的对应关系确定该汇聚点的显示参数。另外,汇聚点对应的要素点的状态信息与汇聚点的显示参数的对应关系还可以包括像素点的状态信息与汇聚点的显示大小的对应关系。即可以根据告警信息和告警级别信息等要素点的状态信息,选择汇聚点的颜色、大小和形状中的至少一种参数设置要素点的状态信息与汇聚点的显示参数的对应关系。本实施例中,对要素点的状态信息与汇聚点的显示参数的对应关系的形式不做限定,其可以根据需要设置。另外,根据该显示参数在该汇聚点对应的显示位置上生成并显示汇聚点,可以是根据该显示参数设置汇聚点的显示颜色、显示大小和显示形状中的至少一种参数。
可选地,本实施例中的提供的地图中汇聚点生成方法,还包括:若汇聚点所表示的多个要素点中任一要素点的状态信息发生变化,则重新根据要素点的当前状态信息确定汇聚点的显示参数。
可选地,由于要素点的状态信息会随着告警事件而发生变化,当该要素点 的状态信息发生变化后,为使地图上显示的汇聚点仍能体现出与该汇聚点对应的要素点的当前状态,可以确定要素点的当前状态信息,根据要素点的当前状态信息确定与要素点对应的汇聚点的显示参数,可以根据该显示参数调整汇聚点的显示状态,或生成新的汇聚点替代原显示的汇聚点。
本实施例提供的地图中汇聚点生成方法,在要素点的状态发生变化时,可以根据要素点的状态信息对该要素点对应的汇聚点进行更新,即更新该汇聚点的渲染状态,使得该汇聚点能体现出其对应的要素点的当前状态信息,使得地图的显示更加符合实际情况,为用户提供要素点的状态信息。
可选地,本实施例中的提供的地图中汇聚点生成方法,还包括:若地图的显示比例发生变化,则重新确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和新的汇聚点在地图中的新的显示位置,以及获取新的汇聚点所表示的要素点的当前状态信息;根据新的汇聚点所表示的要素点的当前状态信息确定新的汇聚点的显示参数,根据新的汇聚点的显示参数在新的显示位置上生成并显示新的汇聚点。
可选地,当显示地图的显示比例发生变化时,会触发要素点的重新聚合,根据变化后的显示比例生成新的汇聚点,确定该新的汇聚点对应的要素点,及该新的汇聚点在当前地图上的显示位置。确定该新的汇聚点对应的要素点的当前状态信息,根据该当前状态信息确定该新的汇聚点的显示参数,根据该显示参数生成该新的汇聚点在地图上的显示位置,并显示该新的汇聚点。
本实施例提供的地图中汇聚点生成方法,在地图的显示比例发生变化,即地图的缩放层级发生变化时,可以重新进行要素点聚合以生成新的汇聚点,并通过该重新聚合的汇聚点及时体现出与该汇聚点对应的要素点的当前状态信息,使得用户能直观的获取到该汇聚点对应的要素点的状态信息。
本实施例提供的地图中汇聚点生成方法,通过确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和汇聚点在地图中的显示位置,以及获取要素点的当前状态信息;根据要素点的当前状态信息确定汇聚点的显示参数,根据显示参数在显示位置上生成并显示汇聚点;即可以根据汇聚点对应的要素点的状态信息设置该汇聚点的显示参数,根据该显示参数生成汇聚点进行显示,使得该汇聚点可以体现出其对应的要素点的状态信息,相比于相关技术中汇聚点只能显示其对应的要素点的个数的方式,可以使得电子地图显示的信息更加多样化,更加符合用户的需求,提高了用户体验。
实施例二
本实施例提供一种地图中汇聚点生成方法,所述方法可以应用于包含浏览器、前台和后台服务器的地图显示管理系统中,通过该地图中汇聚点生成方法进行要素点聚合,形成包含汇聚点的地图并显示的过程可以包括以下步骤。
地图显示管理系统通过浏览器接收用户对地图的打开操作,根据用户对地图的打开操作,进行要素点聚合,形成包含汇聚点的地图并显示。
例如,在初次渲染汇聚点时,地图显示管理系统根据用户打开地图页面的操作,通过后台接口查询出所有要素点相关信息,如要素点的位置信息、显示名称以及状态信息,根据汇聚算法将要素点划分到不同的区块内,将多个区块内的要素点用汇聚点来表示,如图2a所示,形成汇聚点A3、汇聚点B4和汇聚点C。在渲染汇聚点时,对于一个区块来说,需要根据本区块内的要素点中是否有一个或多个要素点有告警信息和告警级别中的至少一种来选择对应的汇聚点的显示参数,并根据该汇聚点的显示参数渲染该区域内的汇聚点。如可以设置对应的要素点的状态都为正常,即无告警的汇聚点的形状为正方形,设置对应的要素点的状态为告警的汇聚点的形状为圆形,以使用户直观地了解到汇聚点对应的要素点的状态信息。
如图2a所示的地图,其中汇聚点A3表示该汇聚点A3对应有三个要素点,汇聚点A3的形状为正方形,则说明该汇聚点对应的三个要素点的状态都为正常;另外,汇聚点B4表示该汇聚点B4对应有四个要素点,其形状为圆形,则说明该汇聚点对应的四个要素点中至少有一个要素点的状态为告警。
可选地,在聚合形成汇聚点时,地图显示管理系统将每个汇聚点是由哪些要素点汇聚而成的信息临时存放在前台缓存中,再根据这些要素点中是否有告警以及告警级别来通知浏览器选择汇聚点的显示参数,进行汇聚点渲染。
可选地,在形成包含汇聚点的地图,并将地图进行显示后,地图显示管理系统检测是否需要对当前显示的地图进行调整,若接收到要素点的状态信息发生变化的消息,则认为需要进行汇聚点调整。在要素点的状态信息发生变化时,进行汇聚点调整的过程可参见图3,其中,获取要素点的状态信息可以是地图显示管理系统中的前台向服务器后台订阅要素点状态信息更新消息,由服务器后台向前台推送要素点状态信息更新消息。
当前台接收到后台服务器推送的要素点状态信息更新消息后,根据该要素 点状态信息更新消息进行待更新汇聚点计算,判断是哪些要素点的状态信息发生变化,确定状态信息发生变化的要素点。当前台根据后台服务器推送的要素点状态信息更新消息,判断要素点的状态信息发生变化后,进行该要素点对应的汇聚点的调整。可选地,可以是由前台根据要素点状态信息确定该要素点的位置信息,然后将待更新汇聚点通知给浏览器,如将该要素点的位置信息和状态信息通知给浏览器,由浏览器根据该位置信息和状态信息对该要素点对应的汇聚点进行重新渲染,调整汇聚点的显示状态。
可选地,前台还可以根据在前台缓存的要素点的汇聚状态来判断状态信息发生变化的要素点是单独存在还是被汇聚到了一个大的汇聚点中。在浏览器接收到前台发送的要素点的位置信息和状态信息后,若该要素点没有被汇聚到一个大的汇聚点中时,则直接重新渲染这个单独存在的要素点,如图2a所示的汇聚点C,若该汇聚点原先的状态信息为正常,则显示为正方形,当该汇聚点状态信息改变为告警时,则将该汇聚点的显示形状调整为圆形,调整后该汇聚点C的显示状态体可参见图2b。如果该要素点被汇聚到一个大的汇聚点中时,则重新渲染该要素点对应的汇聚点,如图2a所示的汇聚点A3,该汇聚点A3对应的三个要素点的状态都为正常,当该汇聚点A3对应的至少一个要素点的状态信息发生变化,变为告警时,将该汇聚点A3的显示形状调整为圆形,调整后的汇聚点A3可如图2b所示。
渲染汇聚点时可以根据告警消息的类型选择不同方式来渲染汇聚点,以突显要素点的告警状态。可选地,如果是告警恢复通知,则需要通过浏览器把汇聚点重新渲染到正常状态;如果是告警发送通知,则需要通过浏览器把汇聚点渲染成告警状态;如果汇聚点原来就对应有告警状态的要素点,但是与该汇聚点对应的要素点的告警级别发生了变化,则也需要通过浏览器把汇聚点渲染为对应的要素点中告警级别最高的要素点对应的显示参数,以表示与该汇聚点对应的要素点的告警级别发生变化。另外,当告警级别发生变化时,可以选择不同的渲染方式来表示不同的告警级别以作区分。
另外,在形成包含汇聚点的地图,并将地图进行显示后,地图显示管理系统检测是否需要对当前显示的地图进行调整,若检测到地图显示比例的调整指令,则认为需要进行当前显示地图的更新。可选地,若是地图的显示比例发生变化,则在地图的显示比例发生变化时,会触发要素点的重新聚合,地图中的原有汇聚点发生改变,并触发对所有的要素点的状态信息和位置信息的判断, 获取所有要素点的当前状态信息,根据地图层级改变后的汇聚状态,判断每个要素点是单独存在还是被汇聚到一个大汇聚点中,根据该要素点的状态信息来渲染单个要素点或者要素点聚合成的汇聚点的图标。
请参见图4,当地图显示比例发生变化时,汇聚点的调整过程可以包括以下步骤。
浏览器上地图的显示比例发生变化,浏览器向前台发送地图显示比例发生改变的消息,通知前台地图的显示比例发生了变化;前台接收到地图显示比例发生改变的消息后,根据地图当前缩放层级或显示比例重新汇聚地图中的要素点,并对当前地图中的要素点的状态信息进行待更新汇聚点计算,确定需要重新渲染的汇聚点,通知浏览器需要重新渲染的汇聚点,使得浏览器进行汇聚点的重新渲染,浏览器将更新后的地图显示在地图显示界面上,以使得显示出的地图能实时体现出与多个汇聚点对应的要素点的状态信息。
可选地,将图2a或图2b所示的地图进行放大后,可如图2c所示,其中,由于地图的显示比例变大,使得原汇聚点B4重新汇聚后成为汇聚点b和汇聚点b3,由于原汇聚点B4中的要素点b的状态为告警,则独立显示的只包含要素点b的汇聚点b的显示形状为圆形;而汇聚点b3对应的三个要素点的状态都为正常,该汇聚点b3的显示形状为正方形。另外,若是将图2a或图2b所示的地图进行缩小,则有可能使得汇聚点A3和汇聚点B4形成一个新的汇聚点,此时由于汇聚点B4对应有状态为告警的要素点,则新生成的汇聚点的显示形状为圆形。
本实施例中,在汇聚点对应的要素点的状态信息发生变化或者地图的显示比例发生变化时,对地图上的汇聚点的显示参数进行重新调整,即对汇聚点重新进行渲染,使得汇聚点能根据与该汇聚点对应的要素点的状态信息的变化或者地图的显示比例的变化,调整汇聚点的显示形式,使得电子地图能够实时、便捷的反映出与汇聚点对应的要素点的状态,给用户更好的地图使用体验,且不会使用户遗漏主要的要素点的状态信息,提高了用户的体验。
实施例三
本实施例提供一种地图中汇聚点生成装置,请参见图5,所述装置可以包括:第一确定模块51,获取模块52,第二确定模块53和显示处理模块54。
其中,第一确定模块51设置为确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和汇聚点在地图中的显示位置。
获取模块52设置为获取要素点的当前状态信息。
第二确定模块53设置为根据要素点的当前状态信息确定汇聚点的显示参数。
显示处理模块54设置为根据显示参数在显示位置上生成并显示汇聚点。
可选地,在地图的生成过程中,可以根据当前地图的显示比例进行要素点汇聚,形成汇聚点,然后根据汇聚点对应的要素点的当前状态信息,确定汇聚点的显示参数,根据该显示参数设置汇聚点,并在该汇聚点在地图上的对应位置显示该汇聚点,使得汇聚点可以体现出与该汇聚点对应的要素点的状态信息。
其中,第一确定模块51确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和汇聚点在地图中的显示位置,可以是根据地图的当前显示比例,对当前地图上的多个要素点进行定位,确定当前地图显示画面上的要素点,然后根据网格法等处理方式,对当前要素点进行要素点聚合,形成汇聚点;该汇聚点包括至少一个要素点。
获取模块52获取要素点的当前状态信息,可以是通过服务器后台对要素点的状态进行检测,获取多个要素点的当前状态信息。
本实施例中,第二确定模块53是设置为根据要素点的当前状态信息,查询预设的状态信息与显示参数的对应关系,确定出汇聚点的显示参数。第二确定模块53根据要素点的当前状态信息确定汇聚点的显示参数,可以在地图显示管理系统中预先设置要素点的状态信息与汇聚点的显示参数的对应关系,如可以设置包含汇聚点对应的要素点的状态信息与汇聚点的显示参数的对应关系的关系表,并将关系表进行存储。在确定了要素点的当前状态信息后,根据该当前状态信息查询预设的要素点的状态信息与汇聚点的显示参数的对应关系,以确定该要素点对应的汇聚点的显示参数。在确定汇聚点的显示参数后,由显示处理模块54根据显示参数在显示位置上生成并显示汇聚点。
本实施例中的要素点的状态信息包括:告警信息和告警级别信息中的至少一种。汇聚点的显示参数包括:颜色、大小和形状中的至少一种。可选地,可以根据告警信息和告警级别信息等要素点的状态信息,选择汇聚点的颜色、大小、形状中的至少一种参数设置要素点的状态信息与汇聚点的显示参数的对应关系。
可选地,本实施的提供的地图中汇聚点生成装置,获取模块52是设置为更新要素点的当前状态信息。
第二确定模块53是设置为若汇聚点所表示的多个要素点中任一要素点的状态信息发生变化,则重新根据要素点的当前状态信息确定汇聚点的显示参数。
显示处理模块54是设置为根据重新确定的显示参数在显示位置上生成并显示汇聚点。可选地,由于要素点的状态信息会随着告警事件而发生变化,当该要素点的状态信息发生变化后,为使地图上显示的汇聚点仍能体现出该汇聚点对应的要素点的当前状态,还可以通过获取模块52确定要素点的当前状态信息,由第二确定模块53根据该要素点的当前状态信息确定与该要素点对应的汇聚点的显示参数,可以由显示处理模块54根据该显示参数调整汇聚点的显示状态,或生成新的汇聚点替代原显示的汇聚点。
本实施例中,在要素点的状态发生变化时,可以根据要素点的状态信息对该要素点对应的汇聚点进行更新,即更新该汇聚点的渲染状态,使得该汇聚点能体现出其对应的要素点的当前状态信息,使得地图的显示更加符合实际情况,为用户提供要素点的状态信息。
可选地,本实施的提供的地图中汇聚点生成装置,第一确定模块51是设置为若地图的显示比例发生变化,则重新确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和新的汇聚点在地图中的新的显示位置。
获取模块52是设置为获取新的汇聚点所表示的要素点的当前状态信息。
第二确定模块53是设置为根据新的汇聚点所表示的要素点的当前状态信息确定新的汇聚点的显示参数。
显示处理模块54是设置为根据新的汇聚点的显示参数在新的显示位置上生成并显示新的汇聚点。
可选地,当显示地图的显示比例发生变化时,会触发要素点的重新聚合,第一确定模块51可以根据变化后的显示比例生成新的汇聚点,确定该新的汇聚点对应的要素点,及该新的汇聚点在当前地图上的显示位置。由获取模块52确定新的汇聚点对应的要素点的当前状态信息,由第二确定模块53根据该当前状态信息确定该新的汇聚点的显示参数,以及由显示处理模块54根据该显示参数生成该新的汇聚点在地图上显示位置,并显示该新的汇聚点。
本实施例提供的地图中汇聚点生成装置,在地图的显示比例发生变化,即地图的缩放层级发生变化时,可以重新进行要素点聚合以生成新的汇聚点,并通过该重新聚合的汇聚点及时体现出与该汇聚点对应的要素点的当前状态信息,使得用户能直观的获取到该汇聚点对应的要素点的状态信息。
本实施例提供的地图中汇聚点生成装置,通过确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和汇聚点在地图中的显示位置,以及获取要素点的当前状态信息;根据要素点的当前状态信息确定汇聚点的显示参数,根据显示参数在显示位置上生成并显示汇聚点;即可以根据汇聚点对应的要素点的状态信息设置该汇聚点的显示参数,根据该显示参数生成汇聚点进行显示,使得该汇聚点可以体现出其对应的要素点的状态信息,相比于相关技术中汇聚点只能显示该汇聚点对应的要素点的个数的方式,本实施例提供的地图中汇聚点生成装置可以使得电子地图显示的信息更加多样化,更加符合用户的需求,提高了用户体验。
实施例四
本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。
图6为本实施例四的一种电子设备的硬件结构示意图,如图6所示,该电子设备包括:一个或多个处理器410和存储器420。图6中以一个处理器410为例。
所述电子设备还可以包括:输入装置430和输出装置440。
所述电子设备中的处理器410、存储器420、输入装置430和输出装置440可以通过总线或者其他方式连接,图6中以通过总线连接为例。
输入装置430可以接收输入的数字或字符信息,输出装置440可以包括显示屏等显示设备。
存储器420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块。处理器410通过运行存储在存储器420中的软件程序、指令以及模块,从而执行多种功能应用以及数据处理,以实现上述实施例中的任意一种方法。
存储器420可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器可以包括随机存取存储器(Random Access Memory,RAM)等易失性存储器,还可以包括非易失性存储器,例如至少一个 磁盘存储器件、闪存器件或者其他非暂态固态存储器件。
存储器420可以是非暂态计算机存储介质或暂态计算机存储介质。该非暂态计算机存储介质,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器420可选包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至电子设备。上述网络的实例可以包括互联网、企业内部网、局域网、移动通信网及其组合。
输入装置430可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。输出装置440可包括显示屏等显示设备。
本实施例的电子设备还可以包括通信装置,通过通信网络传输和/或接收信息。
本领域普通技术人员可理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来执行相关的硬件来完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序在执行时,可包括如上述方法的实施例的流程,其中,该非暂态计算机可读存储介质可以为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。
本实施例的多个模块或多个步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在计算机存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在一些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成多个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
工业实用性
本公开提供的地图中汇聚点生成方法和装置,可以根据汇聚点对应的要素点的状态信息设置该汇聚点的显示参数,根据该显示参数生成汇聚点进行显示,使得该汇聚点可以体现出其对应的要素点的状态信息,相比于相关技术中汇聚点只能显示该汇聚点对应的要素点的个数的方式,本公开提供的地图中汇聚点 生成方法和装置可以使得电子地图显示的信息更加多样化,更加符合用户的需求,提高了用户体验。

Claims (13)

  1. 一种地图中汇聚点生成方法,包括:
    确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和所述汇聚点在地图中的显示位置,以及获取所述要素点的当前状态信息;
    根据所述要素点的当前状态信息确定所述汇聚点的显示参数,根据所述显示参数在所述显示位置上生成并显示所述汇聚点。
  2. 如权利要求1所述的方法,其中,所述状态信息包括:告警信息和告警级别信息中的至少一种。
  3. 如权利要求1所述的方法,其中,所述显示参数包括:颜色、大小和形状中的至少一种。
  4. 如权利要求1所述的方法,其中,所述根据所述要素点的当前状态信息确定所述汇聚点的显示参数包括:根据所述要素点的当前状态信息,查询预设的状态信息与显示参数的对应关系,确定出所述汇聚点的显示参数。
  5. 如权利要求1所述的方法,还包括:
    若所述汇聚点所表示的多个要素点中任一要素点的状态信息发生变化,则重新根据所述要素点的当前状态信息确定所述汇聚点的显示参数。
  6. 如权利要求1至5任一项所述的方法,还包括:
    若所述地图的显示比例发生变化,则重新确定所述地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和新的所述汇聚点在所述地图中的新的显示位置,以及获取新的所述汇聚点所表示的要素点的当前状态信息;
    根据新的所述汇聚点所表示的要素点的当前状态信息确定新的所述汇聚点的显示参数,根据新的所述汇聚点的显示参数在所述新的显示位置上生成并显示新的所述汇聚点。
  7. 一种地图中汇聚点生成装置,包括:
    第一确定模块,设置为确定地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和所述汇聚点在地图中的显示位置;
    获取模块,设置为获取所述要素点的当前状态信息;
    第二确定模块,设置为根据所述要素点的当前状态信息确定所述汇聚点的显示参数;
    显示处理模块,设置为根据所述显示参数在所述显示位置上生成并显示所述汇聚点。
  8. 如权利要求7所述的装置,其中,所述状态信息包括:告警信息和告 警级别信息中的至少一种。
  9. 如权利要求7所述的装置,其中,所述显示参数包括:颜色、大小和形状中的至少一种。
  10. 如权利要求7所述的装置,其中,所述第二确定模块设置为根据所述要素点的当前状态信息,查询预设的状态信息与显示参数的对应关系,确定出所述汇聚点的显示参数。
  11. 如权利要求7所述的装置,其中,
    所述获取模块是设置为更新所述要素点的当前状态信息;
    所述第二确定模块是设置为若所述汇聚点所表示的多个要素点中任一要素点的状态信息发生变化,则重新根据所述要素点的当前状态信息确定所述汇聚点的显示参数;
    所述显示处理模块是设置为根据重新确定的所述显示参数在所述显示位置上生成并显示所述汇聚点。
  12. 如权利要求7至11任一项所述的装置,其中,
    所述第一确定模块是设置为若所述地图的显示比例发生变化,则重新确定所述地图在当前显示比例下需要用一个汇聚点来表示的多个要素点和新的所述汇聚点在所述地图中的新的显示位置;
    所述获取模块是设置为获取新的所述汇聚点所表示的要素点的当前状态信息;
    所述第二确定模块是设置为根据新的所述汇聚点所表示的要素点的当前状态信息确定新的所述汇聚点的显示参数;
    所述显示处理模块是设置为根据新的所述汇聚点的显示参数在所述新的显示位置上生成并显示新的所述汇聚点。
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-6任一项的方法。
PCT/CN2017/094104 2016-08-29 2017-07-24 地图中汇聚点生成方法和装置 WO2018040796A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610752840.2A CN107784919A (zh) 2016-08-29 2016-08-29 一种地图中汇聚点生成方法和装置
CN201610752840.2 2016-08-29

Publications (1)

Publication Number Publication Date
WO2018040796A1 true WO2018040796A1 (zh) 2018-03-08

Family

ID=61300046

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/094104 WO2018040796A1 (zh) 2016-08-29 2017-07-24 地图中汇聚点生成方法和装置

Country Status (2)

Country Link
CN (1) CN107784919A (zh)
WO (1) WO2018040796A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001188849A (ja) * 2000-01-05 2001-07-10 Misawa Homes Co Ltd 顧客情報管理装置
CN103092878A (zh) * 2011-11-04 2013-05-08 北京中交兴路信息科技有限公司 一种聚合展示中的要素智能规避的方法和装置
CN103177649A (zh) * 2011-12-26 2013-06-26 北京图盟科技有限公司 一种像素坐标聚合的方法及装置
CN103793191A (zh) * 2014-02-18 2014-05-14 南京华苏科技有限公司 一种无线通讯小区聚合显示方法
CN105139749A (zh) * 2015-08-31 2015-12-09 爱国者电子科技有限公司 一种在网络地图上显示空气质量信息的优化方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001188849A (ja) * 2000-01-05 2001-07-10 Misawa Homes Co Ltd 顧客情報管理装置
CN103092878A (zh) * 2011-11-04 2013-05-08 北京中交兴路信息科技有限公司 一种聚合展示中的要素智能规避的方法和装置
CN103177649A (zh) * 2011-12-26 2013-06-26 北京图盟科技有限公司 一种像素坐标聚合的方法及装置
CN103793191A (zh) * 2014-02-18 2014-05-14 南京华苏科技有限公司 一种无线通讯小区聚合显示方法
CN105139749A (zh) * 2015-08-31 2015-12-09 爱国者电子科技有限公司 一种在网络地图上显示空气质量信息的优化方法

Also Published As

Publication number Publication date
CN107784919A (zh) 2018-03-09

Similar Documents

Publication Publication Date Title
US11743219B2 (en) Dynamic configuration of application component tiles
TWI684906B (zh) 介面顯示方法、裝置及電子設備
CN109308284B (zh) 报表菜单生成方法、装置、计算机设备及存储介质
CN110795148A (zh) 编排文件的生成方法、装置及电子设备
WO2020082558A1 (zh) 基于函数名称的埋点方法、装置、计算机设备及存储介质
US20140362118A1 (en) Method and System for Displaying Imagery as a Wallpaper on a Computing Device
WO2016145832A1 (zh) 终端的操作方法及装置
US11297393B2 (en) Selection interface with synchronized suggestion elements
CN109324722B (zh) 思维导图的节点添加方法、装置、设备及存储介质
US8432400B1 (en) Transitional animation for generating tree maps
CN111930290B (zh) 资源部署方法及装置
CN108846899B (zh) 提高用户对房源中每个功能间的面积感知的方法及系统
CN113516742A (zh) 模型特效制作方法、装置、存储介质及电子设备
TW201344476A (zh) 業務物件的篩選方法以及裝置
CN108920037B (zh) 一种房屋的虚拟三维空间的显示方法及装置
WO2016106590A1 (zh) 云计算网络中设备负载状态展示方法与装置
US10089139B2 (en) Systems, methods and media for managing embedded content
US9817891B1 (en) System, method, and computer program for creating metadata-based search queries
WO2015196770A1 (zh) 桌面壁纸更换方法及装置
WO2018040796A1 (zh) 地图中汇聚点生成方法和装置
CN111028329B (zh) 渲染图的提供方法、装置、设备及存储介质
US20210149841A1 (en) File browsing method, electronic device and machine-readable storage medium
CN115100359A (zh) 图像处理的方法、装置、设备和存储介质
WO2019056697A1 (zh) 一种地址关联数据处理方法、用户终端和服务器
CN116563804A (zh) 一种点云标注方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17845098

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17845098

Country of ref document: EP

Kind code of ref document: A1