Re: Preview: Weather Eden!
Posted: Tue 26 Feb 2013 10:07 pm
NEVER lazy Jacques - sometimes misguided
Support forum for Cumulus weather station software
https://cumulus.hosiene.co.uk/
Code: Select all
var rain, wind, temp, wave;
var wx1, wx2, wx3, wx4;
function updateTime(time, up) {
var t=parseInt(time);
t = (up) ? (t+1600000) : (t-1600000);
wx1.setTime(t);
}
function make_splitdemo() {
var wvars=["rain", "wind", "tmp", "hs"];
var latlng=null;
var mapOptions = {
zoom: 4,
center: new google.maps.LatLng(-41.10, 172.28),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var rainOptions = {
zoom: 4,
center: new google.maps.LatLng(-41.10, 172.28),
mapTypeId: google.maps.MapTypeId.SATELLITE
};
wx1=new WXTiles({name:'Rain',withnone:false,autoupdate:true,cview:"rain"});
var map1=new google.maps.Map(document.getElementById('rain'), rainOptions);
map1.id='rain';
wx1.addToMap(map1);
wx2=new WXTiles({name:'Wind',withnone:false,autoupdate:true,cview:"wind"});
var map2=new google.maps.Map(document.getElementById('wind'), mapOptions);
map2.id='wind';
wx2.addToMap(map2);
wx3=new WXTiles({name:'Temperature',withnone:false,autoupdate:true,cview:"tmp"});
var map3=new google.maps.Map(document.getElementById('temp'), mapOptions);
map3.id='temp';
wx3.addToMap(map3);
wx4=new WXTiles({name:'Wave height',withnone:false,autoupdate:true,cview:"hs"});
var map4=new google.maps.Map(document.getElementById('wave'), mapOptions);
map4.id='hs';
wx4.addToMap(map4);
document.getElementById('Select').appendChild(wx1.getTSelect());
wx1.linkTime(wx2);
wx1.linkTime(wx3);
wx1.linkTime(wx4);
}
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>My own page</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="styles.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />
<script type="text/javascript" src="lib/dropmenu/dropdowntabs.js"></script>
<script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>
<script type="text/javascript" src="http://api.wxtiles.com/wxtiles.v2.min.js"></script>
</head>
<body>
<div id="bg_clouds">
<div id="main">
<!-- header and main menu begins -->
<?php
require_once('header_menu.php');
?>
<script type="text/javascript">
// Select menu current item highlight
//SYNTAX: tabdropdown.init("menu_id", [item menu, start from 0])
tabdropdown.init("mainmenu", 0)
</script>
<div style="height:13px"></div>
<!-- header ends -->
<div class="header_top"></div>
<div class="header">
<div id="wrapper">
<div id="slider-wrapper">
<div id="slider" class="nivoSlider">
<img src="style/header1.jpg" alt="" />
<img src="style/header2.jpg" alt=""/>
<img src="style/header3.jpg" alt="" />
</div>
</div>
</div>
<script type="text/javascript" src="lib/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="lib/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
</div>
<div class="header_bot"></div>
<div style="height:15px"></div>
<!-- content begins -->
<div class="cont_top"></div>
<div id="content">
<h1> <div id="header">
<span id="tSelect"></span>
<span id="wxSelect"><label for="wx_vSelect">View:</label></span>
<span><a href="http://www.wxtiles.com/api/tutorial">Go to the WXTiles tutorial</a><span>
</div>
<div id="map"></div>
</body>
var rain, wind, temp, wave;
var wx1, wx2, wx3, wx4;
function updateTime(time, up) {
var t=parseInt(time);
t = (up) ? (t+1600000) : (t-1600000);
wx1.setTime(t);
}
function make_splitdemo() {
var wvars=["rain", "wind", "tmp", "hs"];
var latlng=null;
var mapOptions = {
zoom: 4,
center: new google.maps.LatLng(-41.10, 172.28),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var rainOptions = {
zoom: 4,
center: new google.maps.LatLng(-41.10, 172.28),
mapTypeId: google.maps.MapTypeId.SATELLITE
};
wx1=new WXTiles({name:'Rain',withnone:false,autoupdate:true,cview:"rain"});
var map1=new google.maps.Map(document.getElementById('rain'), rainOptions);
map1.id='rain';
wx1.addToMap(map1);
wx2=new WXTiles({name:'Wind',withnone:false,autoupdate:true,cview:"wind"});
var map2=new google.maps.Map(document.getElementById('wind'), mapOptions);
map2.id='wind';
wx2.addToMap(map2);
wx3=new WXTiles({name:'Temperature',withnone:false,autoupdate:true,cview:"tmp"});
var map3=new google.maps.Map(document.getElementById('temp'), mapOptions);
map3.id='temp';
wx3.addToMap(map3);
wx4=new WXTiles({name:'Wave height',withnone:false,autoupdate:true,cview:"hs"});
var map4=new google.maps.Map(document.getElementById('wave'), mapOptions);
map4.id='hs';
wx4.addToMap(map4);
document.getElementById('Select').appendChild(wx1.getTSelect());
wx1.linkTime(wx2);
wx1.linkTime(wx3);
wx1.linkTime(wx4);
}</h1>
</div>
<div class="cont_bot"></div>
<!-- content ends -->
<!-- footer begins -->
<div id="footer">
<a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page validates as CSS"><abbr title="Cascading Style Sheets">CSS</abbr></a> | Weather Blues Template by <a href="http://weatherbyyou.com">Weather by You!</a>
<p style="width:100%; font-family:helvetica; font-size:10px; color:#fff">Copyright 2011. <!-- Do not remove -->Designed by <a href="http://www.metamorphozis.com/free_templates/free_templates.php" title="Free Web Templates">Free Web Templates</a>, coded by <a href="http://www.myfreecsstemplates.com/" title="Free CSS Templates">Free CSS Templates</a><!-- end --></p>
</div>
<!-- footer ends -->
</div>
</div>
</body>
</html>