Welly Google Map

by gavinfoley

HTML

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<div id="map_canvas"></div>

CSS

html, body, #map_canvas { margin: 0; padding: 0; height: 100% }

JavaScript

var map;
var myLatLng = new google.maps.LatLng(-41.215354, 174.351766);
var mapOptions = {
    zoom: 7,
    center: myLatLng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
};

function initialize() {
    map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);

    wellyCoords = [
        new google.maps.LatLng(-40.705628, 175.130310),
        new google.maps.LatLng(-40.718119, 175.171509),
        new google.maps.LatLng(-40.765982, 175.196228),
        new google.maps.LatLng(-40.711874, 175.281372),
        new google.maps.LatLng(-40.730608, 175.361023),
        new google.maps.LatLng(-40.684804, 175.330811),
        new google.maps.LatLng(-40.641051, 175.399475),
        new google.maps.LatLng(-40.643136, 175.421448),
        new google.maps.LatLng(-40.622292, 175.413208),
        new google.maps.LatLng(-40.616037, 175.459900),
        new google.maps.LatLng(-40.618122, 175.479126),
        new google.maps.LatLng(-40.501269, 175.597229),
        new google.maps.LatLng(-40.469935, 175.685120),
        new google.maps.LatLng(-40.557635, 175.621948),
        new google.maps.LatLng(-40.666056, 175.539551),
        new google.maps.LatLng(-40.697299, 175.561523),
        new google.maps.LatLng(-40.668140, 175.613708),
        new google.maps.LatLng(-40.722283, 175.591736),
        new google.maps.LatLng(-40.724364, 175.745544),
        new google.maps.LatLng(-40.774302, 175.797729),
        new google.maps.LatLng(-40.770142, 175.860901),
        new google.maps.LatLng(-40.759741, 175.929565),
        new google.maps.LatLng(-40.701464, 175.973511),
        new google.maps.LatLng(-40.713956, 176.036682),
        new google.maps.LatLng(-40.676472, 176.097107),
        new google.maps.LatLng(-40.682721, 176.149292),
        new google.maps.LatLng(-40.722283, 176.253662),
        new google.maps.LatLng(-40.772222, 176.261902),
        new google.maps.LatLng(-40.784701, 176.259155),
        new google.maps.LatLng(-40.882371, 176.223450),
        new...