hi,
I set the scale of my map like this:
this.MyMapView.Map.MinScale = 2500000;
But how do i get the current scale of my map after i have zoomed to another scale?
Thanks in advance.
I'm not quite following the relationship between mapview scale and ZIndex on features on your features and graphics, but having said that, you can only control the ZIndex within a single graphics overlay, and graphics always goes on top of feature layers, so there's no way to have a feature in-between two graphics.
To get current scale of the map use `GeoView.GetCurrentViewpoint` and with ViewpointType as `CenterAndScale` https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.GeoView.GetCurrentViewpoint.html
Hello,
I think you want to try:
double scale = this.MyMapView.MapScale;
To set the scale, I would use:
await this.MyMapView.SetViewpointScaleAsync(scale);
Best regards,
Volker
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.