Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
David Troy committed May 30, 2008
1 parent 5fee718 commit a93d3bb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
Binary file added anchor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions geohash-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,21 @@ function plotGeoHash (gLatLng) {
var lat = parseInt(gLatLng.lat()*1000)/1000;
var lng = parseInt(gLatLng.lng()*1000)/1000;
searchInfo.innerHTML = lat + ", " + lng + " [w:" + xdistance + units + ", h:" + ydistance + units + "] (" + searcharea + "km2)";

// var myIcon = new GIcon({image : './anchor.png', shadow : './shadow.png'});
// var myMarker = new GMarker(gLatLng);
// map.addOverlay(myMarker);
}

function clearSpan(s) {
sp = document.getElementById(s);
sp.innerHTML = "";
}

function cleanUp() {
map.clearOverlays();
clearSpan('boxList');
clearSpan('searchInfo');
}


Expand Down
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
font-weight: Bold;
color: white;
margin: 0px;
padding: 0px;
}
input {
font-family: 'Helvetica';
Expand All @@ -22,7 +23,7 @@
</style>
</head>
<body>
<div style="width:100%; background: #000; height: 10%; padding: 15px;">
<div style="width:100%; background: #000; height: 90px; padding-left: 15px; padding-top: 15px;">
<input type="text" value="1600 Pennsylvania Ave, Washington, DC" id="address" name="address" size="50">
<input type="text" value="" id="geoHash" name="geoHash">
<select id="hashResolution" name="hashResolution">
Expand All @@ -35,11 +36,10 @@
</select>

<input type="button" value="plot" onClick="geocodeAddress();">
<input type="button" value="clear" onClick="map.clearOverlays();">
<br>
<span id="boxList"></span><br/>
<span id="searchInfo"></span>
<input type="button" value="clear" onClick="cleanUp();">
<div id="boxList"></div>
<div id="searchInfo"></div>
</div>
<div id="map" style="width:100%; height:90%;">
<div id="map" style="width:100%; height:800px;">
</body>
</html>
Binary file added shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a93d3bb

Please sign in to comment.