Thank you for your help.
Can you supply some more detail? Is this using the 3.x or 4.x version of the API? Is your point dataset a feature layer?
Here are two reference on getting the full extent from a feature layer, for example:
I am using the version 4, i am pushing my points directly into graphic layer.
Hope this help you.
The GraphicsLayer also has a fullExtent property
So, in your opinion, if i put this line of code : view.extent = view.graphics.fullExtent; , that will work ?
No, that won't work like that. view.graphics returns a Collection of graphics, not a GraphicsLayer, so you can't use the fullExtent method on that. The view's goTo method of the view can take an array of graphics or geometries. You can use something like this after adding the graphics to the view.
You'd need a timeout, since it takes a little time to add the graphics to the view.
Or you could add the graphics to a GraphicsLayer and watch for it to stop updating and zoom to its fullExtent.
Retrieving data ...