diff --git a/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs b/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs index d33d8aaffb..17f5e6d3d1 100644 --- a/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs +++ b/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs @@ -34,7 +34,8 @@ private void Initialize() Map myMap = new Map(BasemapStyle.ArcGISTopographic); myMap.InitialViewpoint = new Viewpoint(34.056295, -117.195800, 50000); - // Enable magnifier. + // The magnifier is enabled by default but will only display on touch screen devices. + // To disable the magnifier set IsMagnifierEnabled = false. MyMapView.InteractionOptions = new MapViewInteractionOptions { IsMagnifierEnabled = true diff --git a/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.md b/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.md index 890d542da5..e8ca9030cd 100644 --- a/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.md +++ b/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.md @@ -15,13 +15,13 @@ Tap and hold on the map to show a magnifier, then drag across the map to move th ## How it works 1. Create a new `MapView`, and add an `Map` to it. -2. Enable the magnifier using `mapView.MagnifierEnabled`. This will set the magnifier to be shown on the `Map` when the user performs a long press gesture. Note: The default value is `false`. +2. Enable and disable the magnifier using `mapView.InteractionOptions.IsMagnifierEnabled`. This will set the magnifier to be shown on the `Map` when the user performs a long press gesture. Note: The default value is `true`. ## Relevant API * Map * MapView -* MapView.MagnifierEnabled +* MapViewInteractionOptions.IsMagnifierEnabled ## Additional information @@ -29,4 +29,4 @@ This sample only works on a device with a touch screen. The magnifier will not a ## Tags -magnify, map, zoom \ No newline at end of file +magnify, map, zoom diff --git a/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.metadata.json b/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.metadata.json index 24f8fa099d..9e6005b9f5 100644 --- a/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.metadata.json +++ b/src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.metadata.json @@ -18,7 +18,7 @@ "relevant_apis": [ "Map", "MapView", - "MapView.MagnifierEnabled" + "MapViewInteractionOptions.IsMagnifierEnabled" ], "snippets": [ "ShowMagnifier.xaml.cs", diff --git a/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs b/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs index e81166cadb..37d571abef 100644 --- a/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs +++ b/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs @@ -33,7 +33,8 @@ private void Initialize() Map myMap = new Map(BasemapStyle.ArcGISTopographic); myMap.InitialViewpoint = new Viewpoint(34.056295, -117.195800, 50000); - // Enable magnifier. + // The magnifier is enabled by default but will only display on touch screen devices. + // To disable the magnifier set IsMagnifierEnabled = false. MyMapView.InteractionOptions = new MapViewInteractionOptions() { IsMagnifierEnabled = true diff --git a/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.md b/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.md index ff2980190e..5a4cd15f04 100644 --- a/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.md +++ b/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.md @@ -15,13 +15,13 @@ Tap and hold on the map to show a magnifier, then drag across the map to move th ## How it works 1. Create a new `MapView`, and add an `Map` to it. -2. Enable the magnifier using `mapView.MagnifierEnabled`. This will set the magnifier to be shown on the `Map` when the user performs a long press gesture. Note: The default value is `false`. +2. Enable and disable the magnifier using `mapView.InteractionOptions.IsMagnifierEnabled`. This will set the magnifier to be shown on the `Map` when the user performs a long press gesture. Note: The default value is `true`. ## Relevant API * Map * MapView -* MapView.MagnifierEnabled +* MapViewInteractionOptions.IsMagnifierEnabled ## Additional information @@ -29,4 +29,4 @@ This sample only works on a device with a touch screen. The magnifier will not a ## Tags -magnify, map, zoom \ No newline at end of file +magnify, map, zoom diff --git a/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.metadata.json b/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.metadata.json index daa74e02ba..05a79baa70 100644 --- a/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.metadata.json +++ b/src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.metadata.json @@ -18,7 +18,7 @@ "relevant_apis": [ "Map", "MapView", - "MapView.MagnifierEnabled" + "MapViewInteractionOptions.IsMagnifierEnabled" ], "snippets": [ "ShowMagnifier.xaml.cs", diff --git a/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs b/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs index b413bf838d..f06c5d4877 100644 --- a/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs +++ b/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs @@ -33,7 +33,8 @@ private void Initialize() Map myMap = new Map(BasemapStyle.ArcGISTopographic); myMap.InitialViewpoint = new Viewpoint(34.056295, -117.195800, 50000); - // Enable magnifier. + // The magnifier is enabled by default but will only display on touch screen devices. + // To disable the magnifier set IsMagnifierEnabled = false. MyMapView.InteractionOptions = new MapViewInteractionOptions { IsMagnifierEnabled = true diff --git a/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/readme.md b/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/readme.md index ff2980190e..5a4cd15f04 100644 --- a/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/readme.md +++ b/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/readme.md @@ -15,13 +15,13 @@ Tap and hold on the map to show a magnifier, then drag across the map to move th ## How it works 1. Create a new `MapView`, and add an `Map` to it. -2. Enable the magnifier using `mapView.MagnifierEnabled`. This will set the magnifier to be shown on the `Map` when the user performs a long press gesture. Note: The default value is `false`. +2. Enable and disable the magnifier using `mapView.InteractionOptions.IsMagnifierEnabled`. This will set the magnifier to be shown on the `Map` when the user performs a long press gesture. Note: The default value is `true`. ## Relevant API * Map * MapView -* MapView.MagnifierEnabled +* MapViewInteractionOptions.IsMagnifierEnabled ## Additional information @@ -29,4 +29,4 @@ This sample only works on a device with a touch screen. The magnifier will not a ## Tags -magnify, map, zoom \ No newline at end of file +magnify, map, zoom diff --git a/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/readme.metadata.json b/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/readme.metadata.json index 40d303ed1d..41f6bae0ef 100644 --- a/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/readme.metadata.json +++ b/src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/readme.metadata.json @@ -18,7 +18,7 @@ "relevant_apis": [ "Map", "MapView", - "MapView.MagnifierEnabled" + "MapViewInteractionOptions.IsMagnifierEnabled" ], "snippets": [ "ShowMagnifier.xaml.cs",