Skip to content

Commit ad2e9c5

Browse files
[Automated] Sync v.next with main (#1478)
Co-authored-by: Hamish Duff <[email protected]>
1 parent f176f8c commit ad2e9c5

File tree

9 files changed

+18
-15
lines changed

9 files changed

+18
-15
lines changed

src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ private void Initialize()
3434
Map myMap = new Map(BasemapStyle.ArcGISTopographic);
3535
myMap.InitialViewpoint = new Viewpoint(34.056295, -117.195800, 50000);
3636

37-
// Enable magnifier.
37+
// The magnifier is enabled by default but will only display on touch screen devices.
38+
// To disable the magnifier set IsMagnifierEnabled = false.
3839
MyMapView.InteractionOptions = new MapViewInteractionOptions
3940
{
4041
IsMagnifierEnabled = true

src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ Tap and hold on the map to show a magnifier, then drag across the map to move th
1515
## How it works
1616

1717
1. Create a new `MapView`, and add an `Map` to it.
18-
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`.
18+
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`.
1919

2020
## Relevant API
2121

2222
* Map
2323
* MapView
24-
* MapView.MagnifierEnabled
24+
* MapViewInteractionOptions.IsMagnifierEnabled
2525

2626
## Additional information
2727

2828
This sample only works on a device with a touch screen. The magnifier will not appear via a mouse click.
2929

3030
## Tags
3131

32-
magnify, map, zoom
32+
magnify, map, zoom

src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"relevant_apis": [
1919
"Map",
2020
"MapView",
21-
"MapView.MagnifierEnabled"
21+
"MapViewInteractionOptions.IsMagnifierEnabled"
2222
],
2323
"snippets": [
2424
"ShowMagnifier.xaml.cs",

src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ private void Initialize()
3333
Map myMap = new Map(BasemapStyle.ArcGISTopographic);
3434
myMap.InitialViewpoint = new Viewpoint(34.056295, -117.195800, 50000);
3535

36-
// Enable magnifier.
36+
// The magnifier is enabled by default but will only display on touch screen devices.
37+
// To disable the magnifier set IsMagnifierEnabled = false.
3738
MyMapView.InteractionOptions = new MapViewInteractionOptions()
3839
{
3940
IsMagnifierEnabled = true

src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ Tap and hold on the map to show a magnifier, then drag across the map to move th
1515
## How it works
1616

1717
1. Create a new `MapView`, and add an `Map` to it.
18-
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`.
18+
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`.
1919

2020
## Relevant API
2121

2222
* Map
2323
* MapView
24-
* MapView.MagnifierEnabled
24+
* MapViewInteractionOptions.IsMagnifierEnabled
2525

2626
## Additional information
2727

2828
This sample only works on a device with a touch screen. The magnifier will not appear via a mouse click.
2929

3030
## Tags
3131

32-
magnify, map, zoom
32+
magnify, map, zoom

src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"relevant_apis": [
1919
"Map",
2020
"MapView",
21-
"MapView.MagnifierEnabled"
21+
"MapViewInteractionOptions.IsMagnifierEnabled"
2222
],
2323
"snippets": [
2424
"ShowMagnifier.xaml.cs",

src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/ShowMagnifier.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ private void Initialize()
3333
Map myMap = new Map(BasemapStyle.ArcGISTopographic);
3434
myMap.InitialViewpoint = new Viewpoint(34.056295, -117.195800, 50000);
3535

36-
// Enable magnifier.
36+
// The magnifier is enabled by default but will only display on touch screen devices.
37+
// To disable the magnifier set IsMagnifierEnabled = false.
3738
MyMapView.InteractionOptions = new MapViewInteractionOptions
3839
{
3940
IsMagnifierEnabled = true

src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ Tap and hold on the map to show a magnifier, then drag across the map to move th
1515
## How it works
1616

1717
1. Create a new `MapView`, and add an `Map` to it.
18-
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`.
18+
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`.
1919

2020
## Relevant API
2121

2222
* Map
2323
* MapView
24-
* MapView.MagnifierEnabled
24+
* MapViewInteractionOptions.IsMagnifierEnabled
2525

2626
## Additional information
2727

2828
This sample only works on a device with a touch screen. The magnifier will not appear via a mouse click.
2929

3030
## Tags
3131

32-
magnify, map, zoom
32+
magnify, map, zoom

src/WinUI/ArcGIS.WinUI.Viewer/Samples/MapView/ShowMagnifier/readme.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"relevant_apis": [
1919
"Map",
2020
"MapView",
21-
"MapView.MagnifierEnabled"
21+
"MapViewInteractionOptions.IsMagnifierEnabled"
2222
],
2323
"snippets": [
2424
"ShowMagnifier.xaml.cs",

0 commit comments

Comments
 (0)