-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New sample: Define clustering feature reduction #1316
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is a great addition to our samples offering. Left a few minor nitpicks.
src/MAUI/Maui.Samples/Samples/Layers/CustomFeatureClustering/CustomFeatureClustering.xaml.cs
Outdated
Show resolved
Hide resolved
src/MAUI/Maui.Samples/Samples/Layers/CustomFeatureClustering/CustomFeatureClustering.xaml.cs
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,42 @@ | |||
# Custom feature clustering | |||
|
|||
Add client side custom feature reduction to a web map that does not have an existing defined feature reduction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little bit confused by this wording, what is meant by "existing defined"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was tricky to word initially, I'm essentially trying to say that this sample demonstrates how to add custom feature reduction in the application when it is not already defined on a web map.
So in this case "an existing defined feature reduction" is a feature reduction which exists and has been defined with some parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
understood, thanks for clarifying
src/MAUI/Maui.Samples/Samples/Layers/CustomFeatureClustering/readme.md
Outdated
Show resolved
Hide resolved
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui"> | ||
<Grid ColumnDefinitions="*, Auto" RowDefinitions="Auto, *"> | ||
<esriUI:MapView x:Name="MyMapView" Style="{DynamicResource EsriSampleGeoView}" /> | ||
<Border Style="{DynamicResource EsriSampleControlPanel}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Control panel is rendering 90% off screen for me on iPhone XS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll run this on iOS shortly to see if I can find a solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should've added - this is an issue when rotating device orientation to landscape.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested it. As it works and displays ok in portrait I think it's ok for now as I don't think the fix is a small piece of effort.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for addressing my nitpicks, LGTM.
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui"> | ||
<Grid ColumnDefinitions="*, Auto" RowDefinitions="Auto, *"> | ||
<esriUI:MapView x:Name="MyMapView" Style="{DynamicResource EsriSampleGeoView}" /> | ||
<Border Style="{DynamicResource EsriSampleControlPanel}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should've added - this is an issue when rotating device orientation to landscape.
@@ -0,0 +1,42 @@ | |||
# Custom feature clustering | |||
|
|||
Add client side custom feature reduction to a web map that does not have an existing defined feature reduction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
understood, thanks for clarifying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added few suggestions @duffh.
I also have feedback on sample name. I was wondering if we can name sample as DefineClusteringFeatureReduction
instead of using word Custom
. Happy to brainstorm for a better name, but word custom sounds like users can use something that's not esri defined.
src/MAUI/Maui.Samples/Samples/Layers/CustomFeatureClustering/CustomFeatureClustering.xaml.cs
Outdated
Show resolved
Hide resolved
src/MAUI/Maui.Samples/Samples/Layers/CustomFeatureClustering/readme.md
Outdated
Show resolved
Hide resolved
src/MAUI/Maui.Samples/Samples/Layers/CustomFeatureClustering/readme.md
Outdated
Show resolved
Hide resolved
src/MAUI/Maui.Samples/Samples/Layers/CustomFeatureClustering/readme.md
Outdated
Show resolved
Hide resolved
src/MAUI/Maui.Samples/Samples/Layers/CustomFeatureClustering/readme.md
Outdated
Show resolved
Hide resolved
src/WinUI/ArcGIS.WinUI.Viewer/Samples/Layers/CustomFeatureClustering/readme.metadata.json
Outdated
Show resolved
Hide resolved
src/MAUI/Maui.Samples/Samples/Layers/CustomFeatureClustering/readme.metadata.json
Outdated
Show resolved
Hide resolved
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:esriTK="clr-namespace:Esri.ArcGISRuntime.Toolkit.Maui;assembly=Esri.ArcGISRuntime.Toolkit.Maui" | ||
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui"> | ||
<Grid ColumnDefinitions="*, Auto" RowDefinitions="Auto, *"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use the DynamicResource called EsriSampleContainer for this Grid? That will fix the landscape orientation issue once #1317 is completed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor update in sample description, otherwise looks good
Description
Implemented new sample
Custom feature clustering
.Type of change
Platforms tested on
Checklist