-
Notifications
You must be signed in to change notification settings - Fork 519
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
Geometry Editor #1251
Merged
Merged
Geometry Editor #1251
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
78e2d20
samplegen
williambohrmann3 85b035b
WPF implementation
williambohrmann3 84eb929
WinUI implementation
williambohrmann3 ecbb83d
MAUI implementation
williambohrmann3 9459aa1
samplesync
williambohrmann3 0996442
MAUI - remove extra border
williambohrmann3 314aac6
MAUI XAML styled
williambohrmann3 8144121
Remove SketchOnMap
williambohrmann3 7e05796
remove SketchOnMap from viewer readme's
williambohrmann3 08d7214
Feature sample
williambohrmann3 54140e5
.csproj remove SketchOnMap resources
williambohrmann3 82ebfe6
package reference versions
williambohrmann3 2c30b72
feedback implemented - MAUI
williambohrmann3 2900053
feedback implemented - WPF
williambohrmann3 f7811ea
feedback implemented - WinUI
williambohrmann3 78fade2
accent character removal
williambohrmann3 47c6999
NETFramework package references
williambohrmann3 789f1aa
some final touches
williambohrmann3 129bdb6
readme Inis Meain
williambohrmann3 4ee4dd4
Inis Meain MAUI char fix
williambohrmann3 3a434c9
png -> jpg
williambohrmann3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
...Maui.Samples/Samples/GraphicsOverlay/CreateAndEditGeometries/CreateAndEditGeometries.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage x:Class="ArcGIS.Samples.CreateAndEditGeometries.CreateAndEditGeometries" | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:converters="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" | ||
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui"> | ||
<ContentPage.Resources> | ||
<Style x:Key="IconStyle" TargetType="Button"> | ||
<Style.Setters> | ||
<Setter Property="FontFamily" Value="calcite-ui-icons-24" /> | ||
<Setter Property="FontSize" Value="30" /> | ||
</Style.Setters> | ||
</Style> | ||
<converters:InvertedBoolConverter x:Key="InvertedBoolConverter" /> | ||
</ContentPage.Resources> | ||
<Grid> | ||
<esriUI:MapView x:Name="MyMapView" GeoViewTapped="MyMapView_GeoViewTapped" /> | ||
<Grid Margin="5,5,5,5" | ||
ColumnDefinitions="auto, auto" | ||
ColumnSpacing="5" | ||
HorizontalOptions="End" | ||
RowDefinitions="auto, auto, auto, auto, auto, auto" | ||
RowSpacing="5" | ||
VerticalOptions="Start"> | ||
<Button x:Name="PointButton" | ||
Grid.Row="0" | ||
Clicked="PointButton_Click" | ||
Style="{StaticResource IconStyle}" | ||
Text="" /> | ||
<Button x:Name="MultipointButton" | ||
Grid.Row="0" | ||
Grid.Column="1" | ||
Clicked="MultipointButton_Click" | ||
FontSize="15" | ||
Style="{StaticResource IconStyle}" | ||
Text="" /> | ||
<Button x:Name="PolylineButton" | ||
Grid.Row="1" | ||
Clicked="PolylineButton_Click" | ||
Style="{StaticResource IconStyle}" | ||
Text="" /> | ||
<Button x:Name="PolygonButton" | ||
Grid.Row="1" | ||
Grid.Column="1" | ||
Clicked="PolygonButton_Click" | ||
Style="{StaticResource IconStyle}" | ||
Text="" /> | ||
<Picker x:Name="ToolPicker" | ||
Grid.Row="2" | ||
Grid.ColumnSpan="2" | ||
SelectedIndexChanged="ToolPicker_SelectedIndexChanged" | ||
WidthRequest="150" /> | ||
<Button Grid.Row="3" | ||
Clicked="UndoButton_Click" | ||
IsEnabled="{Binding GeometryEditor.CanUndo, Source={x:Reference MyMapView}}" | ||
Style="{StaticResource IconStyle}" | ||
Text="" /> | ||
<Button Grid.Row="3" | ||
Grid.Column="1" | ||
Clicked="RedoButton_Click" | ||
IsEnabled="{Binding GeometryEditor.CanRedo, Source={x:Reference MyMapView}}" | ||
Style="{StaticResource IconStyle}" | ||
Text="" /> | ||
<Button Grid.Row="4" | ||
Clicked="DeleteSelectedButton_Click" | ||
IsEnabled="{Binding GeometryEditor.SelectedElement.CanDelete, Source={x:Reference MyMapView}, FallbackValue=False}" | ||
Style="{StaticResource IconStyle}" | ||
Text="" /> | ||
<Button x:Name="SaveButton" | ||
Grid.Row="4" | ||
Grid.Column="1" | ||
Clicked="SaveButton_Click" | ||
IsEnabled="{Binding GeometryEditor.CanUndo, Source={x:Reference MyMapView}}" | ||
Style="{StaticResource IconStyle}" | ||
Text="" /> | ||
<Button Grid.Row="5" | ||
Clicked="DiscardButton_Click" | ||
IsEnabled="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}}" | ||
Style="{StaticResource IconStyle}" | ||
Text="" /> | ||
<Button x:Name="DeleteAllButton" | ||
Grid.Row="5" | ||
Grid.Column="1" | ||
Clicked="DeleteAllButton_Click" | ||
IsEnabled="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, Converter={StaticResource InvertedBoolConverter}}" | ||
Style="{StaticResource IconStyle}" | ||
Text="" /> | ||
</Grid> | ||
</Grid> | ||
</ContentPage> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
UI doesn't fit on the screen on mobile in horizontal orientation.