@maxim_mazurok/gapi.client.vectortile
v1.0.20211015
Published
TypeScript typings for Semantic Tile API v1
Downloads
605
Readme
TypeScript typings for Semantic Tile API v1
Serves vector tiles containing geospatial data. For detailed description please check documentation.
Installing
Install typings for Semantic Tile API:
npm install @types/gapi.client.vectortile@v1 --save-devUsage
You need to initialize Google API client in your code:
gapi.load('client', () => {
// now we can use gapi.client
// ...
});Then load api client wrapper:
gapi.client.load('vectortile', 'v1', () => {
// now we can use gapi.client.vectortile
// ...
});After that you can use Semantic Tile API resources:
/*
Gets a feature tile by its tile resource name.
*/
await gapi.client.vectortile.featuretiles.get({ name: "name", });
/*
Gets a terrain tile by its tile resource name.
*/
await gapi.client.vectortile.terraintiles.get({ name: "name", });