Skip to content

Commit b976286

Browse files
committed
Update readme.
1 parent a95d3a1 commit b976286

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

Shared/Samples/Show grid/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
# Show grid
22

3-
Display coordinate system grids including latitude-longitude, MGRS, UTM and USNG on a map view. Also, toggle label visibility and change the color of grid lines and grid labels.
3+
Display and customize coordinate system grids, including Latitude/Longitude, MGRS, UTM, and USNG, on a map view or scene view.
44

55
![Image of Show grid sample](show-grid.png)
66

77
## Use case
88

9-
Grids are often used on printed maps, but can also be helpful on digital maps, to identify locations on a map.
9+
Grids are often used on printed maps, but can also be helpful on digital 2D maps or 3D scenes, to identify locations.
1010

1111
## How to use the sample
1212

13-
Tap the button in the toolbar to open the grid settings view. You can select type of grid from grid types (LatLong, MGRS, UTM and USNG) and modify its properties like grid visibility, grid color, label visibility, label color, label position, label format and label unit.
13+
Use the picker to change the view from 2D or 3D, or tap the button in the toolbar to open the grid settings. You can select the type of grid (LatLong, MGRS, UTM, and USNG) and modify its properties like the visibility and color of the lines, and the position, format, and units of the labels.
1414

1515
## How it works
1616

1717
1. Create an instance of one of the `Grid` types.
1818
2. Grid lines and labels can be styled per grid level with `grid.lineSymbols[0]` and `grid.textSymbols[0]` subscripts on the grid.
19-
3. The label position, format, unit and visibility can be specified with `labelPosition`, `labelFormat`, `labelUnit` and `isVisible` on the `Grid`.
19+
3. The label position, format, unit, and visibility can be specified with `labelPosition`, `labelFormat`, `labelUnit`, and `isVisible` on the `Grid`.
20+
* Note that as of 200.6, MGRS, UTM, and USNG grids in a SceneView only support the `geographic` label position.
2021
4. For the `LatitudeLongitudeGrid` type, you can specify a label format of `decimalDegrees` or `degreesMinutesSeconds`.
21-
5. To set the grid, assign it to the map view using the `grid(_:)` modifier.
22+
5. To set the grid, assign it to the map view or scene view using the `grid(_:)` modifier.
2223

2324
## Relevant API
2425

2526
* Grid
2627
* LatitudeLongitudeGrid
2728
* MapView
2829
* MGRSGrid
30+
* SceneView
2931
* SimpleLineSymbol
3032
* TextSymbol
3133
* USNGGrid

Shared/Samples/Show grid/README.metadata.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"category": "Maps",
3-
"description": "Display coordinate system grids including latitude-longitude, MGRS, UTM and USNG on a map view. Also, toggle label visibility and change the color of grid lines and grid labels.",
2+
"category": "Visualization",
3+
"description": "Display and customize coordinate system grids, including Latitude/Longitude, MGRS, UTM, and USNG, on a map view or scene view.",
44
"ignore": false,
55
"images": [
66
"show-grid.png"
@@ -21,6 +21,7 @@
2121
"LatitudeLongitudeGrid",
2222
"MGRSGrid",
2323
"MapView",
24+
"SceneView",
2425
"SimpleLineSymbol",
2526
"TextSymbol",
2627
"USNGGrid",
@@ -32,6 +33,7 @@
3233
"LatitudeLongitudeGrid",
3334
"MGRSGrid",
3435
"MapView",
36+
"SceneView",
3537
"SimpleLineSymbol",
3638
"TextSymbol",
3739
"USNGGrid",

0 commit comments

Comments
 (0)