A utility module containing common methods used to read, create and modify a PortalItem, WebMaps, WebScenes, MapView, SceneView.
Returns the view poperties defined from an ApplicationConfig.
Creates a WebMap
or WebScene
from a PortalItem
. You can optionally replace the WebMap
's or WebScene
's layer URLs by passing appProxies.
Creates a MapView
or SceneView
with a WebMap
or WebScene
depending on the type of map it is.
Creates a WebMap
from a PortalItem
. You can optionally replace the WebMap
's layer URLs by passing appProxies.
Creates a WebScene
from a PortalItem
. You can optionally replace the WebScene
's layer URLs by passing appProxies.
Returns the title of the PortalItem
.
Sets the basemap on a WebMap
or WebScene
if a basemapUrl
is defined in the ApplicationConfig
.
Adds a Graphic
marker and animates the view to its location if a marker
is defined.
Finds a location by query string and animates to its geometry if a query string is defined.