examples
examples copied to clipboard
maptalks examples
maptalks examples
Source repository of maptalks.js's examples.
Folder
.
|- assets/ # assets, CSS/images
|- build/examples.json # examples index json file
|- dist/ # distribution folder, root for gh-pages branch
|- layouts/ # templates
|- locales/ # i18n configs
|- src/ # examples sources
Setup
- At root directory
npm install
- run
gulp
- copy
assetstodist/ - Compile sources in
src, generate html files todist - Start gulp-connet on port 20001, begin to watch file changes to rebuild
- Open the browser at
- english : http://localhost:20001/examples/en/
- chinese: http://localhost:20001/examples/cn/
Contribute and Publish
Sources files are stored in master branch. Once master branch is updated with new commits, examples will be compiled and published to gh-pages branch automatically.
Any form of contribution is warmly welcomed any time, please submit your pull request to master branch (NOT gh-pages branch).