You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace the hardcodedMapData variable by something you load from a "map.json" in the same directory.
This should be a simple matter of calling JSON.parse() and then performing some sanity checks on the loaded data. However, if the map data is too bulky and crashes the webapp we may have to design something smarter and revisit #3.
The text was updated successfully, but these errors were encountered:
Replace the hardcodedMapData variable by something you load from a "map.json" in the same directory.
This should be a simple matter of calling JSON.parse() and then performing some sanity checks on the loaded data. However, if the map data is too bulky and crashes the webapp we may have to design something smarter and revisit #3.
The text was updated successfully, but these errors were encountered: