Author: Lars Michelsen <[email protected]>
Date: Sat Apr 2 12:40:17 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Sat Apr 2 12:40:17 2011 +0200
Fixed stateless line displaying in WUI
---
share/frontend/wui/classes/WuiMap.php | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/share/frontend/wui/classes/WuiMap.php
b/share/frontend/wui/classes/WuiMap.php
index d93911f..b1fd2df 100644
--- a/share/frontend/wui/classes/WuiMap.php
+++ b/share/frontend/wui/classes/WuiMap.php
@@ -158,6 +158,10 @@ class WuiMap extends GlobalMap {
* @author Lars Michelsen <[email protected]>
*/
function fixIcon(&$obj) {
+ if($obj['type'] == 'line' || (isset($obj['view_type']) &&
$obj['view_type'] == 'line')) {
+ $obj['icon'] = '20x20.gif';
+ }
+
$obj = $this->getIconPaths($obj);
if($obj['type'] == 'line') {
@@ -280,8 +284,6 @@ class WuiMap extends GlobalMap {
}
$style =
'style="position:absolute;left:'.$x.'px;top:'.$y.'px"';
-
- $obj['icon'] = '20x20.gif';
} else
$style = '';
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins