POST
|
Hello @Anonymous User, thank you for your link. I remembered there was something like that. But for some reason the MapViewOverlayControl is not visible for me. I also reinstalled the .Net SDK templates and utilities for VS2017 and tried with the embeddable control template but same effect. Maybe it's a thread problem again? _handleGpsDataThread = new Thread(StartHandleGpsDataLoop);
_handleGpsDataThread.Priority = ThreadPriority.BelowNormal;
_handleGpsDataThread.Start();
private async void StartHandleGpsDataLoop()
{
await HandleNewGpsDataAsync(GpsMessageBuffer.Last());
}
private async Task HandleNewGpsDataAsync(GpsData newGpsData)
{
await QueuedTask.Run(() =>
{
try
{
...
var targetCourse =
GetDistanceToCurrentTarget(workstationLocation, 2).Result;
...
}
catch (EndOfRouteException eore)
{
var courseEndMessageControl =
new CourseEndMessageControlView();
var mapViewOverlayControl =
new MapViewOverlayControl(
courseEndMessageControl,
true,
true,
true,
OverlayControlRelativePosition.TopLeft);
MapView.Active.AddOverlayControl(mapViewOverlayControl);
}
}
}
private Task<Course> GetDistanceToCurrentTarget(MapPoint currentLocation, int decimalPrecision)
{
return QueuedTask.Run(() =>
{
...
throw new EndOfRouteException(
"You reached the end of the current route.");
...
}
} <UserControl x:Class="AddIn.Gps.UserControls.CourseEndMessageControlView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ui="clr-namespace:AddIn.Gps.UserControls"
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
mc:Ignorable="d"
d:DesignHeight="75" d:DesignWidth="415"
d:DataContext="{Binding Path=ui.CourseEndMessageControlViewModel}">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Border Background="White" BorderBrush="LightSkyBlue" BorderThickness="2">
<StackPanel Orientation="Vertical" >
<TextBlock FontSize="20" FontWeight="Medium" Margin="20">
Sie haben den letzten Zielpunkt erreicht.
</TextBlock>
</StackPanel>
</Border>
</Grid>
</UserControl> Do you have any suggestion how I can make the overlay appear?
... View more
08-24-2021
02:45 AM
|
0
|
0
|
3517
|
POST
|
Hi, in my code I'm continously updating a map overlay. At some point of time I raise a MessageBox ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(
message,
"Kursverfolgung",
MessageBoxButton.OK,
MessageBoxImage.Information,
MessageBoxResult.OK
); This makes my map window freezing and my overlay position don't gets updated anymore. Maybe it's a problem with WPF MessageBox itself but is there a way to show an into message to the user without blocking the UI? There is no user interaction necessary. The info pane can disappear by itself let's say after 5 seconds. Can I create a invisible pane, position it over the map view and make it visible for a short amount of time? Thanks for any help.
... View more
08-23-2021
08:13 AM
|
0
|
9
|
3559
|
POST
|
Hi, I'm publishing a mosaic dataset with a raster function from ArcGIS Pro 2.8 to Portal 10.9 federated server as ImageService and register the service to the portal. If I investigate the mosaic dataset with attached raster function in Pro I get the correct classification with the first class as transparent. But if I load the published image service into portal map viewer, the first class becomes white and I have to set it manually to "no color". My overall process is completely automated so this is no option. How can I get portal to understand the first class color map to be "no color"? Thank you for your help!
... View more
07-14-2021
12:54 AM
|
0
|
0
|
705
|
POST
|
Hey Tim, fortunately everything went well and worked as described. Thank you a lot. I got two strange errors during the script but it finished after a while and everything seems to work. ImportError: cannot import name 'py3compat' from 'ipython_genutils' What I still don't understand is why I'm able to update via conda and command prompt while package manager in Pro and Anaconda don't list the package as updateable.
... View more
05-06-2021
07:21 AM
|
0
|
0
|
1929
|
POST
|
Hello, I'm currently a little bit confused of how arcgis Python package version is related to ArcGIS Pro version. I've just updated my ArcGIS Pro to the latest version 2.7.3. (2.8 not yet available?) and my Package Manager in Pro as well as Anaconda still only give me access to arcgis package version 1.8.3. But the documentation is already at 1.8.5. Is there a way for me to upgrade to the latest version? Am I missing something? Thank you for some help.
... View more
05-06-2021
06:28 AM
|
0
|
2
|
1946
|
POST
|
Hello George, these are very good news! Thank you for your quick reply.
... View more
05-06-2021
04:06 AM
|
0
|
0
|
1007
|
POST
|
Hello, can someone tell me if there's an official release date of Enterprise 10.9? Thank you
... View more
05-06-2021
03:48 AM
|
0
|
2
|
1030
|
POST
|
Hello @AndyGup, thank you very much for taking time to answer all my questions. The bundle size is not a general problem but at the moment it slows down our Azure build. This is something we can enhance on our own with Azure and Nx tools. For now I set the the version to @next and I will keep my eyes open for the new release. The unwanted build messages disappeared.
... View more
03-17-2021
06:44 AM
|
0
|
0
|
2749
|
POST
|
Hello, I'm currently building a prototype app with the new @Anonymous User/core (4.18.1) package and Nx Angular monorepos (Angular 11). If I build the application I get a number of compiler messages. Warning: E:\Projekte\nx-hwrm\nx-hwrm\libs\shared\feature-mapping-esri\node_modul es\@arcgis\core\intl\moment.js depends on 'moment/locale/ko.js'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependenc ies Warning: E:\Projekte\nx-hwrm\nx-hwrm\libs\shared\feature-mapping-esri\node_modul es\@arcgis\core\intl\moment.js depends on 'moment/locale/ja.js'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependenc ies and Warning: ./libs/shared/feature-mapping-esri/node_modules/@arcgis/core/core/worke rs/workers.js 5:863-872 Critical dependency: the request of a dependency is an expression Warning: ./libs/shared/feature-mapping-esri/node_modules/@arcgis/core/core/worke rs/WorkerFallback.js 5:2264-2273 Critical dependency: the request of a dependency is an expression also the build generates more than 170 numbered bundles together 8MB. If I also include the whole esri assets folder this is another ~22MB. I followed this guide: https://developers.arcgis.com/javascript/latest/es-modules/ Esri assets are copied to output dist folder with angular.json: "assets": { { "glob": "**/*", "input": "libs/shared/feature-mapping-esri/node_modules/@arcgis/core/assets", "output": "assets/" } } Is there a way to have a more compact Angular build?
... View more
03-16-2021
05:54 AM
|
0
|
2
|
2774
|
POST
|
Hello Peter, my problem is partially resolved. It still adds my image layer with strech renderer per default to the portal map viewer. When I get into render settings and accept to add a new vector layer from my default vector field renderer the new layer now draws the arrows as expected. But why do I have to add this vector layer from hand? I want my image layer to appear immediately with vector field renderer.
... View more
03-03-2021
02:06 AM
|
0
|
0
|
2288
|
POST
|
Hello Peter, thank you for your quick reply. What versio of ArcGIS Pro do you show? I'm using 2.7.1 I'll set the source type with arcpy.SetMosaicDatasetProperties_management(). But following this methods documentation (https://pro.arcgis.com/de/pro-app/latest/tool-reference/data-management/set-mosaic-dataset-properties.htm), there's only VECTOR_UV VECTOR_MAGDIR Do you know if VECTOR_DIR and VECTOR_MAG are already implemented?
... View more
03-03-2021
12:37 AM
|
0
|
0
|
2291
|
POST
|
Hello everyone, my question is a little bit cross topic and I'm not quite sure what the best community is. Basically I have a mosaic dataset with a single band raster (32 bit float) with pixel values representing flow direction. In ArcGIS Pro 2.7.1 I can visualize the raster data with vector field renderer. I'm also able to publish the mosaic dataset as an Image Service to my portals hosting server with vector field as default. It renders correct back in ArcGIS Pro. But when I try to add this Image Layer with vector field to portal map viewer it shows the layer with stretch renderer. In renderer settings it wants to add a new vector layer. If I add this additional layer it also doen't show up any arrows regardless of how much I zoom in. Please can anybody help me out? Does this really not work? The vector field rendering is really important for us. Every help is much appreciated!
... View more
03-02-2021
07:36 AM
|
0
|
3
|
2343
|
POST
|
Hello everyone, in Portal 10.8.1 if I add an Image Service with default renderer of type 'Vector field' then I get a stretched renderer in the map viewer instead of the vector arrow symbols I had when I published from arcgis pro. If I switch to the layer renderer settings it tells me that 'current selection results in vector data. Do you want to add them as a vector layer?': So I have to manually add a second layer. The problem is we create our map automatically from Jupyter Notebook: map = self.gis.map(location=center, zoomlevel=14) for item in items: item.share(groups=[group]) map.add_layer(item) All image layers appear with their correct default raster function renderer except the vector field one. So is it possible to add image layer with vector field default renderer as vector layer directly?
... View more
03-01-2021
02:08 AM
|
0
|
0
|
1209
|
POST
|
Thank you very much Robert. It's working as expected now.
... View more
02-12-2021
07:54 AM
|
0
|
0
|
1488
|
POST
|
Please can someone have a look at my test widget 😕 ? The whole widget is attached. Thank you very much
... View more
02-11-2021
07:51 AM
|
0
|
2
|
1499
|
Title | Kudos | Posted |
---|---|---|
1 | 01-23-2020 06:28 AM | |
1 | 06-04-2018 11:48 PM | |
1 | 06-04-2018 06:16 AM | |
2 | 10-29-2021 01:41 AM | |
1 | 01-22-2018 07:22 AM |
Online Status |
Offline
|
Date Last Visited |
08-15-2022
08:13 AM
|