Hi folks,
I am trying to zoom out on my map when drawing rectangle sketch. I can zoom out, but it does only from the center of the map, not from the rectangle, view.goTo() does not work, only zoom Out. Any idea what is wrong?
@Sage_Wall
sketchViewModellZoom.on("create", async (event) => {
if (event.state === "complete") {
var ext = view.extent;
view.goTo({
target: event.graphic,
extent: ext.expand(1.75),
});
polygonGraphicsLayerrZoom.remove(event.graphic);
}
});