Cleanup, removed un-needed files
This commit is contained in:
parent
539198d1b1
commit
5bdbde973e
181
aeris.php
181
aeris.php
|
@ -1,181 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$cache = 0;
|
||||
$cacheStr = '?baxza33';
|
||||
|
||||
if ($cache==0) $cacheStr = '?' . date('l jS \of F Y h:i:s A');
|
||||
|
||||
?>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>Weatherscan</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link media="screen" type="text/css" rel="stylesheet" href="//cdn.aerisjs.com/aeris-interactive/assets/css/default/style.css">
|
||||
<link media="screen" type="text/css" rel="stylesheet" href="//api.tiles.mapbox.com/mapbox.js/v2.2.1/mapbox.css">
|
||||
|
||||
<link rel="stylesheet" href="css/style.css<?=$cacheStr ?>" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="//api.tiles.mapbox.com/mapbox.js/v2.2.1/mapbox.js"></script>
|
||||
<script type="text/javascript" src="//cdn.aerisjs.com/aeris-interactive/aim-leaflet.js"></script>
|
||||
|
||||
<script type="text/javascript" src="js/jplayer/jquery.jplayer.min.js"></script>
|
||||
<script src="http://cdn.date-fns.org/v2.0.0-alpha0/date_fns.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="js/utils.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/audio.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/groupull.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/dataManager.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/loops.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/weather.js<?=$cacheStr ?>"></script>
|
||||
|
||||
|
||||
|
||||
<div id="main" class="container">
|
||||
|
||||
<img id="template" src="images/template-4k.png" />
|
||||
|
||||
|
||||
<div id="info-slides">
|
||||
<div class="info-slide radar-slide">
|
||||
<div class="info-header">
|
||||
<div>Local Doppler Radar
|
||||
<div class="radar-color-legend">Past 3 Hours<br>Light <img src="images/precip-legend.png" alt="Past 3 Hours" /> Heavy</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="radar-1" class="map"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="date-time">
|
||||
<div id="date"></div>
|
||||
<div id="time"></div>
|
||||
</div>
|
||||
|
||||
<div id="city"></div>
|
||||
|
||||
<div id="conditions-icon"></div>
|
||||
|
||||
<div id="current-conditions">
|
||||
<div id="now">now</div>
|
||||
<div id="current-temp"></div>
|
||||
<div id="current-info"></div>
|
||||
</div>
|
||||
|
||||
<div id="minimap-title">PAST 3 HOURS</div>
|
||||
<div id="minimap"></div>
|
||||
<div id="logo-area"><img src="images/midco_logo.png"/></div>
|
||||
|
||||
<div id="forecast-shadow">
|
||||
<div id="forecast-header">
|
||||
<div id="forecast-city"></div><div id="forecast-title"></div>
|
||||
</div>
|
||||
<div id="forecast-text"><div>Retrieving forecast data...</div></div>
|
||||
<div id="forecast-tiles"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="marquee1" class="marquee">
|
||||
<div id="marquee-container">
|
||||
<div id="marquee-now"><span class="track-info"></span></div>
|
||||
<!--div id="marquee-tonight"></div-->
|
||||
</div>
|
||||
</div>
|
||||
<img id="arrow-img" src="images/NOW.png<?=$cacheStr ?>"/>
|
||||
|
||||
<div id="marquee2" class="marquee"><div>
|
||||
You are watching an emulation of the Weatherscan IntelliStar system. Weatherscan is a digital cable and satellite television network that is owned by a consortium owned in turn by NBCUniversal and investment firms The Blackstone Group and Bain Capital. A spinoff of The Weather Channel, Weatherscan features uninterrupted local weather information in graphical format on a continuous loop that is generated by an IntelliStar unit installed at the cable provider's headend; unlike The Weather Channel, Weatherscan does not feature on-air talent of any kind.
|
||||
</div></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
// set your mapbox access token
|
||||
L.mapbox.accessToken = 'pk.eyJ1Ijoic3dhbGRuZXIiLCJhIjoiY2o4ZGpjcnVvMHBhazMzcDVnanZmd2lobCJ9.Kr5329g4YyZIlnYfHNXRWA';
|
||||
var aerisMapBuilder = new aeris.interactive.MapAppBuilder({
|
||||
apiId: 'G99TzbQi5wXjWSLq7U0x3',
|
||||
apiSecret: 'wHjpONXg3Nlhh2u2GJuibDhRZWEcs5mMFsT6vuJd',
|
||||
el: '#radar-1',
|
||||
modules: {
|
||||
map: {
|
||||
baseLayer: new aeris.maps.layers.MapBox({
|
||||
mapBoxId: 'swaldner.306d8456' //'swaldner.4158bce2' //'swaldner.306d8456'
|
||||
})
|
||||
},
|
||||
animation: {
|
||||
speed: 100,
|
||||
futureSpeed: 200,
|
||||
from: new Date(Date.now() - 3600 * 4 * 1000),
|
||||
to: new Date(Date.now()),
|
||||
useBigTimeline: false,
|
||||
boundsMenu:{
|
||||
min: [
|
||||
{
|
||||
value: 1000 * 60 * 60,
|
||||
label: '1 hour ago'
|
||||
},
|
||||
{
|
||||
value: 1000 * 60 * 60 * 2,
|
||||
label: '2 hours ago'
|
||||
},
|
||||
{
|
||||
value: 1000 * 60 * 60 * 3,
|
||||
label: '3 hours ago'
|
||||
}
|
||||
],
|
||||
max: [
|
||||
{
|
||||
value: 1000 * 60 * 60,
|
||||
label: 'next 1 hour'
|
||||
},
|
||||
{
|
||||
value: 1000 * 60 * 60 * 2,
|
||||
label: 'next 2 hours'
|
||||
},
|
||||
{
|
||||
value: 1000 * 60 * 60 * 3,
|
||||
label: 'next 3 hours'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
});
|
||||
aerisMapBuilder
|
||||
.start()
|
||||
.done(function() {
|
||||
$('i.aeris-playIcon.aeris-icon-play').click();
|
||||
console.log('Aeris Interactive Maps is initialized.');
|
||||
})
|
||||
.fail(function(err) {
|
||||
console.error(err);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
982
css/style.css
982
css/style.css
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,156 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>Weatherscan</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css" integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ==" crossorigin=""/>
|
||||
|
||||
<link rel="stylesheet" href="js/leaflet/timedimension/leaflet.timedimension.control.min.css"/>
|
||||
<link rel="stylesheet" href="css/style.css"/>
|
||||
<link rel="stylesheet" href="css/slides.css"/>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="js/jplayer/jquery.jplayer.min.js"></script>
|
||||
|
||||
<script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js" integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log==" crossorigin=""></script>
|
||||
<!--script type="text/javascript" src="https://unpkg.com/leaflet.nontiledlayer/dist/NonTiledLayer.js"></script-->
|
||||
<script type="text/javascript" src="js/leaflet/NonTiledLayer.src.js"></script>
|
||||
<script type="text/javascript" src="js/leaflet/iso8601.min.js"></script>
|
||||
<script type="text/javascript" src="js/leaflet/timedimension/leaflet.timedimension.min.js"></script>
|
||||
|
||||
<script src="http://cdn.date-fns.org/v2.0.0-alpha0/date_fns.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery.marquee@1.5.0/jquery.marquee.min.js" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript" src="js/utils.js"></script>
|
||||
<script type="text/javascript" src="js/radar.js"></script>
|
||||
<script type="text/javascript" src="js/audio.js"></script>
|
||||
<script type="text/javascript" src="js/groupull.js"></script>
|
||||
<script type="text/javascript" src="js/data-manager.js"></script>
|
||||
<script type="text/javascript" src="js/location.js"></script>
|
||||
<script type="text/javascript" src="js/loops.js"></script>
|
||||
<script type="text/javascript" src="js/slides-loop.js"></script>
|
||||
<script type="text/javascript" src="js/weather.js"></script>
|
||||
<script type="text/javascript" src="js/main.js"></script>
|
||||
|
||||
<div id="main" class="container">
|
||||
|
||||
<img id="template" src="images/template-4k.jpg"/>
|
||||
|
||||
<div id="info-slides-container">
|
||||
|
||||
<div id="info-slides-header">
|
||||
<div class="hscroller">
|
||||
<span class="city radar current">LOCAL RADAR</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id='info-slide-container'>
|
||||
|
||||
|
||||
<!-- CURRENT CONDITIONS AND FORECAST-->
|
||||
<div class="info-slide city-info-slide" style="display:none">
|
||||
<div class="info-subheader">
|
||||
<span id="subhead-title"></span><span id="subhead-city"></span>
|
||||
</div>
|
||||
<div class='blue curve left'></div>
|
||||
<div class='yellow curve left'></div>
|
||||
<div class='yellow curve right'></div>
|
||||
<div class='white curve right'></div>
|
||||
|
||||
<div class='info-slide-content city-info' style="display:none">
|
||||
|
||||
<div class='frost-pane left'>
|
||||
<div class='labels'></div>
|
||||
<div class='data'></div>
|
||||
</div>
|
||||
<div class='frost-pane right'>
|
||||
<div class='icon'></div>
|
||||
<div class='conditions'></div>
|
||||
<div class='temp'></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class='info-slide-content forecast' style="display:none">
|
||||
<div class='frost-pane'>
|
||||
<div class='title'></div>
|
||||
<div class='content'></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- DOPPLER RADAR -->
|
||||
<div class="info-slide radar-slide">
|
||||
<div class="info-subheader">
|
||||
<span>Local Doppler Radar</span>
|
||||
<span class="radar-color-legend">Past 3 Hours<br>Light <img src="images/precip-legend.png" alt="Past 3 Hours"/> Heavy</span>
|
||||
</div>
|
||||
<div id="radar-container" class="info-slide-content">
|
||||
<div id="radar-1" class="map"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="date-time">
|
||||
<div id="date"></div>
|
||||
<div id="time"></div>
|
||||
</div>
|
||||
|
||||
<div id="city"></div>
|
||||
|
||||
<div id="conditions-icon"></div>
|
||||
|
||||
<div id="current-conditions">
|
||||
<div id="now">now</div>
|
||||
<div id="current-temp"></div>
|
||||
<div id="current-info"></div>
|
||||
</div>
|
||||
|
||||
<div id="minimap-title">PAST 3 HOURS</div>
|
||||
<div id="minimap"></div>
|
||||
<div id="logo-area"><img src="images/midco_logo_shadow.png"/></div>
|
||||
|
||||
<div id="forecast-shadow">
|
||||
<div id="forecast-header">
|
||||
<div id="forecast-city"></div>
|
||||
<div id="forecast-title"></div>
|
||||
</div>
|
||||
<div id="forecast-text">
|
||||
<div>Retrieving forecast data...</div>
|
||||
</div>
|
||||
<div id="forecast-tiles"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="marquee1" class="marquee">
|
||||
<div id="marquee-container">
|
||||
<div id="marquee-now"><span class="track-info"></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<img id="arrow-img" src="images/now.png"/>
|
||||
|
||||
<div id="marquee2" class="marquee">
|
||||
You are watching an emulation of the Weatherscan IntelliStar system. Weatherscan is a digital cable and satellite
|
||||
television network that is owned by a consortium owned in turn by NBCUniversal and investment firms The Blackstone
|
||||
Group and Bain Capital. A spinoff of The Weather Channel, Weatherscan features uninterrupted local weather
|
||||
information in graphical format on a continuous loop that is generated by an IntelliStar unit installed at the cable
|
||||
provider's headend; unlike The Weather Channel, Weatherscan does not feature on-air talent of any kind.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
160
index.php
160
index.php
|
@ -1,160 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$cache = 1;
|
||||
$cacheStr = '?psy8a7z9m';
|
||||
|
||||
if ($cache==0) $cacheStr = '?' . date('l jS \of F Y h:i:s A');
|
||||
|
||||
?>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>Weatherscan</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css" integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ==" crossorigin=""/>
|
||||
|
||||
<link rel="stylesheet" href="js/leaflet/timedimension/leaflet.timedimension.control.min.css" />
|
||||
<link rel="stylesheet" href="css/style.css<?=$cacheStr ?>" />
|
||||
<link rel="stylesheet" href="css/slides.css<?=$cacheStr ?>" />
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="js/jplayer/jquery.jplayer.min.js"></script>
|
||||
|
||||
<script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js" integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log==" crossorigin=""></script>
|
||||
<!--script type="text/javascript" src="https://unpkg.com/leaflet.nontiledlayer/dist/NonTiledLayer.js"></script-->
|
||||
<script type="text/javascript" src="js/leaflet/NonTiledLayer.src.js"></script>
|
||||
<script type="text/javascript" src="js/leaflet/iso8601.min.js"></script>
|
||||
<script type="text/javascript" src="js/leaflet/timedimension/leaflet.timedimension.min.js"></script>
|
||||
|
||||
<script src="http://cdn.date-fns.org/v2.0.0-alpha0/date_fns.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery.marquee@1.5.0/jquery.marquee.min.js" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript" src="js/utils.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/radar.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/audio.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/groupull.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/data-manager.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/location.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/loops.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/slides-loop.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/weather.js<?=$cacheStr ?>"></script>
|
||||
<script type="text/javascript" src="js/main.js<?=$cacheStr ?>"></script>
|
||||
|
||||
<div id="main" class="container">
|
||||
|
||||
<img id="template" src="images/template-4k.jpg" />
|
||||
|
||||
<div id="info-slides-container">
|
||||
|
||||
<div id="info-slides-header">
|
||||
<div class="hscroller">
|
||||
<span class="city radar current">LOCAL RADAR</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id='info-slide-container'>
|
||||
|
||||
|
||||
<!-- CURRENT CONDITIONS AND FORECAST-->
|
||||
<div class="info-slide city-info-slide" style="display:none">
|
||||
<div class="info-subheader">
|
||||
<span id="subhead-title"></span><span id="subhead-city"></span>
|
||||
</div>
|
||||
<div class='blue curve left'></div>
|
||||
<div class='yellow curve left'></div>
|
||||
<div class='yellow curve right'></div>
|
||||
<div class='white curve right'></div>
|
||||
|
||||
<div class='info-slide-content city-info' style="display:none">
|
||||
|
||||
<div class='frost-pane left'>
|
||||
<div class='labels'></div>
|
||||
<div class='data'></div>
|
||||
</div>
|
||||
<div class='frost-pane right'>
|
||||
<div class='icon'></div>
|
||||
<div class='conditions'></div>
|
||||
<div class='temp'></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class='info-slide-content forecast' style="display:none">
|
||||
<div class='frost-pane'>
|
||||
<div class='title'></div>
|
||||
<div class='content'></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- DOPPLER RADAR -->
|
||||
<div class="info-slide radar-slide">
|
||||
<div class="info-subheader">
|
||||
<span>Local Doppler Radar</span>
|
||||
<span class="radar-color-legend">Past 3 Hours<br>Light <img src="images/precip-legend.png" alt="Past 3 Hours" /> Heavy</span>
|
||||
</div>
|
||||
<div id="radar-container" class="info-slide-content">
|
||||
<div id="radar-1" class="map"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="date-time">
|
||||
<div id="date"></div>
|
||||
<div id="time"></div>
|
||||
</div>
|
||||
|
||||
<div id="city"></div>
|
||||
|
||||
<div id="conditions-icon"></div>
|
||||
|
||||
<div id="current-conditions">
|
||||
<div id="now">now</div>
|
||||
<div id="current-temp"></div>
|
||||
<div id="current-info"></div>
|
||||
</div>
|
||||
|
||||
<div id="minimap-title">PAST 3 HOURS</div>
|
||||
<div id="minimap"></div>
|
||||
<div id="logo-area"><img src="images/midco_logo_shadow.png"/></div>
|
||||
|
||||
<div id="forecast-shadow">
|
||||
<div id="forecast-header">
|
||||
<div id="forecast-city"></div><div id="forecast-title"></div>
|
||||
</div>
|
||||
<div id="forecast-text"><div>Retrieving forecast data...</div></div>
|
||||
<div id="forecast-tiles"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="marquee1" class="marquee">
|
||||
<div id="marquee-container">
|
||||
<div id="marquee-now"><span class="track-info"></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<img id="arrow-img" src="images/now.png<?=$cacheStr ?>"/>
|
||||
|
||||
<div id="marquee2" class="marquee">
|
||||
You are watching an emulation of the Weatherscan IntelliStar system. Weatherscan is a digital cable and satellite television network that is owned by a consortium owned in turn by NBCUniversal and investment firms The Blackstone Group and Bain Capital. A spinoff of The Weather Channel, Weatherscan features uninterrupted local weather information in graphical format on a continuous loop that is generated by an IntelliStar unit installed at the cable provider's headend; unlike The Weather Channel, Weatherscan does not feature on-air talent of any kind.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -17,7 +17,7 @@ function WeatherAudio() {
|
|||
|
||||
function buildMusicArray(arr) {
|
||||
|
||||
var musicpath = "/music/";
|
||||
var musicpath = "music/";
|
||||
|
||||
// insert track names
|
||||
for (var i = 1; i<66; i++) {
|
||||
|
|
|
@ -1,140 +0,0 @@
|
|||
|
||||
function Radar(divIDin, intervalHoursIn, zoomIn, latitudeIn, longitudeIn) {
|
||||
|
||||
var map, currentEndDate,
|
||||
divID = divIDin,
|
||||
intervalHours = intervalHoursIn,
|
||||
zoom = zoomIn,
|
||||
latitude = latitudeIn,
|
||||
longitude = longitudeIn;
|
||||
|
||||
startAnimation();
|
||||
|
||||
function startAnimation () {
|
||||
|
||||
var endDate = new Date();
|
||||
|
||||
|
||||
// snap date to 5 minute intervals
|
||||
endDate.setUTCMinutes( Math.round(endDate.getUTCMinutes() / 5) * 5);
|
||||
currentEndDate = endDate;
|
||||
|
||||
|
||||
map = L.map(divID, {
|
||||
zoom: zoom,
|
||||
autoPlay: true,
|
||||
fullscreenControl: false,
|
||||
timeDimension: true,
|
||||
timeDimensionOptions:{
|
||||
timeInterval: "PT" + intervalHours + "H/" + endDate.toISOString(),
|
||||
period: "PT5M",
|
||||
currentTime: endDate,
|
||||
loop: true
|
||||
}
|
||||
|
||||
/*
|
||||
,timeDimensionControl: true,
|
||||
timeDimensionControlOptions: {
|
||||
autoPlay: true,
|
||||
loop: true,
|
||||
playerOptions: {
|
||||
buffer: 10,
|
||||
transitionTime: 150,
|
||||
loop: true
|
||||
}
|
||||
*/
|
||||
},
|
||||
|
||||
center: [latitude, longitude] // 31.205482,-82.4331197 test coordinates
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
// satellite-streets map
|
||||
/*
|
||||
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.jpg80?access_token=pk.eyJ1Ijoic3dhbGRuZXIiLCJhIjoiY2o4ZGpjcnVvMHBhazMzcDVnanZmd2lobCJ9.Kr5329g4YyZIlnYfHNXRWA', {
|
||||
//maxZoom: 8,
|
||||
//minZoom: 8,
|
||||
zoom: zoom,
|
||||
id: 'mapbox.streets-satellite'
|
||||
}).addTo(map);
|
||||
*/
|
||||
|
||||
// cj8p1qym6976p2rqut8oo6vxr
|
||||
L.tileLayer('https://api.mapbox.com/styles/v1/swaldner/cj8p1qym6976p2rqut8oo6vxr/tiles/{z}/{x}/{y}?access_token=pk.eyJ1Ijoic3dhbGRuZXIiLCJhIjoiY2o4ZGpjcnVvMHBhazMzcDVnanZmd2lobCJ9.Kr5329g4YyZIlnYfHNXRWA', {
|
||||
tileSize: 512,
|
||||
zoomOffset: -1
|
||||
}).addTo(map);
|
||||
|
||||
|
||||
//mapbox://styles/swaldner/cj8owq50n926g2smvagdxg9t8 solid green bg
|
||||
|
||||
var radarWMS = L.nonTiledLayer.wms("https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WMSServer", {
|
||||
layers: '1',
|
||||
format: 'image/png',
|
||||
transparent: true,
|
||||
opacity: 0.8
|
||||
});
|
||||
/*
|
||||
var goes_infrared = L.nonTiledLayer.wms("https://nowcoast.noaa.gov/arcgis/services/nowcoast/sat_meteo_imagery_time/MapServer/WMSServer", {
|
||||
layers: '1',
|
||||
format: 'image/png',
|
||||
transparent: true,
|
||||
opacity: 0.6,
|
||||
attribution: 'NOAA nowCOAST'
|
||||
});
|
||||
|
||||
var goes_visible_sat = L.nonTiledLayer.wms("https://nowcoast.noaa.gov/arcgis/services/nowcoast/sat_meteo_imagery_time/MapServer/WMSServer", {
|
||||
layers: '9',
|
||||
format: 'image/png',
|
||||
transparent: true,
|
||||
opacity: 0.6,
|
||||
attribution: 'NOAA nowCOAST'
|
||||
});
|
||||
*/
|
||||
var proxy = 'js/leaflet/proxy.php';
|
||||
var radarTimeLayer = L.timeDimension.layer.wms(radarWMS, {
|
||||
proxy: proxy,
|
||||
updateTimeDimension: false
|
||||
});
|
||||
/*
|
||||
var infraredTimeLayer = L.timeDimension.layer.wms(goes_infrared, {
|
||||
proxy: proxy,
|
||||
updateTimeDimension: false
|
||||
});
|
||||
|
||||
var satellitetimeLayer = L.timeDimension.layer.wms(goes_visible_sat, {
|
||||
proxy: proxy,
|
||||
updateTimeDimension: false
|
||||
});
|
||||
*/
|
||||
//infraredTimeLayer.addTo(map);
|
||||
//satellitetimeLayer.addTo(map);
|
||||
radarTimeLayer.addTo(map);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Workaround for 1px lines appearing in some browsers due to fractional transforms
|
||||
* and resulting anti-aliasing.
|
||||
* https://github.com/Leaflet/Leaflet/issues/3575
|
||||
*/
|
||||
(function(){
|
||||
var originalInitTile = L.GridLayer.prototype._initTile
|
||||
L.GridLayer.include({
|
||||
_initTile: function (tile) {
|
||||
originalInitTile.call(this, tile);
|
||||
|
||||
var tileSize = this.getTileSize();
|
||||
|
||||
tile.style.width = tileSize.x + 1 + 'px';
|
||||
tile.style.height = tileSize.y + 1 + 'px';
|
||||
}
|
||||
});
|
||||
})()
|
||||
|
|
@ -1,74 +0,0 @@
|
|||
<?php
|
||||
$url = 'https://nowcoast.noaa.gov/arcgis/services/nowcoast/sat_meteo_imagery_time/MapServer/WMSServer?'.$_SERVER['QUERY_STRING'];
|
||||
$ua = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13';
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
|
||||
curl_setopt($ch, CURLOPT_HEADER_OUT, 1);
|
||||
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
|
||||
$content = curl_exec($ch);
|
||||
$info = curl_getinfo($ch);
|
||||
|
||||
|
||||
//header('Content-Type:' . $info['content_type']);
|
||||
//echo $content
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//$decoded = base64_decode("$_REQUEST[sigImageData]");
|
||||
$im = imagecreatefromstring($content);
|
||||
$mask = imagecreatefromstring($content);
|
||||
imagefilter($mask, IMG_FILTER_NEGATE);
|
||||
|
||||
$white = imagecolorallocate($im, 255, 255, 255);
|
||||
imagefilledrectangle($im, 0, 0, 1000, 1000, $white);
|
||||
|
||||
imagealphamask( $im, $mask );
|
||||
|
||||
// Output
|
||||
|
||||
//header('Content-Type: image/png');
|
||||
header('Content-Type:' . $info['content_type']);
|
||||
imagesavealpha($im, TRUE); // it took me a good 10 minutes to figure this part out
|
||||
imagepng($im);
|
||||
imagedestroy($im);
|
||||
|
||||
exit();
|
||||
|
||||
|
||||
function imagealphamask( &$picture, $mask ) {
|
||||
// Get sizes and set up new picture
|
||||
$xSize = imagesx( $picture );
|
||||
$ySize = imagesy( $picture );
|
||||
$newPicture = imagecreatetruecolor( $xSize, $ySize );
|
||||
imagesavealpha( $newPicture, true );
|
||||
imagefill( $newPicture, 0, 0, imagecolorallocatealpha( $newPicture, 0, 0, 0, 127 ) );
|
||||
|
||||
// Resize mask if necessary
|
||||
if( $xSize != imagesx( $mask ) || $ySize != imagesy( $mask ) ) {
|
||||
$tempPic = imagecreatetruecolor( $xSize, $ySize );
|
||||
imagecopyresampled( $tempPic, $mask, 0, 0, 0, 0, $xSize, $ySize, imagesx( $mask ), imagesy( $mask ) );
|
||||
imagedestroy( $mask );
|
||||
$mask = $tempPic;
|
||||
}
|
||||
|
||||
// Perform pixel-based alpha map application
|
||||
for( $x = 0; $x < $xSize; $x++ ) {
|
||||
for( $y = 0; $y < $ySize; $y++ ) {
|
||||
$alpha = imagecolorsforindex( $mask, imagecolorat( $mask, $x, $y ) );
|
||||
$alpha = 127 - floor( $alpha[ 'red' ] / 2 );
|
||||
$color = imagecolorsforindex( $picture, imagecolorat( $picture, $x, $y ) );
|
||||
imagesetpixel( $newPicture, $x, $y, imagecolorallocatealpha( $newPicture, $color[ 'red' ], $color[ 'green' ], $color[ 'blue' ], $alpha ) );
|
||||
}
|
||||
}
|
||||
|
||||
// Copy back to original picture
|
||||
imagedestroy( $picture );
|
||||
$picture = $newPicture;
|
||||
}
|
||||
|
||||
?>
|
|
@ -1,13 +0,0 @@
|
|||
[20-Nov-2017 17:13:24 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 17:13:31 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 17:13:31 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 17:13:31 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 17:13:31 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 17:13:31 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 17:13:31 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 17:13:37 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 17:13:37 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 17:13:37 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 17:13:37 CST6CDT] PHP Fatal error: Call to undefined function write() in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 20
|
||||
[20-Nov-2017 18:02:49 CST6CDT] PHP Parse error: syntax error, unexpected end of file in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 52
|
||||
[20-Nov-2017 18:03:07 CST6CDT] PHP Parse error: syntax error, unexpected end of file in /home/nouvia18/public_html/weatherscan/nowcoast/index.php on line 51
|
Loading…
Reference in New Issue