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.json
namedconfig.json
. Replaceget-your-key-at-maptiler-dot-com
with key, acquired in first step; -
Run
yarn install
andyarn start
ordocker-compose run builder
; -
Open
docs/maps-sync/1.0.0/index.html
in 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-change
plugin - to inject contents of*.ts
into 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-run
and 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.