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