Is there a way to zoom mapview to a line as is the case with the point? For example, when I want to zoom the map to a point I use: MapView.zoomTo(centerPt, factor), is it possible to do this with a line?
You can try setExtent on the MapView and pass in the Polyine Geometry itself. That might work the same.
I hope this is helpful.
You are right!
Many thanks Eric
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.