-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
How to programatically load a json format map ? #150
Comments
Hi, the answer is : in // .js/ui/backend/file.js, change the FileUI class with adding the function :
Add a script to load the json file stored on the server as a .json file (if not stored in a database) :
Wherever you want to programmatically load a map saved in the json native format :
|
First of all, it is generally a bad idea to rely on anything included in the generated Second, your suggestion closely mirrors what the import { repo } from "./ui/backend/backend.js";
repo.get("webdav").load("url of your saved map"); |
Hi Ondras,
I would like to load a map saved in the default json format, as in #149
It is possible to do it with the user interface but I can't get how to do it automatically when launching the map for example. I think it is already programmed because you can update the map when using it in realtime.
the json format would be as string format, uploaded from the server or a database for example.
The text was updated successfully, but these errors were encountered: