local run
1. Open the L7demo page
Choose any one you want to seedemo。
You may not have noticed that there is a row of tool buttons above the code area.
2. Open codesandbox.
Click the third button on the left and you will entercodesandbox。
You find that you have entered an online code editor, where you can modify the code and see the effect at any time.
You may want to say that I just want to run it locally and don’t want to modify it online.
Of course it is possible.
3. Download demo source code
-
exist
codesandboxThe file directory tool has a download button, refer to the red part in the picture. -
Click to download and you can put this
demoDownload the source code locally.
4. Start the project
Unzip the project and enter the project directory.
- Install environment dependencies
If you don’t knowyarnYou may need to add some front-end knowledge, if notyarnYou need to install the environment.
yarn install
- Startup project
yarn start
The browser will automatically openhttp://localhost:3000/,sodemoJust started running.
Now you can freely modify the code locally and add your own layers.
L7alldemoAll can be found incodesandboxOpen and you can download the code.