Skip to content

Feature template picker#993

Open
rolson wants to merge 32 commits into
v.nextfrom
ryan/featureTemplatePicker
Open

Feature template picker#993
rolson wants to merge 32 commits into
v.nextfrom
ryan/featureTemplatePicker

Conversation

@rolson

@rolson rolson commented Dec 28, 2024

Copy link
Copy Markdown
Collaborator

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.

image

Comment thread Examples/Examples/FeatureTemplatePickerExampleView.swift Outdated
@rolson

rolson commented Dec 31, 2024

Copy link
Copy Markdown
Collaborator Author

I added tests

@rolson rolson requested a review from dfeinzimer December 31, 2024 18:13
@rolson

rolson commented Dec 31, 2024

Copy link
Copy Markdown
Collaborator Author

ok, added tutorial now as well

@mhdostal mhdostal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

rolson and others added 2 commits January 2, 2025 11:10
…TemplatePicker.swift

Co-authored-by: Mark Dostal <mdostal@esri.com>
@rolson

rolson commented Jan 3, 2025

Copy link
Copy Markdown
Collaborator Author

The only issue I see with that is when Dynamic Type is used the text will increase in size but not the icons. That would be "nice-to-have", but it's not a dealbreaker for me.

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.

@philium

philium commented Jan 3, 2025

Copy link
Copy Markdown
Contributor

The tool for that job is ScaledMetric.

@rolson rolson force-pushed the ryan/featureTemplatePicker branch from 32af9db to 3ffb37d Compare January 3, 2025 20:46
Comment thread Tests/ArcGISToolkitTests/FeatureTemplatePickerTests.swift
@rolson rolson requested review from dfeinzimer and mhdostal January 3, 2025 21:58

@dfeinzimer dfeinzimer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 2 last comments and I think that'll be it.

Comment on lines +262 to +263
)
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the templates be sorted alphabetically by name?

Suggested change
)
}
)
infos.sort { $0.template.name < $1.template.name }
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps the sections too?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mhdostal

mhdostal commented Jan 6, 2025

Copy link
Copy Markdown
Member

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.

mhdostal
mhdostal previously approved these changes Jan 6, 2025
@rolson

rolson commented Jan 7, 2025

Copy link
Copy Markdown
Collaborator Author

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?

@mhdostal

mhdostal commented Jan 7, 2025

Copy link
Copy Markdown
Member

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
dfeinzimer previously approved these changes Jan 7, 2025

@dfeinzimer dfeinzimer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the image. PR looks good 👍

mhdostal
mhdostal previously approved these changes Jan 15, 2025
dfeinzimer
dfeinzimer previously approved these changes Mar 10, 2025
@mhdostal mhdostal dismissed stale reviews from dfeinzimer and themself via 02ebdcf May 22, 2025 21:49
@mhdostal mhdostal force-pushed the ryan/featureTemplatePicker branch from 5f2f894 to 02ebdcf Compare May 22, 2025 21:49
@rolson rolson force-pushed the ryan/featureTemplatePicker branch from 02ebdcf to 5f2f894 Compare May 28, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants