-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot.php
71 lines (46 loc) · 1.59 KB
/
plot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
require_once('scripts/php/getxml.php');
//USE HTTP NOT HTTPS!!!!!!!!!!!!!
$alertraw = $_GET['alert'];
$alertID = substr($alertraw, 46);
//$alert = "http://alerts.weather.gov/cap/wwacapget.php?x=AL1253B4A3478C.SevereThunderstormWarning.1253B4A3608CAL.BMXSVSBMX.46618850bf2a2ce3e3083951a2a37391";
$alert = "http://alerts.weather.gov/cap/wwacapget.php?x=".$alertID;
$coordinates = getCoordinates($alert);
$county = getArea($alert);
//$center = centerMap($county);
?>
<!DOCTYPE html>
<html>
<head>
<title>Area Plot</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body, #map-canvas {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script>
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="scripts/js/drawmap.js"></script>
<script src="scripts/js/buildCoords.js"></script>
<script src="scripts/js/parseXML.js"></script>
<script src="scripts/js/eyeOfStorm.js"></script>
<script>
google.maps.event.addDomListener(window, 'load', initialize);
coordinates = "<?php echo $coordinates; ?>";
//stormCenter = eyeOfStorm(coordinates);
getPolygon(coordinates);
eyeCoords = eyeOfStorm(coordinates);
/* getPolygon(coordinates);
center = "<?php echo $center; ?>";
centerChunk = center.split(" "); */
</script>
</head>
<body>
<div id="map-canvas"></div>
<div id="test"></div>
</body>
</html>