Map interaction handlers

zoomToDefaultExtent()

If a map is opened, zooms to the map extent saved in geobox studio, if a layer is opened, zooms to the layer extent.

Returns:

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

Example:

const result = await map.zoomToDefaultExtent();

resetBearingAndPitch()

Reset map bearing and pitch angle.

Returns:

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

Example:

const result = await map.resetBearingAndPitch();

Leave a comment

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