Trying to center the map at a certain coordinates but map only centers at 0,0 instead. Coordinates are in decimal degrees. Code below.
function foo(data) { var lon = data.address.longitude; var lat = data.address.latitude; var coord = [lat,lon]; var point = new esri.geometry.Point(coord) console.log(point) map.centerAt(point); };
أكثر...
function foo(data) { var lon = data.address.longitude; var lat = data.address.latitude; var coord = [lat,lon]; var point = new esri.geometry.Point(coord) console.log(point) map.centerAt(point); };
أكثر...