[3d map] sceneview goto brings zoom change

282
1
08-04-2020 07:23 PM
youngchun
New Contributor II

when i call sceneview.goto function with parameter x,y coordinates but it occur zoom changing.

How can i prevent zoom changing when move sceneview only x,y coordinates?

my code is :

var cen=mainView.center.clone();
cen.longitude=126.5;
cen.latitude=37.5;
var op={center:cen};
mainView.goTo(op,{animate :map_animation,speedFactor :2,maxDuration :400});
Tags (4)
0 Kudos
1 Reply
RalucaNicola1
Esri Contributor

Hi, theoretically, there shouldn't be any zoom change when you only pass latitude and longitude, have a look at this example: https://codepen.io/nicolaraluk/pen/vYGvQVd?editable=true&editors=100. Can you change it so that I can repro your situation?

0 Kudos