AnsweredAssumed Answered

Zoom to a feature on a mouse click event

Question asked by rwilson1983 on May 20, 2016
Latest reply on May 23, 2016 by ppapadopoulosmarathondata-gr-esridist

So, working on my first app and I have a point layer with a few locations in it.  I'm trying to create an event where, when the user clicks on a location, the map extent zooms to that location.  This is what I have so far and it doesn't work (not a shocker)....

 

layerName.on("click", function (zoom) {

 

  map.zoom (zoom.layer.setZoom(4));

});

Outcomes