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.
Solved! Go to Solution.
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.GeoVie...
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.
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
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.GeoVie...