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.
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
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
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.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.