【发布时间】:2015-12-05 14:25:28
【问题描述】:
在更改我的代码后,我收到错误“Uncaught TypeError: Cannot set property 'custom/world' of undefined”
<script src="https://code.highcharts.com/maps/highmaps.js"></script>
<script src="https://code.highcharts.com/maps/modules/exporting.js"></script>
<script src="https://code.highcharts.com/mapdata/custom/world.js"></script>
到
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/highmaps.js"></script>
<script src="https://code.highcharts.com/maps/modules/exporting.js"></script>
<script src="https://code.highcharts.com/mapdata/custom/world.js"></script>
我认为与 custom/world,js 同时使用 highcharts 和 highmaps 存在一些冲突。有谁知道如何解决这个问题?
提前致谢。
【问题讨论】:
-
尝试加载
http://code.highcharts.com/maps/modules/map.js而不是highmaps.js。 -
@HalvorStrand 我也在官网上找到了同时使用highcharts和highmaps的url,但是url好像坏了。因此,我遵循了stackoverflow.com/questions/25230483/… 的答案。但是,它并没有解决 custom/world.js 的问题。
标签: highcharts highmaps