Changeset 3259
- Timestamp:
- 06/04/08 14:50:34 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/bos-trunk-sat/projects/bos/web/contract-tree.lisp
r3163 r3259 98 98 99 99 ;;; kml handler 100 (defmethod network-link-lod-min ((node contract-node))101 (if (zerop (depth node))102 16103 512))104 105 (defmethod network-link-lod-max ((node contract-node))106 -1)107 108 100 (defclass contract-tree-kml-handler (page-handler) 109 101 () … … 138 130 (setf (hunchentoot:header-out :last-modified) 139 131 (hunchentoot:rfc-1123-date (timestamp node))) 140 (let* ((lod `(:min ,(network-link-lod-min node) :max ,(network-link-lod-max node)))132 (let* ((lod (node-lod node)) 141 133 (box (geo-box node)) 142 134 (rect (geo-box-rectangle box)) … … 155 147 (kml-overlay (format nil "http://~a/contract-tree-image?path=~{~d~}" (website-host) path) 156 148 rect 157 :draw-order ( + 1000 (depth node))149 :draw-order (compute-draw-order node (1- +max-num-of-local-draw-order-levels+)) 158 150 ;; :absolute 0 159 151 ;; GroundOverlay specific LOD 160 :lod `(:min ,(network-link-lod-min node) 161 :max ,(if (node-has-children-p node) 162 (* 6 (network-link-lod-min (any-child node))) 163 -1))) 152 :lod lod) 164 153 ;; placemark-contracts 165 154 (let ((placemark-contracts … … 202 191 (format nil "http://~A/contract-tree-kml?path=~{~D~}~D" (website-host) path i)) 203 192 :rect (geo-box-rectangle (geo-box child)) 204 :lod `(:min ,(network-link-lod-min child) :max ,(network-link-lod-max child))))))))))))193 :lod (node-lod child))))))))))) 205 194 206 195
