MapView.goTo() is not working and throwing a weird error

653
2
07-02-2019 01:54 AM
MohamadMousheimish1
New Contributor II

I'm using angular with esri maps. I'm trying to use the goTo() method of a mapView. I'm getting a weird error with an empty message.

Anyone know what's happening ? Or how to solve this issue ?

I'm sending the extent from the parent component to the child component, and I'm receiving it with the set method. And based on the extent sent from the parent, I'm using it to goTo it with the map.

Here's a snippet of my code, and of the error I'm seeing in the console.

The code snippet:

The error and the console log:

0 Kudos
2 Replies
GavinRehkemper
Esri Contributor

Is this.map an instance of Map or MapView? Double-check that it's an instance of MapView.

0 Kudos
MohamadMousheimish1
New Contributor II

Yes this.map is instance of MapView

0 Kudos