Skip to content

useLoadArcGISJSAPI

Function
useLoadArcGISJSAPI(): boolean

Dynamically load ArcGIS Maps SDK for JavaScript, returning a boolean value. If the return value is true, it means the API has been loaded.

example:

Use dark colors for code blocksCopy
1
2
3
4
5
6
const Component = (props) => {
const loaded = useLoadArcGISJSAPI()
if (loaded) {
  console.log('ArcGIS JavaScript API loaded')
}
}
Returns 
boolean

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.