[bknr-cvs] r2047 - trunk/projects/bos/payment-website/infosystem
bknr at bknr.net
bknr at bknr.net
Thu Oct 26 04:11:11 UTC 2006
Author: hhubner
Date: 2006-10-26 00:11:11 -0400 (Thu, 26 Oct 2006)
New Revision: 2047
Modified:
trunk/projects/bos/payment-website/infosystem/javascript.js
Log:
Slightly changed API for panoramas. This file needs to be totally re-done.
Modified: trunk/projects/bos/payment-website/infosystem/javascript.js
===================================================================
--- trunk/projects/bos/payment-website/infosystem/javascript.js 2006-10-25 16:41:23 UTC (rev 2046)
+++ trunk/projects/bos/payment-website/infosystem/javascript.js 2006-10-26 04:11:11 UTC (rev 2047)
@@ -841,14 +841,16 @@
}
function show_poi_panorama() {
+ var the_poi = poi[aktuelles_objekt];
help_page = 'panorama';
hide_poi_luftbild();
- if (poi[aktuelles_objekt]['panorama']) {
+ if (the_poi.panoramas) {
+ var panorama_id = the_poi.panoramas[0];
document.getElementById("Panorama").style.visibility = "visible";
document.getElementById("PoiInfoText").innerHTML = msg('Das Laden des Panoramas dauert einen Moment und benötigt Java in Ihrem Browser.<br /><br />Klicken und Ziehen Sie mit der Maus, um sich im Panorama umzusehen!');
document.getElementById("PanoramaApplet").innerHTML
= '<applet archive="/static/ptviewer.jar" code="ptviewer.class" width="360" height="340"> '
- + ' <param name="file" value="/image/' + poi[aktuelles_objekt]['panorama'] + '" />'
+ + ' <param name="file" value="/image/' + panorama_id + '" />'
+ ' <param name="cursor" value="MOVE" />'
+ ' <param name="auto" value=".2" />'
+ '</applet>';
@@ -896,7 +898,7 @@
if (the_poi['luftbild']) {
poi_menu_items.push([ msg('Luftbild'), show_poi_luftbild ]);
}
- if (the_poi['panorama']) {
+ if (the_poi.panoramas) {
poi_menu_items.push([ msg('Panorama'), show_poi_panorama ]);
}
More information about the Bknr-cvs
mailing list