AnsweredAssumed Answered

How to use view.goTo?

Question asked by shakiltmbc on Nov 7, 2018
Latest reply on Nov 7, 2018 by shakiltmbc

I have an x, y, spatialReference and zoom value that I need the map to go to. My map uses a custom basemap (same as the given spatial reference) and the view uses an extent value like so:

 

var view = new MapView({
container: "viewDiv",
map: map,
extent:new Extent ({"xmin": 554418, "ymin": 166279, "xmax": 584505, "ymax": 144457, "spatialReference":{"wkid": 27700}})
});

 

I can't get view.goTo to work no matter what I do.

Outcomes