Best way to describe this problem is with a link. Please visit this page: Ruby International | APOAds.com
In FireFox, everything works fine. In IE it load the directions but does not center on them. Perhaps it's only my PC, does it work on yours under IE?
Here's the javascript doing the brunt of the work:
$(function() {
// panorama of business
var biz = new GLatLng(35.796532,139.406645);
panoramaOptions = { latlng:biz };
myPano = new GStreetviewPanorama($("div#geoMap").get(0), panoramaOptions);
// get map for directions
var dirMap = new GMap2($("div#dirMap").get(0));
dirMap.setCenter(new GLatLng(35.740066,139.347582), 12);
dirMap.setUIToDefault();
// load directions
directions = new GDirections(dirMap, $("div#dirMapText").get(0));
directions.load("from: [email protected],139.347582 to: Ruby [email protected],139.406645");
$("#tabs").tabs({ cookie: { expires: 30 } });
});
Any assistance is greatly appreciated. (人)