AnsweredAssumed Answered

get the extent of a featureLayer

Question asked by Sara_EL_MALKI on May 1, 2017
Latest reply on May 3, 2017 by Sara_EL_MALKI

Hi guys,

I want to get the extent of a featureLayer and Zoom to it, How I can Implement that in my code ?


function HideAllLayers() {
var layerIds = map.graphicsLayerIds;
var layer17 = map.getLayer(17); //I want to ZOOM to this Layer
var layer;
for (var i=0; i < layerIds.length; i++) {
layer = map.getLayer(layerIds[i]);
$('#editModal').modal('hide'); //CLOSE THE MODAL