简体   繁体   English

map 在 AMCHARTS 中使用 geojson 文件不起作用

[英]map using geojson file in AMCHARTS not working

I am quite new to javascript and I am having a hard time reproducing this example of amcharts map from geojson format exactly like the one illustrated.我对 javascript 很陌生,我很难从 geojson 格式复制 amcharts map 的这个例子,就像图示的那样。 What I did to try to reproduce locally: I created the files index.css , index.js and index.html and copied the codes from each of the tabs in the example on them.我做了什么来尝试在本地重现:我创建了文件index.cssindex.jsindex.html并复制了示例中每个选项卡中的代码。 what am I doing wrong?我究竟做错了什么?

Make sure you have Included Jquery.js before Index.js.确保在 Index.js 之前包含了 Jquery.js。 Also include geojson2svg( https://github.com/gagan-bansal/geojson2svg ) library which is mentioned in tutorial.还包括教程中提到的 geojson2svg( https://github.com/gagan-bansal/geojson2svg ) 库。

Happy Coding!!!!快乐编码!!!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM