AnsweredAssumed Answered

[JSAPI 4.6][FeatureLayer] LayerView.queryExtent Error

Question asked by Justdoit011 on Apr 5, 2018
Latest reply on Apr 23, 2018 by RNicola-esristaff

I'm trying to queryExtent with a layer view. Instead of getting the extent, I got a strange exception:

The code is very simple:

function executeQuery(lyrView) {
    console.log("Querying extent begin");


        .then(function(result){ console.log(result); })

        .catch(function(e){ console.error(e); });


    console.log("Querying extent end");

Here is an running example: FeatureLayer LayerView QueryExtent 


It seems that this issue only happenes on point-based feature layers. lyrView.queryExtent works as expected on polygon feature layers. Maybe it's a bug?