Implement custom zoom levels for MapZoomBar UI
It is now possible to customize the default preset zoom levels in the MapZoomBar UI for every map provider.
Customization of the zoom levels in the MapZoomBar
You can add custom zoom level through the MapZoomBar.RegisterSetZoomLevelCommand(zoomLevel, commandText, dataTemplate, imageUri):
zoomLevel - Specifies the zoom level to set.
commandText - Specifies the command label in the UI (you need to bind it in the DataTemplate as demonstrated below).
dataTemplate - Specifies the data template for command presentation in the UI.
imageUri - Uniform resource identifier (URI) of the image that is used in the map source button data template (you need to bind it in the DataTemplate as demonstrated below).
Here is a sample code snippet that demonstrates zoom level customization: