Hello,
I'm looking for a recommendation on the best way to create some buttons that zoom in / zoom out the map. I found this post (https://community.esri.com/message/590700?commentID=590700#comment-590700?q=zoomasync ) which talks about how to do it with ZoomAsync in the 10.X version of the runtime but I am using 100.2.1 and ZoomAsync does not seem to be there anymore. Is there a replacement for ZoomAsync or a different recommended way to accomplish this? I was not able to find any examples of this in the provided samples or docs.
Thanks,
Mark
Mark,
The MapView has some methods on it that you could use; try looking into MapView.SetViewpointCenterAsync, or MapView.SetViewpointScaleAsync.
Doc on these methods can be found at: https://developers.arcgis.com/net/latest/wpf/api-reference/html/Methods_T_Esri_ArcGISRuntime_UI_Controls_MapView.htm
A sample code can be found at: https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_UI_Controls_MapView_SetViewpointScaleAsync.htm
Hope this helps.
Tony
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.