Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
194
rated 0 times [  197] [ 3]  / answers: 1 / hits: 16368  / 10 Years ago, sun, august 10, 2014, 12:00:00

I've a page that contain chart and map menu for report function.
Then, I choose Highchart-Highmap library to reach the purpose above.
The chart function runs well but when I develop map function there's a error appear




TypeError: ma is not a function





  • I've traced the problem that the ma function is appear in highchart.js and highmaps.js but I don't know how to resolve this conflict.

  • I've try put jQuery.noConflict(); in highmaps but the conflict still appear



This how I code in main page



... some html code
<script type=text/javascript src=././js/highcharts/highcharts.js></script>
<script type=text/javascript src=././js/highcharts/highcharts-more.js></script>
<script type=text/javascript src=././js/highcharts/highcharts-3d.js></script>
<script type=text/javascript src=././js/highcharts/modules/drilldown.js></script>
<script type=text/javascript src=././js/highcharts/modules/exporting.js></script>

... some html code
<script type=text/javascript src=././js/Highmaps/highmaps.js></script>
<script type=text/javascript src=././js/Highmaps/modules/data.js></script>
<script type=text/javascript src=././js/Highmaps/modules/exporting.js></script>


How I can resolve this problem?


More From » jquery

 Answers
10

Instead of highmaps, you need to use map.js module.



<script src=//code.highcharts.com/maps/modules/map.js></script>


Here is the documentation on using both together.


[#69835] Friday, August 8, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iliana

Total Points: 246
Total Questions: 109
Total Answers: 82

Location: Palestine
Member since Tue, Jul 20, 2021
3 Years ago
;