Hoggin

Aerial Mobile Web App collects count observations relative to geolocation.

by Alex Azuero

HTML

<!DOCTYPE html>
<html>
    
    <head>
        <title>Hog Hunts</title>
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
        <meta charset="UTF-8">
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&libraries=drawing"></script>
        <style type="text/css">
            html, body {
                margin: 0;
                width:100%;
                height: 100%;
            }
            #map_canvas {
                position:absolute;
                top:0px;
                bottom:0;
                left:0;
                right:0px;
            }
            body {
                font: normal 13px/18px helvetica, arial;
                padding: 0 0 0 9px;
            }
            h1 {
                padding: 9px 9px 9px 0;
                font-size: 15px;
                font-weight: normal;
            }
            b {
                display: inline-block;
                margin-right: 20px;
                font-weight: normal;
            }
            .n {
                width: 46px;
                text-align: right;
            }
            .t {
                width: 50px;
            }
            .d {
                color: #999;
            }
            a {
                color: #3681B3;
            }
            a:hover {
                color: #265C80;
            }
            #count {
                width:auto;
                height:1em;
                padding:0px;
                font-size:72px;
                font-decoration:bold;
                text-align:right;
            }
        </style>
        <script type="text/javascript">
            var map, path = [],
                service = new google.maps.DirectionsService(),
                shiftPressed = false,
                cnt = 0,
                poly;
            //var marker;
            var pos;
            var polyLine;
            var polyOptions;
            var markers = [];
            var...

CSS

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%
}
#map {
    top:0px;
    right:0px;
    left:0px;
    bottom:0px;
    height: 100%;
    width:100%;
    position:absolute;
}
#infoBox {
    width:300px;
}
#panel {
    position:relative;
    top:45px;
    right: 5px;
    z-index:111;
    width: 70px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    float: right;
    margin: 5px;
}
#color-palette {
    clear: both;
        z-index:111;
}
#closer {
    top:10px;
    right:0px;
    width: 70px;
    height: 45px;
    font-size: 28px;
    margin: 5px 5px 5px 5px;
    position:absolute;
    z-index:111;
    cursor: pointer;
    color: black;
    background:none;
}
#tools {
    right:0px;
    top:170px;
    font-size: 28px;
    margin: 5px 5px 5px 5px;
    height: 150px;
    position:absolute;
}
#samples {
    right:0px;
    top:350px;
    font-size: 12px;
    height: 90px;
    width: 70px;
    position:absolute;
}
.color-button {
    width: 70px;
    height: 35px;
    font-size: 20px;
    margin: 2px;
    float: left;
    cursor: pointer;
    color: black;
}
#delete-button, #import-button, #export-button {
    padding-left: 5px;
    font-size: 24px;
    border: 2px solid silver;
}