|
POST
|
await feature.LoadAsync() https://community.esri.com/thread/236680-get-attributes-from-featurelayergetselectedfeaturesasync By design all attributes are not returned when a ServiceLayer is queried in order to reduce the data coming across the wire
... View more
03-13-2020
08:37 AM
|
1
|
1
|
1612
|
|
POST
|
Something along these lines. I always forget what the correct SpatialRelationship is should be either Within or Contains private async Task<Feature> Query(Map map, MapPoint mapPoint)
{
FeatureLayer featureLayer = map.OperationalLayers.OfType<FeatureLayer>().First(fl => fl.Name == "MyLayerName");
var parameters = new QueryParameters {Geometry = mapPoint, SpatialRelationship = SpatialRelationship.Within};
var results = await featureLayer.FeatureTable.QueryFeaturesAsync(parameters);
return results.First();
}
... View more
03-09-2020
12:12 PM
|
2
|
4
|
1612
|
|
POST
|
ArcGIS Pro is an esri product, the arcgis-pro-sdk is for writing applications to customize ArcGIS Pro. arcgis-runtime-sdk is for writing stand alone apps to run on Windows, Android, and iOS. The provide APIs to write native apps on those platforms (Windows both WPF and UWP). Also an API that can be used with Xamarin for cross platform development
... View more
03-09-2020
08:52 AM
|
1
|
1
|
3162
|
|
POST
|
Have you gone through the developer site? ArcGIS for Developers In regards to your basic question the Runtime SDK is the core API. This is what any application is built on top of. The toolkit is a number of controls (which are common in mapping application), built using the Runtime SDK that can be used in an application. The toolkit is just something esri provides to help developers, it is not required. A good place to start would be setting up the demo applications from github. This will show you some code for many standard types of mapping functionality and all the code to do it
... View more
03-06-2020
11:48 AM
|
1
|
0
|
3162
|
|
POST
|
I'm sorry but I am missing something, I don't understand how a point would not be valid to complete the polygon and why one would want to confirm. CompleteCommand can only be executed when you have a geometry already. It allows you to accept (finalize) that geometry. As opposed to moving a vertex before finishing. If you want the level of control you seem to desire and validate each point then you pretty much would need to just create your own editor and use the passed in point to draw a graphic on a graphics layer. Again, I may just not understand what you are really trying to accomplish and apologize if that is the case
... View more
03-06-2020
06:45 AM
|
0
|
8
|
2335
|
|
POST
|
I am not clear where this part is in your code, what triggers the SketchEditor to Start? Geometry g = await MapView.SketchEditor.StartAsync(SketchCreationMode.Polygon, true); Using the SketchEditor you don't need to be handling GeoViewTapped. It will move past the above line of code when the shape is complete. Once it moves past the geometry is drawn on the MapView and the CompleteCommand.CanExecute will be true
... View more
03-05-2020
08:53 AM
|
0
|
10
|
4147
|
|
POST
|
Yup I was thinking the same. If they were offline I would say you could toggle the DefinitionExpression off/on. We do for some other things and it isn't noticeable to the user, for something doing a small search
... View more
03-04-2020
06:17 AM
|
0
|
0
|
3503
|
|
POST
|
I am current on everything both on Windows Side and Mac side (I have not tried a deploy directly from the mac) VS 2019 Visual Studio Tools for Containers 1.0 Visual Studio Tools for Containers VisualStudio.DeviceLog 1.0 Information about my package VisualStudio.Foo 1.0 Information about my package VisualStudio.Mac 1.0 Mac Extension for Visual Studio Xamarin 16.4.000.311 (d16-4@ddfd842) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android. Xamarin Designer 16.4.0.475 (remotes/origin/d16-4@ac250f5aa) Visual Studio extension to enable Xamarin Designer tools in Visual Studio. Xamarin Templates 16.4.25 (579ee62) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms. Xamarin.Android SDK 10.1.4.0 (d16-4/e44d1ae) Xamarin.Android Reference Assemblies and MSBuild support. Mono: fd9f379 Java.Interop: xamarin/java.interop/d16-4@c4e569f ProGuard: xamarin/proguard/master@905836d SQLite: xamarin/sqlite/3.28.0@46204c4 Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-5@9f4ed4b Xamarin.iOS and Xamarin.Mac SDK 13.10.0.17 (5f802ef) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support. Thanks -Joe
... View more
03-02-2020
01:33 PM
|
0
|
0
|
1060
|
|
POST
|
Hi I get the following issue trying to deploy to an iOS device or simulator after 100.7 upgrade dyld: symbol '_CoreRT_ArcGISRuntimeEnvironment_disableTracing' not found, expected in '/private/var/containers/Bundle/Application/FB5FD31B-9F53-4F9E-93F3-0BDD49C9A795/Mobile.AsBuilt.iOS.app/Frameworks/ArcGIS-arm64.framework/ArcGIS-arm64', needed by '/private/var/containers/Bundle/Application/FB5FD31B-9F53-4F9E-93F3-0BDD49C9A795/Mobile.AsBuilt.iOS.app/Mobile.AsBuilt.iOS' This occurs with a number of methods. Is there a property that needs to be changed when updating to 100.7 that I missed?
... View more
03-02-2020
11:50 AM
|
0
|
2
|
1148
|
|
POST
|
Yup I'll have to eat a little crow here, I have set the SketchCreationMode to false in our standard configuration which behaves differently and just triggers on the click. Although I don't think binding directly to SketchEditor.CompleteCommand does what is being asked. In Xaml: <Button Command="{Binding CompleteCommand}" Text="Yo Dude" Height="30" IsVisible="{Binding YoVisible}"/> In ViewModel (I have SketchEditor initialized in ViewModels through an event, so this would be slightly different in the MapView's ViewModel): EventAggregator.GetEvent<SketchEditorInitializedEvent>().Subscribe(se =>
{
SketchEditor = se;
SketchEditor.CompleteCommand.CanExecuteChanged += CompleteCommandOnCanExecuteChanged;
}));
private void CompleteCommandOnCanExecuteChanged(object sender, EventArgs e)
{
var x = SketchEditor.Geometry;
if ( x != null )
{
YoVisible = true;
}
Console.WriteLine("Here");
}
public bool YoVisible
{
get => _yoVisible;
set => SetProperty(ref _yoVisible, value);
}
public ICommand CompleteCommand => new DelegateCommand<object>(ExecuteComplete);
private void ExecuteComplete(object obj)
{
if ( SketchEditor.CompleteCommand.CanExecute(null) )
{
SketchEditor.CompleteCommand.Execute(null);
}
} Although you really don't need the if statement in the ExecuteComplete as the button is only visible if the CanExecute is True I don't see any way that you could actually know what CanExecute is besides there being a geometry associated to the SketchEditor
... View more
03-02-2020
11:34 AM
|
0
|
1
|
4147
|
|
POST
|
I'm not sure what you mean by 'control future geometry.' The geometry is created by the SketchEditor. In the method you are calling mapPoint = (MapPoint)await SketchEditor.StartAsync(SketchCreationMode.Point, false); The next line of code will have the geometry after the MapView is tapped. You really don't need to do anything in the MapView.Tapped event handler. What do you want your button to be doing? I am not clear what your workflow is. You will need some kind of Command to initiate the call above to the SketchEditor. In the esri provided sample they have a button that when invoked Starts the sketch editor.
... View more
02-27-2020
09:28 AM
|
0
|
1
|
4147
|
|
POST
|
The CompleteCommand is managed by the API and cannot be used in the ways you are describing. When you use the SketchEditor you basically give control of the map to device input. Once you call geometry = await SketchEditor.StartAsync(sketchCreationMode, false); The Map is now waiting for input, (i.e., a mouse-click or tap). The API basically controls things until the correct input is received. I am not sure I understand the goal you are trying to achieve. Do you want the use to be able to accept the placement of the geometry? -Joe
... View more
02-26-2020
08:07 AM
|
0
|
3
|
4147
|
|
POST
|
I had built out the layer in json, but was trying to use the add_layer method as opposed to what you do above and just modifying the layers array. What was troubling was that there had been a change in the API at one point so a really simple approach that worked with the json was broken and then I was stuck to find something new. In the end the C# approach is an improvement because I have a GUI. The user can log in and download the Web Map, which is converted to XML. Then we can edit the popups in XmlSpy which is a lot easier than the Web UI. Then use the GUI app to import. We also use this approach to move environments. We will create a blank Web Map in the new environment and then do an import using the previously defined Web Map after replacing the server names (assumes services are named the same). Cheers -Joe
... View more
02-26-2020
06:47 AM
|
0
|
1
|
3142
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-11-2026 09:07 AM | |
| 1 | 10-23-2025 12:16 PM | |
| 1 | 10-19-2022 01:08 PM | |
| 1 | 09-03-2025 09:25 AM | |
| 1 | 04-16-2025 12:37 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|