0

Firefox 24.0 和最新的 Chrome 似乎都拒绝加载我的传单地图......但低于或低于 - 它在我的 Iphone 上的 Safari 上加载(没用,但值得注意)。

这是我在 Leaflet 和 Bootstrap 上的第一次尝试……除此之外,当我从 localhost 调用它时,.container 无法预测地工作……在我尝试将它加载到网页上之前,我没有遇到任何问题……

我很好奇为什么会这样,我以前从未见过这样的东西......

谢谢!

网站:链接到传单地图

有什么想法吗?

4

2 回答 2

1

好的,问题可能与 CDN 和安全性有关。当我在 Chrome 中打开您的示例站点时,它会警告我正在从未经授权的来源加载脚本。

由于 FF23,这些脚本也直接在浏览器中被阻止,并且您会收到如下错误消息:

Blocked loading mixed active content "http://code.jquery.com/jquery-1.10.1.min.js"

当我允许在 chrome 中加载未经授权的脚本时,(地址栏中有一个小盾牌图标)它可以正常工作!

因此,请尝试在本地提供这些脚本,它可能与 google drive 有关,由于 javascript 威胁本身,它更具限制性。

我希望它有所帮助,如果您认为这是解决方案,请将其标记为答案。

谢谢

于 2013-09-20T06:47:59.370 回答
0

You are loading leaflet.js before jquery, I get 9 js errors on the page.

One of them says:

ReferenceError: jQuery is not defined

Is leaflet dependend on jquery? Then you should load it first...

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>    
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
于 2013-09-19T06:26:53.823 回答