To add a tileset to the map, first copy the uuid of the tileset from the geobox portal and get the tileset from the server:

getTileset(tileset_uuid)

Example:

const tileset = await Server.getTileset('4f9f3e4b-4dc1-469b-83ab-00ae00f02581');

Then add the tileset to the map as follows.

addTileset(tileset)

Parameters:

tileset is the tileset that is got from the server.

Returns:

String: Returns a message that shows adding tileset was successful or not. Null message means adding was successful.

Example:

const result = await map.addTileset(tileset);

See the Pen Contact Form – Pen a Day 20 by Geobox (@geobox-gl-demo) on CodePen.1

Leave a comment

Your email address will not be published. Required fields are marked *