Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load from external file #4

Open
Brandysve opened this issue Dec 25, 2020 · 0 comments
Open

Load from external file #4

Brandysve opened this issue Dec 25, 2020 · 0 comments

Comments

@Brandysve
Copy link

Brandysve commented Dec 25, 2020

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'); });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant