国土地理院が提供実験を開始したバイナリベクトルタイルを OpenLayers で表示したプロジェクトの作成例です。
最適化ベクトルタイル試験公開
https://github.com/gsi-cyberjapan/optimal_bvmap
https://cieloazul310.github.io/ol-vectortile/
$ git clone [email protected]:cieloazul310/ol-vectortile.git
$ cd ol-vectortile
$ npm install
# develop
$ npm run start
# build
$ npm run build
# format with prettier
$ npm run format
# deploy to gh-pages
$ npm run deploy
- Settings > Code and automation > Actions > General
Workflow permissions: Read and write permissions - Settings > Code and automation > Pages
Build and deployment Source: GitHub Actions
- Site configuration > Build & Deploy > Continuous deployment
Build settings Build command:
npm run build -- --site $URL