Skip to content

Commit

Permalink
Merge pull request #317 from Esri/Ting/RevertChanges
Browse files Browse the repository at this point in the history
[Update] Revert commits on main branch
  • Loading branch information
yo1995 authored Dec 13, 2023
2 parents 8ebfb84 + cbc1f2c commit 05b3a37
Show file tree
Hide file tree
Showing 80 changed files with 31 additions and 421 deletions.
4 changes: 0 additions & 4 deletions Shared/Samples/Add WMS layer/AddWMSLayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,3 @@ struct AddWMSLayerView: View {
MapView(map: map)
}
}

#Preview {
AddWMSLayerView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,3 @@ struct AddClusteringFeatureReductionToAPointFeatureLayerView: View {
}
}
}

#Preview {
NavigationView {
AddClusteringFeatureReductionToAPointFeatureLayerView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,3 @@ struct AddDynamicEntityLayerView: View {
}
}
}

#Preview {
NavigationView {
AddDynamicEntityLayerView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,3 @@ private extension URL {
URL(string: "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer")!
}
}

#Preview {
AddSceneLayerFromServiceView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,3 @@ private extension UtilityNetworkAttributeComparison.Operator {
static var allCases: [UtilityNetworkAttributeComparison.Operator] { [.equal, .notEqual, .greaterThan, .greaterThanEqual, .lessThan, .lessThanEqual, .includesTheValues, .doesNotIncludeTheValues, .includesAny, .doesNotIncludeAny]
}
}

#Preview {
NavigationView {
AnalyzeNetworkWithSubnetworkTraceView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,3 @@ struct ApplyUniqueValueRendererView: View {
MapView(map: map)
}
}

#Preview {
ApplyUniqueValueRendererView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,3 @@ private extension URL {
.init(string: "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer")!
}
}

#Preview {
AugmentRealityToFlyOverSceneView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,3 @@ private extension PortalItem.ID {
/// A portal item of Building L's floors on the Esri Redlands campus.
static var esriBuildingL: Self { Self("f133a698536f44c8884ad81f80b6cfc7")! }
}

#Preview {
BrowseBuildingFloorsView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,3 @@ struct ChangeMapViewBackgroundView: View {
}
}
}

#Preview {
NavigationView {
ChangeMapViewBackgroundView()
}
}
4 changes: 0 additions & 4 deletions Shared/Samples/Change viewpoint/ChangeViewpointView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,3 @@ extension ChangeViewpointView {
}
}
}

#Preview {
ChangeViewpointView()
}
6 changes: 0 additions & 6 deletions Shared/Samples/Clip geometry/ClipGeometryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,3 @@ private extension Envelope {
return builder.toGeometry()
}
}

#Preview {
NavigationView {
ClipGeometryView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,3 @@ class GeometryEditorMenuModel: ObservableObject {
isStarted = true
}
}

#Preview {
NavigationView {
CreateAndEditGeometriesView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,3 @@ private extension UTType {
/// A type that represents a KMZ file.
static let kmz = UTType(filenameExtension: "kmz")!
}

#Preview {
NavigationView {
CreateAndSaveKMLView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,3 @@ private extension CreateBuffersAroundPointsView {
}
}
}

#Preview {
NavigationView {
CreateBuffersAroundPointsView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,3 @@ private extension Geometry {
spatialReference: .webMercator
)
}

#Preview {
NavigationView {
CreateConvexHullAroundGeometriesView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,3 @@ private extension CreateConvexHullAroundPointsView {
}
}
}

#Preview {
NavigationView {
CreateConvexHullAroundPointsView()
}
}
6 changes: 0 additions & 6 deletions Shared/Samples/Create load report/CreateLoadReportView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,3 @@ struct CreateLoadReportView: View {
}
}
}

#Preview {
NavigationView {
CreateLoadReportView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,3 @@ private extension FormatStyle where Self == Date.VerbatimFormatStyle {
)
}
}

#Preview {
NavigationView {
CreateMobileGeodatabaseView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,3 @@ private extension Measurement where UnitType == UnitLength {
/// The maximum radius.
static var rMax: Self { Measurement(value: 2_000, unit: UnitLength.miles) }
}

#Preview {
CreatePlanarAndGeodeticBuffersView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,3 @@ private extension URL {
URL(string: "http://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/LA_County_Points_of_Interest/FeatureServer/0")!
}
}

#Preview {
NavigationView {
CreateSymbolStylesFromWebStylesView()
}
}
6 changes: 0 additions & 6 deletions Shared/Samples/Cut geometry/CutGeometryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,3 @@ private extension Geometry {
)
}
}

#Preview {
NavigationView {
CutGeometryView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,3 @@ extension DensifyAndGeneralizeGeometryView {
}
}
}

#Preview {
NavigationView {
DensifyAndGeneralizeGeometryView()
}
}
4 changes: 0 additions & 4 deletions Shared/Samples/Display annotation/DisplayAnnotationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,3 @@ private extension URL {
URL(string: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/RiversAnnotation/FeatureServer/0")!
}
}

#Preview {
DisplayAnnotationView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,3 @@ struct DisplayContentOfUtilityNetworkContainerView: View {
.frame(idealWidth: 320, idealHeight: 428)
}
}

#Preview {
NavigationView {
DisplayContentOfUtilityNetworkContainerView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,3 @@ private extension PortalItem.ID {
/// The portal item ID of the Geology of United States map.
static var usGeology: Self { Self("92ad152b9da94dee89b9e387dfe21acd")! }
}

#Preview {
NavigationView {
DisplayMapFromPortalItemView()
}
}
4 changes: 0 additions & 4 deletions Shared/Samples/Display map/DisplayMapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,3 @@ struct DisplayMapView: View {
MapView(map: map)
}
}

#Preview {
DisplayMapView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,3 @@ struct DisplayOverviewMapView: View {
private extension PortalItem.ID {
static var northAmericaTouristAttractions: Self { Self("97ceed5cfc984b4399e23888f6252856")! }
}

#Preview {
DisplayOverviewMapView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,3 @@ struct DisplayPointsUsingClusteringFeatureReductionView: View {
}
}
}

#Preview {
NavigationView {
DisplayPointsUsingClusteringFeatureReductionView()
}
}
4 changes: 0 additions & 4 deletions Shared/Samples/Display scene/DisplaySceneView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,3 @@ struct DisplaySceneView: View {
SceneView(scene: scene)
}
}

#Preview {
DisplaySceneView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,3 @@ private extension PortalItem.ID {
.init("c6f90b19164c4283884361005faea852")!
}
}

#Preview {
DisplayWebSceneFromPortalItemView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,3 @@ private extension Viewpoint {
return Viewpoint(boundingGeometry: zoomEnvelope)
}
}

#Preview {
NavigationView {
DownloadPreplannedMapAreaView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,19 @@ private extension DownloadVectorTilesToLocalCacheView {
}
}

private extension MapViewProxy {
/// Creates an envelope from the given rectangle.
/// - Parameter viewRect: The rectangle to create an envelope of.
/// - Returns: An envelope of the given rectangle.
func envelope(fromViewRect viewRect: CGRect) -> Envelope? {
guard let min = location(fromScreenPoint: CGPoint(x: viewRect.minX, y: viewRect.minY)),
let max = location(fromScreenPoint: CGPoint(x: viewRect.maxX, y: viewRect.maxY)) else {
return nil
}
return Envelope(min: min, max: max)
}
}

private extension Envelope {
/// Expands the envelope by a given factor.
func expanded(by factor: Double) -> Envelope {
Expand All @@ -298,9 +311,3 @@ private extension Envelope {
return builder.toGeometry()
}
}

#Preview {
NavigationView {
DownloadVectorTilesToLocalCacheView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,3 @@ private extension Viewpoint {
)
)
}

#Preview {
NavigationView {
FilterFeaturesInSceneView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,3 @@ private extension URL {
URL(string: "https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer")!
}
}

#Preview {
FindAddressWithReverseGeocodeView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,3 @@ private extension URL {
URL(string: "https://static.arcgis.com/images/Symbols/SafetyHealth/esriCrimeMarker_56_Gradient.png")!
}
}

#Preview {
NavigationView {
FindClosestFacilityFromPointView()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,3 @@ private extension URL {
URL(string: "https://static.arcgis.com/images/Symbols/SafetyHealth/Hospital.png")!
}
}

#Preview {
FindClosestFacilityToMultiplePointsView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,3 @@ private extension PortalItem.ID {
/// The ID used in the "US States Generalized" portal item.
static var usStatesGeneralized: Self { Self("8c2d6d7df8fa4142b0a1211c8dd66903")! }
}

#Preview {
FindNearestVertexView()
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,3 @@ struct FindRouteAroundBarriersView: View {
.errorAlert(presentingError: $error)
}
}

#Preview {
NavigationView {
FindRouteAroundBarriersView()
}
}
6 changes: 0 additions & 6 deletions Shared/Samples/Find route/FindRouteView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,3 @@ private extension URL {
URL(string: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route")!
}
}

#Preview {
NavigationView {
FindRouteView()
}
}
Loading

0 comments on commit 05b3a37

Please sign in to comment.