AnsweredAssumed Answered

4.2 goTo collection of graphics with buffer

Question asked by torinth on Jan 25, 2017
Latest reply on Jan 26, 2017 by rscheitlin

Hi, I have a client side only feature layer that I add graphics to based on external data.  When I use mapView.goTo(featureLayer.source) it properly changes the zoom and panning to bring all graphics into view.  However it does not take into account the sizing of the graphics themselves so while the points are all view some graphics will be cut off out of full view.


Is there a way to goTo a collection of graphics but give it a buffer so that it goes out far enough to ensure the graphics are fully in view?  I can determine the buffer myself but cant find in the documentation how to do this.