Can't pass JSON object to useWebMap
gavinr opened this issue · comments
Gavin Rehkemper commented
In order to specify a portalUrl, I want to pass a JSON object to useWebMap
like this:
const [ref, view] = useWebMap({
portalItem: {
id: '123abc',
portal: {
url: 'https://my.portal.url'
}
},
}, { .... });
As it seems like I can do here:
esri-loader-hooks/src/utils/arcgis.ts
Line 46 in a3196b7
But the code never gets into loadItem()
since I'm passing in an object (not a string), isItem
is always false here, and always goes into loadMap
(where I want it instead to go into loadItem
)