Advertisement
Advertisement
| 05.27.2008 at 04:37AM PDT, ID: 23434395 |
|
[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: |
// ========= Now process the polylines ===========
var lines = xmlDoc.documentElement.getElementsByTagName( "poi_route" );
// read each line
for ( var a = 0; a < lines.length; a++ ) {
// get any line attributes
// var colour = lines[a].getAttribute("colour");
// var width = parseFloat(lines[a].getAttribute("width"));
// read each point on that line
var points = lines[a].getElementsByTagName("point");
var pts = [];
var sTo = "";
for ( var i = 0; i < points.length; i++ ) {
pts[ i ] = new GLatLng( parseFloat( points[ i ].getAttribute( "lat" ) ),
parseFloat( points[ i ].getAttribute( "lng" ) ) );
if(i==0) sTo+="from: ";
else sTo+="to: ";
sTo+=points[i].getAttribute("lat");
sTo+=",";
sTo+=points[i].getAttribute("lng");
sTo+=" ";
}
// map.addOverlay(new GPolyline(pts,colour,width));
// This draws the straight-line but if i comment it out No route appears for India because GDirections isn't supported there!
var gdir = new GDirections(map);
if (gdir.getStatus().code == 604) {
map.addOverlay( new GPolyline( pts ) );
} else {
gdir.load(sTo, {preserveViewport:true} );
}}
// ================================================
|