POST
|
I'm having the same problem. I'm using ArcGISRuntime 100.6. Does anyone know if a solution or workaround has been found for this bug?
... View more
09-01-2020
11:30 AM
|
0
|
1
|
571
|
POST
|
Thanks for the quick response Jennifer. I think I found a good workaround. I simply set the RefreshInterval to zero when the user selects/edits a feature, and then set it back to its configured value when the editing is complete. Seems to work well. The only drawback is that the layer is not updated as long as a feature is selected, so a user could miss updates if they accidentally leave a feature selected. If this turns out to be a problem, I will just add a timer to deselect the feature if there is no user interaction after a fixed interval.
... View more
09-18-2018
11:20 AM
|
0
|
0
|
577
|
POST
|
If I set a refresh interval on a feature layer, any selected feature becomes unselected when the layer refreshes. This appears to be a new bug in ArcGISRuntime 100.3. It doesn't happen in version 100.2. The attached repro sample has two buttons. One to create a feature if there aren't any already on the layer, and one to select a feature. Click "Select Feature" and then click on a feature. It should show a blue highlight which will then disappear in a few seconds when the layer refreshes if it is using version 100.3. The selection remains unaffected when using version 100.2. Note: You will have to add the ESRI.ArcGISRuntime.WPF NuGet package to the project. I removed it to reduce the size of the file.
... View more
09-17-2018
12:15 PM
|
1
|
2
|
678
|
POST
|
I have updated the repro project to use the latest 100.3 ArcGISRuntime and problem persists. I also updated it so you don't need to restart between tests. Just hit the "Start Test" repeatedly button until the app freezes. It usually takes only a few clicks before the problem manifests. Any help would be much appreciated.
... View more
07-11-2018
11:44 AM
|
0
|
0
|
529
|
POST
|
We create a CompositeSymbol using two symbols, a SimpleMarkerSymbol for the background and a PictureMarkerSymbol created from a RuntimeImage as follows: SimpleMarkerSymbol background = new SimpleMarkerSymbol() { Color = this.BackgroundColor, Style = SimpleMarkerSymbolStyle.Circle, Size = this.Size }; ImageSource img = new BitmapImage(new Uri(@"pack://application:,," + this.IconPath, UriKind.RelativeOrAbsolute)); RuntimeImage runtimeimage = await img.ToRuntimeImageAsync(); PictureMarkerSymbol picsymbol = new PictureMarkerSymbol(runtimeimage) { Height = this.Size, Width = this.Size }; CompositeSymbol composite = new CompositeSymbol(); composite.Symbols.Add(background); composite.Symbols.Add(picsymbol); We save this symbol in a dictionary so we can reuse it rather than creating a new one each time it is needed. There appears to be some kind of race condition that causes the ArcGISRuntime to hang about 33% of the time we run the attached sample application. Pausing the Debugger during the hang shows that the application has stopped after the sample code attempts to add the graphic to the GraphicsOverlay: this.m_Overlay.Graphics.Add(cg); The call stack shows that the execution stopped in this method: Esri.ArcGISRuntime.dll!RuntimeCoreNet.GeneratedWrapper.CoreVector.Insert( ....) When running the attached sample, you must restart it between tests. It usually only takes two or three attempts before it hangs. Is there something wrong with this approach to caching CompositeImages, or is it a bug in the ArcGISRuntime? Please let me know if there is a better approach or a workaround. Caching the images is important because we use thousands of them they take a lot of overhead to create (in our real app the background is a more complicated bitmap). Any help would be greatly appreciated. Thanks!
... View more
06-22-2018
12:13 PM
|
0
|
2
|
685
|
POST
|
Thanks for the quick response Jennifer! I found that solution about an hour ago. I toggle it off when the extent is outside the max extent and then toggle it back on when the navigation completes. It works perfectly.
... View more
06-05-2018
11:49 AM
|
0
|
0
|
1733
|
POST
|
Hi Jennifer, I implemented your suggestion and it works well except when the map has inertia after releasing the mouse in which case the map violently bounces back and forth when it hits the boundary of the extent. The size of the bounce increases as the map is thrown faster. The shudder lasts about two seconds. Is there any way to stop this from happening? Here is the code I put in the ViewpointChanged event. I simply save the last extent that was within the MaxExtent and set the Viewpoint to that extent when the map moves outside of it. Envelope extent = MyMapView.GetCurrentViewpoint(ViewpointType.BoundingGeometry)?.TargetGeometry?.Extent; if (GeometryEngine.Within(extent, MaxExtent)) { _LastExtent = extent; } else { Viewpoint vp = new Viewpoint(_LastExtent); MyMapView.SetViewpoint(vp); }
... View more
06-04-2018
03:46 PM
|
0
|
3
|
1733
|
Title | Kudos | Posted |
---|---|---|
1 | 09-17-2018 12:15 PM |
Online Status |
Offline
|
Date Last Visited |
04-14-2022
05:01 PM
|