Esri / hub.js

TypeScript wrappers for talking to ArcGIS Hub
https://esri.github.io/hub.js/
Apache License 2.0
33 stars 13 forks source link

Passing a hub url to ArcGISContextManager.create() defaults to hub.arcgis.com #776

Open cthackt opened 2 years ago

cthackt commented 2 years ago

Maybe I'm doing this wrong, but I am attempting to pass my company's hub site to .create(), and it's not working.

const ctxMgr = await ArcGISContextManager.create(undefined, undefined, undefined, undefined, "https://sccwrp.hub.arcgis.com");

cthackt commented 2 years ago

I was able to pass my ArcGIS Online portal "sccwrp.maps.arcgis.com" to .create() through the interface.

However, now when I try to query data from my hub site, I see that the _hubUrl is still set to "hub.arcgis.com".

How do I fix this?