我的Google地图代码全部平方且有效,但不会在页面上加载。这是有问题的页面,我有完整的代码可用性,不知道它为什么会破坏:
http://whs.rjuhsd.us/calendar/map
Gmaps JS位于标题中,带有正确的密钥。传感器设置为true,元素在文档中定义,正确显示,位于正确位置并可供用户使用。
HALP?
答案 0 :(得分:3)
答案 1 :(得分:1)
Chetan是对的,你遇到了jquery和Prototype之间的冲突。我看到你已经调用了jquery.noConflict()一次,但之后又将jquery导入到你的文档中,从而撤消了noConflict:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">
</script>
... snip ...
<!-- following scripts are for the jwPlayer installations oct.09 -->
<script type="text/javascript" src="/scripts/swfobject.js"></script>
<script type="text/javascript" src="scripts/jwplaylist/jquery-1.3.2.min.js">
</script>
有没有理由不更新swfobject.js以使用早期版本的jquery?
答案 2 :(得分:0)
我看到了谷歌地图的两个链接,但我想你想在这个页面中显示一个谷歌地图吗?
页面上有一个空的DIV:
<div id="map_canvas" style="width: 500px; height: 300px;"></div>
也许这是您打算嵌入地图的地方?如果是这样,您可以尝试使用以下内容替换它:
<div id="map_canvas" style="width: 500px; height: 300px;"><iframe width="500" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=2551+Woodcreek+Oaks+Blvd.+Roseville,+CA,+95747&sll=37.0625,-95.677068&sspn=41.767874,58.535156&safe=on&ie=UTF8&t=h&hq=&hnear=2551+Woodcreek+Oaks+Blvd,+Roseville,+Placer,+California+95747&ll=38.764056,-121.330884&spn=0.015209,0.020106&z=16&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=2551+Woodcreek+Oaks+Blvd.+Roseville,+CA,+95747&sll=37.0625,-95.677068&sspn=41.767874,58.535156&safe=on&ie=UTF8&t=h&hq=&hnear=2551+Woodcreek+Oaks+Blvd,+Roseville,+Placer,+California+95747&ll=38.764056,-121.330884&spn=0.015209,0.020106&z=16" style="color:#0000FF;text-align:left">View Larger Map</a></small></div>