1.1.1 • Published 24 days ago

@ogcapi-js/features v1.1.1

Weekly downloads
33
License
MIT
Repository
github
Last release
24 days ago

@ogcapi-js/features

npm

A lightweight JavaScript client library for OGCAPI - Features.

This library works with endpoints defined at:

See more details at the documentation.

Installation

npm install @ogcapi-js/features

Usage

Node.js

This library uses the global fetch function for HTTP requests. Please consider using isomorphic-fetch for polyfill.

require('isomorphic-fetch');

const { FeatureService } = require('@ogcapi-js/features');

// create a new service client
const service = new FeatureService({
  baseUrl: 'https://ogcapi.service.com'
});

// get all collections from the service
const collections = await services.getCollections();

Browser

Modern browsers already support the global fetch function so there is no need to polyfill.

import { Service } from `@ogcapi-js/features`;

// create a new service client
const service = new FeatureService({
  baseUrl: 'https://ogcapi.service.com'
});

// get all collections from the service
const collections = await services.getCollections();
1.1.1

24 days ago

1.1.0

2 months ago

1.0.0

6 months ago

0.5.0

8 months ago

0.4.1

1 year ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.1.2

4 years ago