How to use Fetch method inplace for GetMetaData

294
1
05-24-2022 12:43 AM
NEERAJNASWA
New Contributor III

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);

                      })

                  })

Tags (3)
0 Kudos
1 Reply
ReneRubalcava
Frequent Contributor

What is getMetaData? Doesn't look like a method in the ArcGIS JSAPI.

0 Kudos