如果我做类似的事情

map = new GMap2(document.getElementById(mapCanvas));
directions = new GDirections(map);
directions.load("SOME DIRECTIONS HERE");


在LInux上的firefox下,效果很好!
在safari下,它显示地图,但不显示方向。

是什么赋予了?

最佳答案

弄清楚了。

如果没有有效的API密钥,Google Maps API将不允许您使用GDirections。另外,您不能使用IP,因此必须使用DNS。

关于javascript - Google Maps API在Safari中无法正常工作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1446280/

10-09 04:50