POST
|
Hey Chris - This is an excellent question and something we need to document better. When you run QueryFeaturesAsync, you're querying the local version of the data. Depending on your caching mode (ServiceFeatureTable.FeatureRequestMode), this may not include all the features available in the service. PopulateFromServiceAsync, on the other hand, runs the query on the feature service and populates your local version of the table with the results. I hope that helps! Thad
... View more
02-13-2020
11:08 AM
|
0
|
2
|
72
|
POST
|
Hi! Do you want to render each symbol primitive in the style and add it to a list or grid? Or do you want to display symbols generated from the style for a particular feature (set of attributes)? To get the symbol for a set of attributes, use DictionarySymbolStyle.GetSymbolAsync. For searching symbols by category, etc. see DictionarySymbolStyle.SearchSymbolsAsync (you can then iterate the results). You can find some good examples in the samples: - Read samples from a mobile style (see the GetCurrentSymbol function for getting a symbol for a set of attributes and ReadMobileStyle for an example of iterating all symbols in the style) - Custom dictionary style - an example of using a custom dictionary style I hope that helps! Thad
... View more
10-25-2019
09:06 AM
|
0
|
1
|
46
|
POST
|
Yeah, I agree with Joe, you might want to experiment with some other relationships just to see what you get. Maybe it's a spatial reference issue? Are you sure the geometry you're querying with is coincident with the input features? Perhaps, as a quick test, you could try zooming to the extent of the envelope used for the query.
... View more
07-26-2019
11:02 AM
|
0
|
1
|
77
|
POST
|
Hi Gonzalo, The `GraphicsOverlays` collection also has methods to manage the order of the `GraphicsOverlays` it contains (Add, Insert, Move, Remove, etc.). Within a `GraphicsOverlay`, you can also set a z-index property on individual graphics. A larger z-index means the graphic is higher in the draw order (for graphics in the same overlay). bottomGraphic . ZIndex = 0 ; topGraphic . ZIndex = 1 ; Note: Graphics overlays *always* draw on top of layers in the map. Thad
... View more
07-26-2019
10:34 AM
|
2
|
0
|
174
|
POST
|
Hi Kirk, I remember running into a similar issue when I tried implementing this via MVVM. Unfortunately, it was about 5 years ago, and I can't find how (or if!) I worked around it. From Google, I see that people have fixed similar binding issues (same error message at least) by using a proxy (such as a resource or hidden control) to provide the data context. For example: https://stackoverflow.com/questions/7660967/wpf-error-cannot-find-governing-frameworkelement-for-target-element I see that Antti has an example of using popups that looks pretty good. He only binds to the text shown in the popup and the geometry for the anchor. He's showing info for a clicked feature, so he sets the binding context in the geoview_tapped event. https://community.esri.com/thread/190047-popups-in-arcgis-runtime-sdk-for-net#comment-666876 You might also want to check out callouts. Maybe they'll work better for what you need to do: https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/MapView/ShowCallout I hope that helps, Thad
... View more
07-25-2019
11:26 AM
|
1
|
0
|
119
|
POST
|
Hi! You can't set the properties of the callout shown using GeoView.ShowCalloutAt. You can, however, create a Callout object, set its display properties, and add it to the map view. Here's an example: // Create a Callout (FrameworkElement), set its content and appearance. Callout customCallout = new Callout { Background = new System . Windows . Media . SolidColorBrush ( System . Windows . Media . Colors . CornflowerBlue ) , BorderBrush = new System . Windows . Media . SolidColorBrush ( System . Windows . Media . Colors . PaleVioletRed ) , BorderThickness = new System . Windows . Thickness ( 5 , 5 , 5 , 3 ) , Content = "Custom content goes here" } ; // Set the callout location on the display using an attached property on GeoView. GeoView . SetViewOverlayAnchor ( customCallout , mapLocation ) ; // Add the callout to the map view overlay collection. MyMapView . Overlays . Items . Add ( customCallout ) ; I hope that helps! -Thad
... View more
05-16-2019
11:06 AM
|
1
|
1
|
229
|
POST
|
We have a sample for v10.2 - https://developers.arcgis.com/net/10-2/sample-code/SwipeMap/ I haven't tried it with v100.x.
... View more
03-29-2019
10:23 AM
|
0
|
2
|
43
|
POST
|
Hey Murray. I tested your code and saw the same thing. I tried using the following (San Diego) route service, and it worked as expected: Route (NAServer) I think the problem might be with authenticating for the service ("Route_World" is a premium service that you must sign in for). I tried using world routing service in this sample: https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Network%20Analysis/FindRoute and after authenticating with my ArcGIS Online account, the route was solved successfully. I'm not sure what may have changed to cause your code to fail. A couple of guesses: perhaps you had authentication "baked in" to your app and those credentials are no longer valid or perhaps your app was originally using a different (openly available) route service. If you need to add authentication to your app, this sample may help (sorry, C# only): https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/10.2.7/src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/Security/OAuthAuthorization
... View more
03-25-2019
12:29 PM
|
0
|
3
|
105
|
POST
|
My guess would be that something has changed with the service/data that you're using for the route task (or the inputs). If you share a bit of the offending code, I can give it a test on my end.
... View more
03-19-2019
09:24 AM
|
0
|
5
|
105
|
BLOG
|
Hi Kirk, I'm glad you found it useful! I agree, generating a proxy class from a schema would be the way to go! Unfortunately, there's not a JSON schema available that defines the entire web map specification. The Esri.ArcGISRuntime.Mapping.Map class, of course, essentially serves as a proxy for the web map, allowing you to read and write JSON maps. For use cases like the one described in this blog, however, it's basically a manual process as far as I know. Thad
... View more
03-14-2019
03:50 PM
|
0
|
0
|
254
|
Online Status |
Offline
|
Date Last Visited |
Thursday
|