@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
40 lines (37 loc) • 1.12 kB
TypeScript
/**
* Development environment utilities used in the SceneViewer.
*
* @internal
* @internal
*/
/**
* Check if we are running in a dev environment.
* Based on allowed hostnames.
*
* @param hostname - the window location hostname,
* automatically determined if not provided
* @internal
* @internal
*/
export function isDevEnvironment(hostname?: string): boolean;
/**
* Checks whether for telemetry logging purposes, we are running in a
* development environment.
*
* @param hostname - the window location hostname,
* automatically determined if not provided
* @internal
* @internal
*/
export function isTelemetryDevEnvironment(hostname?: string): boolean;
/**
* Adjusts the "static.arcgis.com" part of an URL to point to the
* corresponding development hostname.
*
* @param url
* @param hostname - the window location hostname,
* automatically determined if not provided
* @internal
* @internal
*/
export function adjustStaticAGOUrl(url?: string | null | undefined, hostname?: string): string | null | undefined;