How to use Fetch Method in place of GetMetaData. I am trying to implement a function so that map does not refresh.
view.on("click", function (evt) {
// Search for symbols on click's position
view.hitTest(evt.screenPoint)
.then(function(response){
console.log("screen click", response);
evt.preventDefault();
getmetaData(response?.results[0]?.graphic);
// datasample(response?.results[0]?.graphic);
})
})
What is getMetaData? Doesn't look like a method in the ArcGIS JSAPI.