Hi:
I meet a problem when using view.goto in EPSG:3826; in EPSG:3857, the view.goto can work well and
zooming when it move to the new coordinate, but in EPSG:3826, after the screen doing the move action,
then the zoom action is no react, the value of view.zoom is become -1, the code snippet is as following:
var newCenterPoint = new Point({
x: new_center_coordinates[0],
y: new_center_coordinates[1],
spatialReference: {
wkid: 3826 // Specify the desired spatial reference WKID
}
});
esri_goto_option = {
animate: true,
duration: 1500,
spatialReference: {
wkid: 3826 // Specify the desired spatial reference WKID
}
};
view.goTo({
target: newCenterPoint,
zoom: 15
}, esri_goto_option)
.then(function() {
try {
console.log("After goTo:", view.zoom);
} catch (error) {
console.error("Error during goTo:", error);
}
})
.catch(function(error) {
console.error("Error during goTo:", error);
});
is anyone know the problem and how to solve that, thanks a lot.