stuquery icon indicating copy to clipboard operation
stuquery copied to clipboard

Load from external file

Open Brandysve opened this issue 4 years ago • 0 comments

Hello,

I'm trying to make a hexmap with your library. It works when I put the hexjson into the < code > tag but not from an external page. How can I embed an external hexjson ?

I tried the .load function but it doesn't work. I only have the error this.hexes[0] is undefined.

S(document).ready(function(){ var hexmap = S.hexmap('hexmap-1'); hexmap.load('HexM.hexjson'); });

Brandysve avatar Dec 25 '20 21:12 Brandysve