POST
|
Hi folks, we are working on 3D scene view and use SceneProperties to code the height of Polygons. Snippet: var renderer = new SimpleRenderer{ SceneProperties = { ExtrusionMode = ExtrusionMode.BaseHeight, ExtrusionExpression = "[height]" } };
....
graphic.Attributes.Add("height", height); However, we would like to adjust the height during the runtime of an application, depending e.g. on the zoom level. How do we instruct the ArcGIS-framework to repaint the graphics on a GraphicsLayer once we've adjusted the height value? As we've got about 5000 Graphics we would like to avoid removing all graphics and create new one everytime the height changes. Is there any solution? Kind Regards, Eugen
... View more
01-11-2018
06:06 AM
|
0
|
2
|
668
|
POST
|
Hey folks, we've made a litte progress on this. We've put a transparent Border above the SceneView that does catch all the interactions: Snippet <Border x:Name="InteractionAdapter" IsManipulationEnabled="True" Background="#00FF0000" ManipulationDelta="InteractionAdapter_OnManipulationDelta" Margin="0" Panel.ZIndex="100" TouchDown="InteractionAdapterBorder_OnTouchDown" TouchUp="InteractionAdapter_OnTouchUp" /> <esri:SceneView x:Name="MainSceneView" LayerLoaded="OnLayerLoaded" SceneViewTapped="MapView_OnMapViewTapped" CameraChanged="SceneView_CameraChanged" ManipulationInertiaStarting="BaseMapView_OnManipulationInertiaStarting" ManipulationDelta="MainSceneView_OnManipulationDelta"> The Border translates ManipulationDeltas into Camera adjustments: Snippet public void OnManipulationDelta(object sender, ManipulationDeltaEventArgs e){ var camera = _sceneView.Camera; double height = camera.Location.Z; MapPoint newZoom = CalculateZoom(camera.Location, e); MapPoint newPan = CalculatePan(camera, e, height); MapPoint mergedManipulations = new MapPoint(newPan.X, newPan.Y, newZoom.Z, camera.Location.SpatialReference); Camera newCameraRotation = CalculateRotation(e, camera); Camera updatedCamera = newCameraRotation.SetLocation(mergedManipulations); _sceneView.SetView(updatedCamera); } Thats works fine for Pan, Rotate and Zoom gestures. However, we don't know how to pass on Tapped-Events to the SceneView. That is necessary for e.g. Hit-Testing. We've tried to pass on touch_up and touch_down events to the SceneView but that didn't work. Snippet private void InteractionAdapter_OnTouchUp(object sender, TouchEventArgs e) { MainSceneView.RaiseEvent(e); } We would appreciate any hint on how to raise MapViewTapped-Events. Kind regards, Eugen
... View more
09-27-2016
01:08 AM
|
0
|
0
|
372
|
POST
|
Hi folks, we encountered a massive performance difference between MapView and SceneView while adding Graphics to a GraphicsLayer. While it is fast in MapView it is very slow in a SceneView. Is this a known issue and is there a workround? Kind Regards, Eugen
... View more
09-22-2016
06:28 AM
|
0
|
0
|
711
|
POST
|
Hi folks, as our users complained that navigating in a 3D scene is more complex than in 2D we would like to enable and disable the 3D effect in our application using toggle buttons. In a MapView we could precisely set the interaction options like rotation, panning etc. In a SceneView these options are missing. Is there any workaround for this problem? Kind regards, Eugen
... View more
09-22-2016
06:02 AM
|
0
|
1
|
1204
|
POST
|
Hi folks, we just started experimenting with the 3D SceneView. It looks very nice and we are excited about the new possibilities. However, we've encountered a problem while hittesting GraphicLayers in a SceneView. The result is always empty no matter how hard we try to hit a graphic. The hittest worked in a MapView. Have you got any idea what might be wrong? public async Task<IEnumerable<Graphic>> GetGraphic(GraphicsLayer layer, Point screenPoint, int maxHits) { IEnumerable<Graphic> hitGraphics = await layer.HitTestAsync(_map, screenPoint, maxHits); return hitGraphics; } Kind Regards, Eugen
... View more
09-21-2016
02:02 AM
|
0
|
0
|
660
|
POST
|
Hi folks, today we upgraded the ArcGis Runtime for .NET from version 10.2.5 to version 10.2.7. We immediately discovered huge performance issues right after the upgrade. Please see the videos below: ArcGis 10.2.5 Dropbox - ArcGIS 10.2.5.mp4 ArcGIS 10.2.7 Dropbox - ArcGIS 10.2.7.mp4 We haven't changed any part of the code after the upgrade. The performance difference is massive. Thus we downgraded back to 10.2.5 Have you got any hints how we can solve this problem? Kind regards, Eugen
... View more
05-27-2016
08:53 AM
|
0
|
1
|
3346
|
POST
|
Hi Lee, as you pointed out, the screenshot on the left (Esri HydrographicS57Layer) does display fewer items. The question is why? We used the same ENC for both applications. From my point of view the different S-52 spec implementations are the more obvious reasons. Thanks for clarification.
... View more
12-02-2014
01:55 AM
|
0
|
0
|
303
|
POST
|
Hi folks, right now we are evaluating Esri-capabilities to display maritime charts (ENC-files). Thanks to Antti we've been able to display ENC-files in our application. However, when we compare the results with the Seven C's SeeMyENC application, they look quite different - although they use both the S52 standard for visualization. I've enclosed a picture to demonstrate the difference: The HydrographicS57Layer does not display many symbols, text, numbers etc., not before we zoom in to a detailed map scale. Can we adjust some settings at what map scale symbols, text and numbers are displayed and how they are displayed (say font size and color)? Kind regards, Eugen
... View more
11-24-2014
02:35 AM
|
0
|
2
|
3402
|
POST
|
Hi Mike, thanks for the quick reply. We are using ArcGIS Runtime SDK for .NET to display ENC & bENC files. I've read there is also an ArcGIS server side component for ENC and bENC data. Is this true an where can I find more information about the difference between those two? Regards, Eugen
... View more
11-17-2014
04:44 AM
|
0
|
1
|
440
|
POST
|
Hi folks, we are working on a professional and highly reliable application for a maritime company. One of our challenges is to display ENC and bENC data. Thus we are experimenting with the ArcGis HydrographicS57Layer. However, this layer is not in the common ArcGis Runtime namespace. Is the HydrographicS57Layer an officially released layer or work in progress? Kind Regards, Eugen
... View more
11-17-2014
02:09 AM
|
0
|
3
|
3150
|
POST
|
Hi Antti, I could sort this problem out myself. It was really a matter of timing. I had to change the display properties after all Layers were loaded: public S57DisplayPropertiesSample() { InitializeComponent(); // Create default instance of display properties and set that to DataContext for binding DataContext = HydrographicS52DisplayProperties.Default; ZoomToHydrographicLayers(); } // Zoom to combined extent of the group layer that contains all hydrographic layers private async void ZoomToHydrographicLayers() { try { // wait until all layers are loaded await MyMapView.LayersLoadedAsync(); HydrographicS52DisplayProperties.Default.ViewGroupProperties.Soundings = false; ... Thanks for your help again!
... View more
11-12-2014
11:28 AM
|
0
|
0
|
178
|
POST
|
Hi Antti, that was a very good hint, thanks a lot! I'm able to load my data into the example. When I check and uncheck the soundings checkbox the soundings appear and disappear from the map. However, when I try to disable soundings programmatically at start up, they just don't disappear. This is how I disable soundings: public S57DisplayPropertiesSample() { InitializeComponent(); // Create default instance of display properties and set that to DataContext for binding DataContext = HydrographicS52DisplayProperties.Default; HydrographicS52DisplayProperties.Default.ViewGroupProperties.Soundings = false; ZoomToHydrographicLayers(); } Is this a matter of timing or something else?
... View more
11-12-2014
09:40 AM
|
0
|
1
|
178
|
POST
|
I already tried that one, but unfortunately it didn't work. Any other ideas?
... View more
11-12-2014
06:13 AM
|
0
|
3
|
655
|
POST
|
Alright, got it. I'm also displaying bENC with soundings. I was wondering if I can filter these soundings, because I don't need them. I already tried to change Text- und ViewGroupProperties to see if anything happens. But my ENCs and bENCs still look the same.
... View more
11-12-2014
05:22 AM
|
0
|
5
|
655
|
POST
|
Hi Antti, I've checked the sample you mentioned. I didn't know that I need to set the DataContext of the MapView to HydrographicS52DisplayProperties. Now it works fine. Thanks a lot! For those who are interested: HydrographicS52DisplayProperties displayProperties = HydrographicS52DisplayProperties.Default; displayProperties.ColorScheme = S52ColorScheme.DayBright; displayProperties.DisplayDepthUnits = S52DisplayDepthUnits.Meters; <!--MainMapView ist the XAML-Name of my MapView (<esri:MapView x:Name="MainMapView") --> MainMapView.DataContext = displayProperties;
... View more
11-12-2014
03:52 AM
|
0
|
7
|
655
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|