Project for KMS Lighthouse frontend sync event.
This project is designed to demonstrate typical use cases of online maps. Part of the report on the subject of online maps.
-
Make sure, that
node.js(tested with v16) andyarn(tested with 1.22) are installed. Or you can usedocker(tested with 20.10.22) anddocker-compose(tested with 2.14.1); -
Acquire your maptiler key by registering account at maptiler cloud;
-
Create a copy of
config.example.jsonnamedconfig.json. Replaceget-your-key-at-maptiler-dot-comwith key, acquired in first step; -
Run
yarn installandyarn startordocker-compose run builder; -
Open
docs/maps-sync/1.0.0/index.htmlin your browser.
After you opened index.html you will see tutorials dropdown on the left side of page. Click it and then
select tutorial you want to see.
The main idea of this project is to use jsdoc functionality to build pages, where you can see both: source code and working map, that is created by this source code. To achieve this, we are using next things:
-
gulp-changeplugin - to inject contents of*.tsinto corresponding html for tutorials. And also, we are inserting relative link to builded bundle, that contains code, that will be executed in this tutorial; -
webpack- to build tutorials bundle; -
jsdoc- to generate tutorials pages from intermediates, created bygulp-change; -
And
gulp-runand other gulp tasks - to put this all together in one yarn command.
This project is licensed under MIT license. Except geo data, used in tutorials (data located in assets and public
catalogs).
Sources of geodata used in tutorials displayed in builded tutorials in corresponding attributions fields.