GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - reearth/core: A library that abstracts a map engine as one common API.

BranchesTags
Open more actions menu

Latest commit

 

History

308 Commits
308 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.storybook
.storybook
 
 
docs
docs
 
 
example
example
 
 
perf-results
perf-results
 
 
src
src
 
 
.env.example
.env.example
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.yml
.eslintrc.yml
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
components.json
components.json
 
 
index.html
index.html
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
postcss.config.js
postcss.config.js
 
 
renovate.json
renovate.json
 
 
tailwind.config.js
tailwind.config.js
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.node.json
tsconfig.node.json
 
 
vite.config.example.ts
vite.config.example.ts
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

@reearth/core

  • Visualizer: Map
  • Map: Engine + mantle

Architecture

Context

We have some type of the context to expose the interface for the map API. The map API is the abstracted map engine API. For example, we are using Cesium as the map engine, but we have a plan to support another map engine in the future. To do this, we define the interface as the map API. The map API is abstracted as MapRef internally. The MapRef has two type of API for now. First one is EngineRef that is API to access to the map engine's API. And second one is LayersRef that is API to access to the abstracted layer system. This manages the data to display for the map engine.

We have the context as the follows.

  • FeatureContext ... It works as the interface for exposing the map API to the Feature components and the Layers component.
  • WidgetContext ... It works as the interface for exposing the map API to the Widget components.
  • VisualizerContext ... It works as the interface for exposing the map API to Visualizer.

By defining these context as the interface, we can understand which API for the map API is used in each layer. And if there are some features of the map API depends on the layer, we can absorb the feature in the context.

Devlopment

You have several way to develop this library.

  1. You can use storybook: yarn storybook
  2. You can use example project: yarn dev
  3. You can also use different project with this library: yarn build && yarn link, then cd ../other-project && yarn link @reearth/core

Releasing (alpha)

Alpha versions are published to npm via npm Trusted Publishing (OIDC): no npm token is stored anywhere, and every release ships with a signed provenance attestation. Releasing is a two-step, approval-gated flow that you drive from the Actions tab, so you never publish from your laptop.

flowchart TD
    A["๐Ÿ‘ค Run 'Prepare Alpha Release'<br/>(Actions โ†’ Run workflow)"] --> B["๐Ÿค– Bumps the version and opens<br/>a release/alpha-* PR"]
    B --> C["๐Ÿ‘ค Review and merge the release PR"]
    C --> D["๐Ÿค– 'Release Alpha' runs on merge,<br/>then pauses at the approval gate"]
    D --> E["๐Ÿ‘ค Approve the npm-publish deployment"]
    E --> F["๐Ÿค– Build, tag vX.Y.Z, and<br/>npm publish (OIDC + provenance)"]
    F --> G["๐Ÿ“ฆ Published to npm<br/>(dist-tag: alpha)"]

    classDef human fill:#dbeafe,stroke:#3b82f6,color:#1e3a8a;
    classDef auto fill:#f1f5f9,stroke:#94a3b8,color:#334155;
    classDef done fill:#dcfce7,stroke:#22c55e,color:#166534;
    class A,C,E human;
    class B,D,F auto;
    class G done;
Loading

๐Ÿ‘ค = you do it ยท ๐Ÿค– = happens automatically

  1. Start a release. In the Actions tab, open Prepare Alpha Release โ†’ Run workflow (on alpha).
  2. ๐Ÿค– It bumps the prerelease version (โ€ฆ-alpha.N โ†’ โ€ฆ-alpha.N+1) and opens a release/alpha-* PR. To release a specific version instead, edit version in package.json on that PR before merging.
  3. Review and merge the release PR.
  4. ๐Ÿค– Merging triggers Release Alpha, which builds and then pauses for approval.
  5. Approve the npm-publish deployment: open the running job โ†’ Review deployments โ†’ approve.
  6. ๐Ÿค– It tags vX.Y.Z and runs npm publish --provenance. Done โœ…

Verify any published version with npm audit signatures.

Note: beta and latest currently use a separate, token-based release workflow and are not part of this OIDC flow yet.

About

A library that abstracts a map engine as one common API.

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

4 stars

Watchers

5 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.