【问题标题】:jMapping V2.0 : not drawing markers in Rails 3 + jQuery-UJS projectjMapping V2.0:不在 Rails 3 + jQuery-UJS 项目中绘制标记
【发布时间】:2010-12-09 20:31:03
【问题描述】:

我在 rails 3 项目中使用 jMapping V2.0 时遇到问题,它不显示标记,插件使用 MarkerManager v3 1.0 来管理标记,我使用 mozilla 和 chrome 进行了测试,但两者都没有显示标记..网页是http://inmoble.heroku.com/mapa所以你可以看看代码,如果有人能指出我正确的方向,谢谢:)

【问题讨论】:

    标签: javascript ruby-on-rails google-maps heroku


    【解决方案1】:

    尝试将包含的 google javascript 文件移动到 javascript 文件列表的开头。

    你有:

    <script src="/javascripts/map/StyledMarker.js?1291880427" type="text/javascript"></script>
    <script src="/javascripts/map/markermanager.js?1291880427" type="text/javascript"></script>
    <script src="http://maps.google.com/maps/api/js?v=3.3&sensor=false" type="text/javascript"></script>
    

    改为:

    <script src="http://maps.google.com/maps/api/js?v=3.3&sensor=false" type="text/javascript"></script>
    <script src="/javascripts/map/StyledMarker.js?1291880427" type="text/javascript"></script>
    <script src="/javascripts/map/markermanager.js?1291880427" type="text/javascript"></script>
    

    【讨论】:

    • 像魅力一样工作 :).. 谢谢 Mcloving.. 顺便说一句,这是我的第一个问题.. 我怎样才能提高你的声誉?再次感谢:)
    • 没问题landox。您只需选择我的答案左侧的大“0”,我认为应该说“接受这个作为答案”。我认为无论如何,你也是我的第一个接受者:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-13
    • 2012-05-21
    • 2011-05-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多