Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Use Yahoo! Maps Beta with the People widget System 10.4
Tiger only hintThis hint is similar to the Use Google Maps with the People widget hint, but it uses the new Yahoo! Maps Beta, which runs smoother on my Mac than does Google Maps.

This hint involves editing files in the widget package. It might be a good idea to make a copy of the People widget from /Library/Widgets into ~/Library/Widgets. Then control-click on the copied widget, select Show Package Contents from the pop-up menu, and open WhitePages.js in your favorite text editor.

Replace lines 877 (var mapURL = "http://www.daplus.us/showmap.aspx?";) to 902 (//pbalert("map url "+mapURL");) with the following:

var mapURL = "http://us.rd.yahoo.com/maps/us/insert/Tmap/extDD/*-http://maps.yahoo.com/dd?"; 

if (singleResult.address.length > 0)
{
    mapURL += "addr=";
    var tmpAddr = singleResult.address.replace(/(s*#.*$)/, "");
    mapURL += tmpAddr.replace(/s+/g, "+");
}
mapURL += "&csz=";
mapURL += singleResult.city.replace(/s+/g, "+");
mapURL += "&";
mapURL += singleResult.state.replace(/s+/g, "+");
if (singleResult.zip.length > 0)
{
    mapURL += "+";
    mapURL += singleResult.zip.replace(/s+/g, "+");
}

Save the file, quit the editor, and re-open the widget. Addresses will now open in Yahoo! Maps Beta.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,876 views]  

10.4: Use Yahoo! Maps Beta with the People widget | 3 comments | Create New Account
Click here to return to the '10.4: Use Yahoo! Maps Beta with the People widget' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Yahoo! Maps Beta with the People widget
Authored by: mathieul on Jan 26, '06 07:15:21AM

Thanks for the tip! I have a question though. What Mac are you using, and which browser? I don't see how yahoo maps beta can be faster than google maps, when it is so much slower on my Powerbook G4 1Ghz on Camino, Firefox and Safari.



[ Reply to This | # ]
10.4: Use Yahoo! Maps Beta with the People widget
Authored by: FruJu on Jan 26, '06 10:02:13AM

I'm not the original poster, but there's a significant difference in speed between Flash 7 and Flash 8 players on the Macintosh.

I didn't get such great performance out of Yahoo Maps on my machine (a 1.3GHz Powerbook G4) - but after upgrading to Flash 8 available on the Macromedia Flash site, I saw a big difference in performance.



[ Reply to This | # ]
10.4: Use Yahoo! Maps Beta with the People widget
Authored by: phanofwclark on Jan 26, '06 07:31:14AM

remember that it there is something wrong with the code - it seems to be a PHP error - just as there was with my Google implementation.

it needs to read as slash, backslash, s, etc.



[ Reply to This | # ]