Skip to content

Unify Interfaces of provider classes #300

Closed
@masa-sony

Description

@masa-sony

Interfaces of provider classes are not unified.

ClassName

current class names are as follows.

  • StandardImageProvider, CloudImageProvider, EmptyImageProvider.ts
  • StandardDemProvider, CloudDemProvider, FlatDemProvider.ts
  • StandardB3dProvider
  • RawPointCloudProvider
  • vectile/StandardTileProvider

RawPointCloudProvider is strange. It should be StandardPointCloudProvider.

Members of the providers

We are going to use async/await syntax for asynchronous functions and only use two functions to define provider class as follows.

  • async init({ signal: AbortSignal }):Promise<Info>
  • async requestTile(z, x, y, { signal: AbortSignal }): Promise<Data>

Where

  • signal is used for cancellation feature.
  • Info and Data depend on the types of tiles.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions