'How to use fetch method in place for GetMetaData
How can i use fetch method in place for GetMetaData? I am trying to implement a function for the 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);
})
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
