Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Edit features with feature-linked annotation implementation #928

Merged
merged 75 commits into from
Aug 25, 2020
Merged
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
1bbc6e3
Added foundation files
vquach2404 Jul 28, 2020
b140492
Added loudoun_anno geodatabase
vquach2404 Jul 28, 2020
3f27b13
Added all functions
vquach2404 Jul 30, 2020
1cc0da1
Updated view controller class
vquach2404 Jul 31, 2020
5f7979c
Fixed edit features alert
vquach2404 Aug 4, 2020
25daa78
Fixed text editing
vquach2404 Aug 4, 2020
c5abfcf
Moved geodatabase reference
vquach2404 Aug 4, 2020
63eddb2
Updated move point process
vquach2404 Aug 4, 2020
f9c430d
Added confirmation to move polyline process
vquach2404 Aug 4, 2020
6595fad
Updated comments
vquach2404 Aug 5, 2020
410084d
Guarded values
vquach2404 Aug 5, 2020
d95a628
Updated readme and metadata
vquach2404 Aug 5, 2020
b622150
Updated image, readme, metadata
vquach2404 Aug 5, 2020
150c59f
Merge branch 'v.next' into Viv/EditFeaturesWFeatureLinkedAnnotation_v…
vquach2404 Aug 5, 2020
ebae001
Update arcgis-ios-sdk-samples/Edit data/Edit features with feature-li…
vquach2404 Aug 5, 2020
ec28ae4
Update arcgis-ios-sdk-samples/Edit data/Edit features with feature-li…
vquach2404 Aug 5, 2020
e17badd
Update arcgis-ios-sdk-samples/Edit data/Edit features with feature-li…
vquach2404 Aug 5, 2020
bd9df50
Update arcgis-ios-sdk-samples/Edit data/Edit features with feature-li…
vquach2404 Aug 5, 2020
75c22ce
Updated readme
vquach2404 Aug 5, 2020
1477a26
Addressed suggestions
vquach2404 Aug 5, 2020
7d32ff9
Moved guard statement
vquach2404 Aug 5, 2020
844abee
Updated identify layers function
vquach2404 Aug 6, 2020
628651d
Update arcgis-ios-sdk-samples/Edit data/Edit features with feature-li…
vquach2404 Aug 6, 2020
1bea262
Update arcgis-ios-sdk-samples/Edit data/Edit features with feature-li…
vquach2404 Aug 6, 2020
db6599e
Update arcgis-ios-sdk-samples/Edit data/Edit features with feature-li…
vquach2404 Aug 6, 2020
a7f6637
Updated wording in readme
vquach2404 Aug 7, 2020
a6abbbc
Moved mapView touch delegate
vquach2404 Aug 7, 2020
3d90888
Removed extra period
vquach2404 Aug 7, 2020
102f493
Array method changed
vquach2404 Aug 7, 2020
0a98c0c
Removed extra self
vquach2404 Aug 7, 2020
5616824
Added extra space
vquach2404 Aug 7, 2020
ced713b
Used contains(where:)
vquach2404 Aug 7, 2020
ee87d0a
Removed extra self
vquach2404 Aug 7, 2020
50b3f0d
Removed extra self
vquach2404 Aug 7, 2020
047b9b6
Removed extra self
vquach2404 Aug 7, 2020
b769a2c
Moved geodatabase and used compact map function
vquach2404 Aug 7, 2020
687a310
Edited clear selection
vquach2404 Aug 7, 2020
f44e3cb
Fixed moving polyline issue
vquach2404 Aug 10, 2020
7d8adda
Renamed movePolylineVertex
vquach2404 Aug 11, 2020
adca625
Fixed map view top constraint
vquach2404 Aug 11, 2020
28ed1b8
Changed geoview to an extension
vquach2404 Aug 11, 2020
8acbd7e
Removed selectedFeatureIsPolyline
vquach2404 Aug 11, 2020
626b004
Renamed selecteFeature function
vquach2404 Aug 11, 2020
d6df63f
Renamed movePoint
vquach2404 Aug 11, 2020
b1c24f4
Reworded alerts
vquach2404 Aug 11, 2020
525fb35
Strongly captured completion handlers
vquach2404 Aug 11, 2020
9d039ab
Updated function name
vquach2404 Aug 11, 2020
6ec649c
Used configuration handlers for text fields
vquach2404 Aug 11, 2020
18455f7
Updated readme and stored cancellable
vquach2404 Aug 11, 2020
a677b6e
Added text field observers
vquach2404 Aug 11, 2020
c83bfcb
Update arcgis-ios-sdk-samples/Edit data/Edit features with feature-li…
vquach2404 Aug 12, 2020
e875a4f
Removed extra self
vquach2404 Aug 12, 2020
3bb2e94
Removed extra space
vquach2404 Aug 12, 2020
bab6b69
Changed forEach to for loop
vquach2404 Aug 13, 2020
8ccc75f
Merge branch 'v.next' into Viv/EditFeaturesWFeatureLinkedAnnotation_v…
vquach2404 Aug 13, 2020
c053871
Updated PortalItems
vquach2404 Aug 17, 2020
da20a90
Checked out geodatabase
vquach2404 Aug 17, 2020
869f84d
Updated readme
vquach2404 Aug 18, 2020
57870a4
Changed guard to if else
vquach2404 Aug 18, 2020
3c06c10
Updated text fields
vquach2404 Aug 18, 2020
72ff77b
Renamed identifyLayers
vquach2404 Aug 18, 2020
c76ec79
Updated comments
vquach2404 Aug 18, 2020
638ebd9
Updated geodatabase property
vquach2404 Aug 18, 2020
15405a5
Updated shorthand in load function
vquach2404 Aug 18, 2020
a9ac96f
Moved geodatabase
vquach2404 Aug 19, 2020
1823f30
Fix geodatabase directory issue.
yo1995 Aug 20, 2020
686e98c
Removed extra return
vquach2404 Aug 20, 2020
326e604
Update arcgis-ios-sdk-samples/Edit data/Edit features with feature-li…
vquach2404 Aug 20, 2020
cb74b98
Removed observer in cancel
vquach2404 Aug 20, 2020
7683d24
Renamed selectFeature
vquach2404 Aug 20, 2020
67e3fd2
Moved textFieldObserver
vquach2404 Aug 20, 2020
7aa83d5
Polish readme
vquach2404 Aug 24, 2020
b94fcc6
Added line breaks
vquach2404 Aug 24, 2020
8a9fa2f
Changed spacing
vquach2404 Aug 24, 2020
ae816e6
Updated load geodatabase
vquach2404 Aug 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reworded alerts
  • Loading branch information
vquach2404 committed Aug 11, 2020
commit b1c24f4d966c6d610583803c7fc47fa84842d33d
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ class EditFeaturesWithFeatureLinkedAnnotationViewController: UIViewController {
// Add a "Cancel" option and clear the selection if cancel is selected.
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel) { _ in
self.clearSelection()
self.selectedFeature = nil
})
// Add a "Done" option to complete the editing process and close the alert.
alert.addAction(UIAlertAction(title: "Done", style: .default) { _ in
Expand All @@ -126,13 +125,12 @@ class EditFeaturesWithFeatureLinkedAnnotationViewController: UIViewController {
func moveSelectedFeature(to: AGSPoint) {
guard let selectedFeature = selectedFeature else { return }
// Create an alert to confirm that the user wants to update the geometry.
let alert = UIAlertController(title: "Confirm update", message: "Would you like to update the geometry?", preferredStyle: .alert)
let alert = UIAlertController(title: "Confirm update", message: "Are you sure you want to move the selected feature?", preferredStyle: .alert)
// Clear the selection and selected feature if "No" is selected.
alert.addAction(UIAlertAction(title: "No", style: .cancel) { _ in
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel) { _ in
self.clearSelection()
self.selectedFeature = nil
})
alert.addAction(UIAlertAction(title: "Yes", style: .default) { _ in
alert.addAction(UIAlertAction(title: "Move", style: .default) { _ in
// Set the selected feature's geometry to the new map point.
selectedFeature.geometry = to
// Update the selected feature's feature table.
Expand All @@ -142,7 +140,6 @@ class EditFeaturesWithFeatureLinkedAnnotationViewController: UIViewController {
} else {
// Clear selection of polyline.
self.clearSelection()
self.selectedFeature = nil
}
}
})
Expand All @@ -154,13 +151,12 @@ class EditFeaturesWithFeatureLinkedAnnotationViewController: UIViewController {
func moveLastVertexOfSelectedFeature(to: AGSPoint) {
guard let selectedFeature = self.selectedFeature else { return }
// Create an alert to confirm that the user wants to update the geometry.
let alert = UIAlertController(title: "Confirm update", message: "Would you like to update the geometry?", preferredStyle: .alert)
let alert = UIAlertController(title: "Confirm update", message: "Are you sure you want to move the selected feature?", preferredStyle: .alert)
// Clear the selection and selected feature if "No" is selected.
alert.addAction(UIAlertAction(title: "No", style: .cancel) { _ in
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel) { _ in
self.clearSelection()
self.selectedFeature = nil
})
alert.addAction(UIAlertAction(title: "Yes", style: .default) { _ in
alert.addAction(UIAlertAction(title: "Move", style: .default) { _ in
// Get the selected feature's geometry as a polyline nearest to the map point.
guard let polyline = selectedFeature.geometry as? AGSPolyline,
let selectedMapPoint = AGSGeometryEngine.projectGeometry(to, to: polyline.spatialReference!) as? AGSPoint,
Expand All @@ -179,7 +175,6 @@ class EditFeaturesWithFeatureLinkedAnnotationViewController: UIViewController {
} else {
// Clear selection of polyline.
self.clearSelection()
self.selectedFeature = nil
}
}
})
Expand Down