0

I am using vector tile layer in my Angular project to load ESRI map

const point = {
            type: "point",  // autocasts as new Point()
            longitude: long,
            latitude: lat
          };
const customData = {
    type: "simple-fill", 
    color: red
}
const circleParam = new esri.Circle({
            center: point,
            radius: circleParams.radius,
            geodesic: true
        });
circle = new esri.Graphic(circleParam, customData);

goToCircle(map, circle): void {
        const circleExtent = circle.geometry.extent;
            map.goTo(circleExtent)
            .catch(function(error) {
                if (error.name != "AbortError") {
                    console.error(error);
                }
                });
    }
}

But im getting error as name: 'view:goto-interrupted', message: 'Goto was interrupted'

I am loading Map using Vector Tile layer

layer = new esri.VectorTileLayer(layerUrl, null);

The same circle creation is working fine when map created in Tile layer.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.