Permalink
Browse files

added TMS sources for archive backdrop, added twitter/facebook badges…

… to research notes
  • Loading branch information...
1 parent a899add commit 9a54616651d06995ccaec25bacdfa0da09109325 @jywarren committed Nov 7, 2011
View
4 html/sites/all/themes/plots/plots.css
@@ -436,6 +436,10 @@ div.widget {
padding:10px 0;
}
+#content-area h2 {
+ font-size:2em;
+}
+
#content-area .meta {
font-style:italic;
font-size:11px;
View
15 html/sites/all/themes/plots/templates/node-map.tpl.php
@@ -97,7 +97,7 @@
<script type="text/javascript" src="http://openlayers.org/api/2.9/OpenLayers.js"></script>
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAANO6Yx8ihhesSqnPHx9a3RxQCA0kQZc0rHxnaN3mazoBpOqX1oBQwLut2gk7rd_T9sYyxcGJrxQK3gg' type='text/javascript'></script>
-
+<script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&amp;appid=INSERT_YOUR_YAHOO_APP_ID_HERE"></script>
<div id="map-fullscreen-btn-div"><a id="map-fullscreen-btn" href="javascript:void();" onClick="fullscreen()">Fullscreen</a></div>
<div id='map'>
@@ -176,8 +176,19 @@
sphericalMercator: true,
numZoomLevels: 25
});
+ var yahoosat = new OpenLayers.Layer.Yahoo("Yahoo Satellite",
+ {'type': YAHOO_MAP_SAT, 'sphericalMercator': true});
+
map.addLayer(gsat)
+// you can try
+// http://hypercube.telascience.org/tilecache/tilecache.py/1.0.0/NAIP_ALL/
+
+// but you might get better performance from newworld which switches
+// between bmng/landsat/naip based on zoom level
+
+// http://hypercube.telascience.org/tilecache/tilecache.py/1.0.0/NewWorld_google
+
var tile_url = "http://tilestream.publiclaboratory.org/1.0.0/blue-marble-topo-bathy-jan/"
//var tile_url = "http://localhost:8888/1.0.0/blue-marble-topo-bathy-jul/"
var tms = new OpenLayers.Layer.TMS( "Tilestream Blue Marble", tile_url,
@@ -276,7 +287,7 @@ function minimize() {
function formatbytes($megabytes)
{
if ($megabytes > 1024) {
- return ($megabytes/1024).' gb';
+ return round($megabytes/1024,1).' gb';
// } else if ($megabytes > 1000) {
} else {
return $megabytes.' mb';
View
7 html/sites/all/themes/plots/templates/node.tpl.php
@@ -105,5 +105,12 @@
<?php print $content; ?>
</div>
+<?php if ($node->type == "note") { ?>
+ <div id="share">
+ <a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
+ <a href="http://twitter.com/share?text=Public Laboratory: <?php print $title; ?>"><img src="/img/twitter.png" /></a>
+ </div>
+<?php } ?>
+
<?php print $links; ?>
</div> <!-- /.node -->

0 comments on commit 9a54616

Please sign in to comment.