AnsweredAssumed Answered

Accessing Zoom To Point On ArcGIS JavaScript API

Question asked by behClevest on Jan 13, 2017
Latest reply on Jan 13, 2017 by behClevest

Can you please let me know how we can enable ArcGIS JavaScript API to use custom ZoomIn function?

For example let's say I have a code Like


<button id="zoom-to-point" > Zoom To </button>

 and in Js Part


$("#zoom-to-point").on('click', function(){
var zoomLat = 49.2898
var zoomLong = -123.1364;
map.zoomTo(zoomLat,zoomLong );


As you know we have not such a .zoomTo function in API so can you please let me know how can I get it done?