Skip to content

Commit 76d6dfa

Browse files
committed
Apply suggestions from Caleb, add documentation comments.
1 parent 45f0b80 commit 76d6dfa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Shared/Samples/Add web tiled layer/AddWebTiledLayerView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ArcGIS
1616
import SwiftUI
1717

1818
struct AddWebTiledLayerView: View {
19-
// A map with web tiled layer.
19+
/// A map with web tiled layer.
2020
@State private var map: Map = {
2121
// Build the web tiled layer from ArcGIS Living Atlas of the World tile service url.
2222
let webTiledLayer = WebTiledLayer(urlTemplate: .worldTileServiceStringURL)
@@ -37,10 +37,12 @@ struct AddWebTiledLayerView: View {
3737
}
3838

3939
private extension String {
40+
/// The attribution string for the ArcGIS Living Atlas of the World.
4041
static let attributionString = """
4142
Map tiles by <a href="https://livingatlas.arcgis.com">ArcGIS Living Atlas of the World</a>, under <a href="https://www.esri.com/en-us/legal/terms/full-master-agreement">Esri Master License Agreement</a>. Data by Esri, Garmin, GEBCO, NOAA NGDC, and other contributors.
4243
"""
43-
static var worldTileServiceStringURL = "https://services.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{level}/{row}/{col}.jpg"
44+
/// The web tile service url from ArcGIS Living Atlas of the World.
45+
static let worldTileServiceStringURL = "https://services.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{level}/{row}/{col}.jpg"
4446
}
4547

4648
#Preview {

0 commit comments

Comments
 (0)