Skip to content

Commit

Permalink
Update Show magnifier sample readme to correctly reflect API functi…
Browse files Browse the repository at this point in the history
…onality (#1475)
  • Loading branch information
duffh authored Jul 15, 2024
1 parent 97a6986 commit 39005ea
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/MAUI/Maui.Samples/Samples/MapView/ShowMagnifier/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ 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

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

## Tags

magnify, map, zoom
magnify, map, zoom
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"relevant_apis": [
"Map",
"MapView",
"MapView.MagnifierEnabled"
"MapViewInteractionOptions.IsMagnifierEnabled"
],
"snippets": [
"ShowMagnifier.xaml.cs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/WPF/WPF.Viewer/Samples/MapView/ShowMagnifier/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ 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

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

## Tags

magnify, map, zoom
magnify, map, zoom
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"relevant_apis": [
"Map",
"MapView",
"MapView.MagnifierEnabled"
"MapViewInteractionOptions.IsMagnifierEnabled"
],
"snippets": [
"ShowMagnifier.xaml.cs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ 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

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

## Tags

magnify, map, zoom
magnify, map, zoom
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"relevant_apis": [
"Map",
"MapView",
"MapView.MagnifierEnabled"
"MapViewInteractionOptions.IsMagnifierEnabled"
],
"snippets": [
"ShowMagnifier.xaml.cs",
Expand Down

0 comments on commit 39005ea

Please sign in to comment.