|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
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: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps API Example: Simple Geocoding</title>
<script src="http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA" type="text/javascript"></script>
<script type="text/javascript">
var map = null;
var geocoder = null;
var latlng = new Array(10);
var latlong = new Array(10);
var polyOptions = {geodesic:true};
latlng[0]="Bangalore";
latlng[1]="Tumkur";
latlng[2]="Arsikere";
latlng[3]="Kadur";
latlng[4]="Birur";
latlng[5]="Tarikere";
latlng[6]="Bhadravathi";
latlng[7]="Shimoga";
var latlongstring = "";
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(12.9697903,77.5797214),7);
map.enableScrollWheelZoom();
geocoder = new GClientGeocoder();
}
}
function showAddress(address,address1) {
if (geocoder) {
i = 0;
do{
geocoder.getLatLng(
latlng[i],function(point1) {
if (!point1) {
//alert( i + " not found");
} else {
latlong[i]=point1;
latlongstring += " , "+point1;
var marker = new GMarker(point1);
map.addOverlay(marker);
//alert(latlong[i]+"inside else");
}
}
);
i++;
}while(i<=7);
alert("out side "+latlongstring);
alert("out side 1"+latlongstring);
var latlongSplit = new Array(10);
latlongstring = latlongstring.replace("),(","").replace("),(","");
alert(latlongstring);
latlongstring.replace(")","");
latlongstring.replace(",","");
alert(latlongstring);
// latlongSplit = latlongstring.split(",");
/* for(j = 0; j< latlongSplit.length; j++){
alert(latlongSplit[j]);
}*/
var polyline = new GPolyline(
[
latlong[0],
latlong[1],
latlong[2],
latlong[3],
latlong[4],
latlong[5],
latlong[6],
latlong[7],
], "#FF0000", 4,1, polyOptions
);
map.addOverlay(polyline);
}
}
function setLatLangFunc(address)
{
}
function clearMap() {
map.clearOverlays();
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()">
<p>
<input type="button" value="Go!" onclick="showAddress(address.value,address1.value); return false"/>
</p>
<div id="map_canvas" style="width: 500px; height: 300px"></div>
<a href="#" class="button" style="text-align:center" onclick="clearMap();return false;">Clear Map</a>
</body>
</html>
|
Advertisement
| Hall of Fame |