[ZBXNEXT-1315] anchors for the map connectors Created: 2012 Jul 13  Updated: 2013 Dec 08

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: 2.0.0
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Martin Brassard Assignee: Unassigned
Resolution: Unresolved Votes: 8
Labels: anchor, frontend, link, patch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Installation information:
PHP version 5.1.6
PHP memory limit 256M
PHP post max size 32M
PHP upload max filesize 16M
PHP max execution time 600
PHP max input time 600
PHP time zone America/New_York
PHP databases support MySQL
PHP bcmath yes
PHP mbstring yes
PHP sockets yes
PHP GD 2.0.28
PHP GD PNG support yes
PHP libxml 2.6.26
PHP xmlwriter yes
PHP xmlreader yes
PHP ctype yes
PHP session yes
PHP gettext yes


Attachments: PNG File map.php.png     File map_connectors_anchors.patch    

 Description   

Current implementation always link the conenctors from the center of each elements. On crowded elements (i.e VLAN elements/electrical diagram) this can end up with a spiderweb. Using different conenctors can allow to have a cleaner states. The provided patch implements a way to define the anchors for each end of the connector. If we provide a side, it calculate the created line (corner to corner) and calculate the shortest path to reach the side. Since we uses a 2D and the line is finite, we only have to compare 3 points: line start, middle, line end. We form 2 lines (a point is a line with start=middle=end) and determine what point to point is the shortest. This gives the connector start and end coordinates.

Effect is displayed in the provided png.



 Comments   
Comment by Martin Brassard [ 2012 Jul 13 ]

Forgot to specify: the current implementation uses the link drawtype field to store the anchors. A cleaner implementation would add two fiels (anchor1 and anchor2 for example) in the sysmaps_links table and store the information there.

Comment by Alexei Vladishev [ 2012 Oct 10 ]

Thanks for the great suggestion, will be considered for inclusion.

Generated at Thu May 02 00:54:42 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.