Skip to content
JavaScript Client library for Elastic Maps Service
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ci/jobs
.vscode
src
test
.backportrc.json
.gitignore
CHANGELOG.md
CONTRIBUTING.md
LICENSE.txt
README.md
babel.config.js
package.json
yarn.lock

README.md

@elastic/ems-client

@elastic/ems-client is a JavaScript library for the Elastic Maps Service.

This library is intended to be used by Elastic products. Use of the Elastic Maps Service is governed by the Elastic Maps Service Terms of Service.

Installation

NPM npm i @elastic/ems-client

Yarn yarn add @elastic/ems-client

Building locally

yarn build

Usage

import { EMSClient } from '@elastic/ems-client';

const emsClient = new EMSClient({
  kbnVersion: '7.6.0',
  tileApiUrl: 'https://tiles.maps.elastic.co',
  fileApiUrl: 'https://vector.maps.elastic.co',
  emsVersion: '7.6',
  language: 'en'
});

Legacy (prior to v7.6)

import { EMSClient } from '@elastic/ems-client';

const emsClient = new EMSClient({
  kbnVersion: '7.2.0',
  manifestServiceUrl: 'https://catalogue.maps.elastic.co/v7.2/manifest',
  language: 'en'
});
You can’t perform that action at this time.