To add a mosaic layer to the map, first copy the uuid of the mosaic layer from the geobox portal and get the mosaic layer from the server:
getMosaic(mosaic_uuid)
Example:
const mosaicLayer = await Server.getMosaic('4f9f3e4b-4dc1-469b-83ab-00ae00f02581');
Then add the mosaic layer to the map as follows.
addMosaicLayer(mosaicLayer)
Parameters:
mosaicLayer is the mosaic layer that is got from the server.
Returns:
String: Returns a message that shows adding layer was successful or not. Null message means adding was successful.
Example:
const result = await map.addMosaicLayer(mosaicLayer);
See the Pen Contact Form – Pen a Day 20 by Geobox (@geobox-gl-demo) on CodePen.1