Javascript TypeError:undefined不是对象(评估';Highcharts.maps';)

Javascript TypeError:undefined不是对象(评估';Highcharts.maps';),javascript,jquery,ruby-on-rails,highcharts,highmaps,Javascript,Jquery,Ruby On Rails,Highcharts,Highmaps,我在heroku使用javascript应用程序,包括highcharts('Map') 下面的代码可以正常工作(显示地图),但buy在heroku中无法使用相同的代码。 我在safari中检查了这个错误 <script src="https://code.highcharts.com/stock/highstock.js"></script> <script src="https://code.highcharts.com/stock/modules/export

我在heroku使用javascript应用程序,包括highcharts('Map')

下面的代码可以正常工作(显示地图),但buy在heroku中无法使用相同的代码。 我在safari中检查了这个错误

<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="http://code.highcharts.com/maps/modules/map.js"></script>
<script src="http://code.highcharts.com/maps/modules/data.js"></script>
<script src="http://code.highcharts.com/mapdata/custom/world.js"></script>
<script>
  $(function () {

    var mapData = Highcharts.geojson(Highcharts.maps['custom/world']);
    $('#container_map').highcharts('Map', {
        series : [{
            name: 'Countries',
            mapData: mapData,
            color: '#E0E0E0',
            enableMouseTracking: false
        }, {
            type: 'mapbubble',
            mapData: mapData,
            name: 'Population 2013',
            joinBy: ['iso-a2', 'code'],
            minSize: 4,
            maxSize: '12%',
            tooltip: {
                pointFormat: '{point.code}: {point.z} thousands'
            }
        }]
    });
  });
</script>   

<div id="container_map" style="width:100%; height:400px;"></div>
我不知道是什么原因造成的,甚至不知道这意味着什么

【本地主机中加载的js】

【在heroku中加载js】

检查开发人员工具中的“网络”选项卡。你所有的脚本都加载了吗?我的猜测是没有加载。正如您所预料的,custom/world没有加载。你能告诉我怎么加载这个js吗?我编辑并上传了截图(开发者工具中的网络标签,第一个是localhost,第二个是heroku),尝试将未加载的文件从http.up改为https。这个解决方案很有效。
TypeError: undefined is not an object (evaluating 'Highcharts.maps')
(anonymous function) ancient-retreat-xxxxx.herokuapp.com
fire - application-71e7db665fe5c7b55d9c6578db1369315ba029918aa95339a81fe6daa4ed7a5e.js:3144
fireWith - application-71e7db665fe5c7b55d9c6578db1369315ba029918aa95339a81fe6daa4ed7a5e.js:3256
ready - application-71e7db665fe5c7b55d9c6578db1369315ba029918aa95339a81fe6daa4ed7a5e.js:3468
completed - application-71e7db665fe5c7b55d9c6578db1369315ba029918aa95339a81fe6daa4ed7a5e.js:3499