Conversation
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Outdated
Show resolved
Hide resolved
Co-authored-by: David Feinzimer <dfeinzimer@esri.com>
|
I added tests |
|
ok, added tutorial now as well |
mhdostal
left a comment
There was a problem hiding this comment.
I've tested this with the Feature Forms Micro App. It looks and works great! I noticed a couple of issues, which I've commented on. I'll look at the code in another go-round.
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Outdated
Show resolved
Hide resolved
…TemplatePicker.swift Co-authored-by: Mark Dostal <mdostal@esri.com>
I'd rather have features that are under 50x50 draw correctly in their correct size. To me that's important. If there is a way to do that and let the larger features grow up to the dynamic font size, that would be ideal. But I couldn't find a way to do that unfortunately. |
|
The tool for that job is |
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Outdated
Show resolved
Hide resolved
32af9db to
3ffb37d
Compare
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Show resolved
Hide resolved
...s/ArcGISToolkit/Documentation.docc/Resources/FeatureTemplatePicker/FeatureTemplatePicker.png
Show resolved
Hide resolved
Sources/ArcGISToolkit/Documentation.docc/Tutorials/FeatureTemplatePickerTutorial.tutorial
Outdated
Show resolved
Hide resolved
…latePickerTutorial.tutorial Co-authored-by: David Feinzimer <dfeinzimer@esri.com>
…arcgis-maps-sdk-swift-toolkit into ryan/featureTemplatePicker
dfeinzimer
left a comment
There was a problem hiding this comment.
Just 2 last comments and I think that'll be it.
| ) | ||
| } |
There was a problem hiding this comment.
Should the templates be sorted alphabetically by name?
| ) | |
| } | |
| ) | |
| infos.sort { $0.template.name < $1.template.name } | |
| } |
There was a problem hiding this comment.
Perhaps the sections too?
There was a problem hiding this comment.
I'm not sure. I could see alphabetizing them. Currently it is in the order of layers and then the templates that the layers report. So I'm not sure what is desirable. @mhdostal do you recall what the obj-c based version did?
There was a problem hiding this comment.
I'm not sure. I could see alphabetizing them. Currently it is in the order of layers and then the templates that the layers report. So I'm not sure what is desirable. @mhdostal do you recall what the obj-c based version did?
There was no sorting in the obj-c template picker.
...s/ArcGISToolkit/Documentation.docc/Resources/FeatureTemplatePicker/FeatureTemplatePicker.png
Show resolved
Hide resolved
|
One enhancement request would be to only show the templates that apply to a specific geometry type. In the Swft FF test app, we are only allowing creating point symbols, so limiting the feature templates to those supporting point geometries would be nice. |
Cool. Did the original template picker in the other toolkit do this as well? |
No, but it's something that I'm doing for the Swift Feature Form test app; we're not concerned with the full geometry-editing experience yet, so we're only supporting adding point features. |
dfeinzimer
left a comment
There was a problem hiding this comment.
Updated the image. PR looks good 👍
Sources/ArcGISToolkit/Components/FeatureTemplatePicker/FeatureTemplatePicker.swift
Outdated
Show resolved
Hide resolved
…TemplatePicker.swift
5f2f894 to
02ebdcf
Compare
02ebdcf to
5f2f894
Compare
We have one of these in the objc toolkit.
This is an initial PR. I still need to add tests and a tutorial. Also the map that I use in the example is not a good map for this. I need to find a better map.