var mapURL = "http://www.mapquest.com/maps/map.adp?country=us&address=";
mapURL += URLEncode( singleResult.address );
mapURL += "&city=";
mapURL += URLEncode( singleResult.city );
mapURL += "&state=";
mapURL += URLEncode( singleResult.state );
mapURL += "&zip=";
mapURL += URLEncode( singleResult.zip );
addressSpansContainer.setAttribute("maplink", mapURL );
addressSpansContainer.onclick = function(event)
if( window.widget )
Here are the mapquest guidelines for creating a link to directions (instead of a map): link
Thanks for the help. I will definitely share the edited widget.
|All times are GMT -4. The time now is 03:35 AM.|
Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.