Revision: 3796
Author: ksprotte
URL: http://bknr.net/trac/changeset/3796
new POI slot: lod-min - the lod minimum used in Google Earth
Users can customize this in the CMS. This intends to address the issue:
KML/Google Earth: Aus gr?\195?\182?\195?\159erer H?\195?\182he soll das BOS-Icon immer zu sehen sein
An arbitrary POI can be chosen or newly created for this purpose - it
needn't even be "published-web".
U trunk/projects/bos/web/contract-tree.lisp
Modified: trunk/projects/bos/web/contract-tree.lisp
===================================================================
--- trunk/projects/bos/web/contract-tree.lisp 2008-09-04 17:18:31 UTC (rev 3795)
+++ trunk/projects/bos/web/contract-tree.lisp 2008-09-04 17:18:33 UTC (rev 3796)
@@ -370,7 +370,7 @@
;; has already been called
:base-node *quad-tree*
:name '*contract-tree*))
- (dolist (contract (sort (copy-list (all-contracts)) #'> :key #'contract-area))
+ (dolist (contract (sort (copy-list (all-contracts)) #'> :key #'contract-area))
(when (contract-published-p contract)
(insert-contract *contract-tree* contract)))
(geometry:register-rect-subscriber geometry:*rect-publisher* *contract-tree*
Revision: 3795
Author: ksprotte
URL: http://bknr.net/trac/changeset/3795
new POI slot: lod-min - the lod minimum used in Google Earth
Users can customize this in the CMS. This intends to address the issue:
KML/Google Earth: Aus gr?\195?\182?\195?\159erer H?\195?\182he soll das BOS-Icon immer zu sehen sein
An arbitrary POI can be chosen or newly created for this purpose - it
needn't even be "published-web".
U trunk/projects/bos/m2/poi.lisp
Modified: trunk/projects/bos/m2/poi.lisp
===================================================================
--- trunk/projects/bos/m2/poi.lisp 2008-09-04 17:18:28 UTC (rev 3794)
+++ trunk/projects/bos/m2/poi.lisp 2008-09-04 17:18:31 UTC (rev 3795)
@@ -107,7 +107,10 @@
:documentation "name des icons")
(media
:accessor poi-media :initarg :media :initform nil
- :documentation "liste aller poi-medien, wie poi-image, poi-airal ...")))
+ :documentation "liste aller poi-medien, wie poi-image, poi-airal ...")
+ (lod-min
+ :accessor poi-lod-min :initarg :poi-lod-min :initform 600
+ :documentation "the lod minimum used in Google Earth")))
(defmethod convert-slot-value-while-restoring ((object poi) (slot-name (eql 'published))
@@ -124,7 +127,7 @@
(defmethod destroy-object :before ((poi poi))
(mapc #'delete-object (poi-media poi)))
-(deftransaction update-poi (poi &key published-web published-earth icon area)
+(deftransaction update-poi (poi &key published-web published-earth icon area lod-min)
(check-type published-web boolean)
(check-type published-earth boolean)
(check-type area list)
@@ -134,6 +137,8 @@
(setf (poi-icon poi) icon))
(when area
(setf (poi-area poi) area))
+ (when lod-min
+ (setf (poi-lod-min poi) (abs lod-min)))
poi)
(defmethod poi-complete ((poi poi) language)
@@ -231,7 +236,7 @@
(format t "poi.panoramas = [ ~{~D~^, ~} ];~%" (mapcar #'store-object-id (poi-panoramas poi))))
(when (poi-movies poi)
(format t "poi.movies = [ ~{~S~^, ~} ];~%"
- (mapcar #'(lambda (movie)
+ (mapcar #'(lambda (movie)
(assert (stringp (poi-movie-url movie)) nil
"POI-MOVIE-URL of ~S is ~S, but should be a string"
movie (poi-movie-url movie))
Revision: 3794
Author: ksprotte
URL: http://bknr.net/trac/changeset/3794
new POI slot: lod-min - the lod minimum used in Google Earth
Users can customize this in the CMS. This intends to address the issue:
KML/Google Earth: Aus gr?\195?\182?\195?\159erer H?\195?\182he soll das BOS-Icon immer zu sehen sein
An arbitrary POI can be chosen or newly created for this purpose - it
needn't even be "published-web".
U trunk/projects/bos/m2/packages.lisp
Modified: trunk/projects/bos/m2/packages.lisp
===================================================================
--- trunk/projects/bos/m2/packages.lisp 2008-09-04 14:37:34 UTC (rev 3793)
+++ trunk/projects/bos/m2/packages.lisp 2008-09-04 17:18:28 UTC (rev 3794)
@@ -203,7 +203,7 @@
;; slot-strings
#:slot-string
#:set-slot-string-values
-
+
;; pois
#:title #:subtitle #:description ; for slot-string access
#:update-textual-attributes
@@ -226,6 +226,7 @@
#:poi-area
#:poi-icon
#:poi-media
+ #:poi-lod-min
#:make-poi
#:update-poi
#:poi-complete
@@ -239,7 +240,7 @@
#:poi-panoramas
#:poi-movies
#:make-poi-javascript
-
+
;; news
#:news-item
#:make-news-item