[bknr-cvs] hans changed trunk/projects/bos/payment-website/static/
BKNR Commits
bknr at bknr.net
Tue Dec 9 06:41:00 UTC 2008
Revision: 4120
Author: hans
URL: http://bknr.net/trac/changeset/4120
Add fake map for easier deployment.
A trunk/projects/bos/payment-website/static/fake-map.jpg
U trunk/projects/bos/payment-website/static/poi-ms.html
U trunk/projects/bos/payment-website/static/poi-ms.js
Added: trunk/projects/bos/payment-website/static/fake-map.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/projects/bos/payment-website/static/fake-map.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/projects/bos/payment-website/static/poi-ms.html
===================================================================
--- trunk/projects/bos/payment-website/static/poi-ms.html 2008-12-09 05:50:48 UTC (rev 4119)
+++ trunk/projects/bos/payment-website/static/poi-ms.html 2008-12-09 06:41:00 UTC (rev 4120)
@@ -19,6 +19,7 @@
<div id="yui-main">
<div class="yui-b" id="content">
<div id="map">
+ <img src="fake-map.jpg" width="600" height="600"/>
</div>
<div id="content-body">
</div>
Modified: trunk/projects/bos/payment-website/static/poi-ms.js
===================================================================
--- trunk/projects/bos/payment-website/static/poi-ms.js 2008-12-09 05:50:48 UTC (rev 4119)
+++ trunk/projects/bos/payment-website/static/poi-ms.js 2008-12-09 06:41:00 UTC (rev 4120)
@@ -188,6 +188,25 @@
mainMap.overview();
}
+function FakeMap() {
+
+ this.hide = function () {
+ $('#map').css('display', 'none');
+ }
+
+ this.overview = function () {
+ $('#map').css('display', 'block');
+ }
+
+ var index = 0;
+ for (var i in pois) {
+ var poi = pois[i];
+ var letter = String.fromCharCode("A".charCodeAt(0) + index++);
+
+ poi.mapIcon = "http://www.google.com/mapfiles/marker" + letter + ".png";
+ }
+}
+
function Map() {
this.map = new GMap2($('#map')[0]);
@@ -393,7 +412,7 @@
pois[poi.id] = poi;
}
- mainMap = new Map();
+ mainMap = new FakeMap();
loadJSONDoc('/sponsors-json').addCallback(loadSponsors);
}
More information about the Bknr-cvs
mailing list