yarn && yarn dev
Then, set the localhost
to env file in reearth
repository.
- Move to
reearth
repository. - Open
/server/.env
, and setREEARTH_EXT_PLUGIN=http://localhost:5001
. - Open
/web/.env
, and setREEARTH_WEB_UNSAFE_PLUGIN_URLS='["http://localhost:5001/PLATEAUVIEW3.js"]'
- Run server and web.
- toolbar ... Main logic for toolbar widget
- search ... Main logic for search widget
- inspector ... Main logic for inspector widget
- streetView ... Main logic for street view widget
- notification ... Main logic for notification widget
- prototypes ... Modules which are ported from takram-design-engineering/plateau-view.
- shared/ ... Shared logic between widgets
- constants/ ... Constant variables definition
- context/ ... Shared context.
WidgetContext
is used for each widget. - sharedAtoms/ ... Wrapped Jotai's atoms for abstracting side-effects
- states/ ... Global state definitions
- graphql/ ... Functions related to GQL include react hooks.
- helpers/ ... Helper functions for specific use case
- layerContainers/ ... Connect a lot of atoms(states) with specific layer component.
- plateau/ ... Plateau specific module
- reearth/ ... Bundle ReEarth functions.
- view/ ... Abstraction layer for
prototypes/view
- fields/ ... Field components definition.
- general/ ... Field components for general use.
- polygon/ ... Field components for polygon.
- point/ ... Field components for point.
- 3dtiles/ ... Field components for 3dtiles.
- ...etc
- fields/ ... Field components definition.
- view-layers/ ... Abstraction layer for
prototypes/view-layers
- 3dtiles/
- general/ ... Almost layers which don't need a layer specific logic are defined in here.
- ...etc
- api/
- types/ ... Common interface definition between viewer and editor
以下2種類の全データをダウンロードし、public
ディレクトリ配下にそれぞれ配置します。
- 国勢調査5次メッシュ人口及び世帯 の全データを
public/T001102/
配下に展開 - 国勢調査5次メッシュ人口移動、就業状態等及び従業地・通学地 の全データを
public/T001109/
配下に展開
次に yarn decode-estat
を実行し、ダウンロードしたすべてのファイルを Shift-JIS から UTF-8 に変換します。