POST
|
From the development team - there is not a fullproof workaround unfortunately - however they suggest that MapView.LookAtCamera and it’s x, y, z values might be your best option. They r looking at this for 3.4. https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic20825.html
... View more
5 hours ago
|
0
|
0
|
5
|
POST
|
thanks for this. we have passed this on to the development team to be addressed for the next release (3.4)
... View more
5 hours ago
|
0
|
0
|
1
|
POST
|
The Roaming attribute is a little bit hidden. I agree it can be a little bit tricky to get the value to display. With any property selected in the settings designer grid, show the Visual Studio properties grid (usually co-located with the Solution Explorer). U will see a property called "Roaming" with a default value of **false**. Change as needed.
... View more
a week ago
|
2
|
1
|
44
|
POST
|
i think you are trying to do something like this: https://stackoverflow.com/questions/1472498/wpf-global-exception-handler I, myself, have never tried it.
... View more
a week ago
|
0
|
0
|
49
|
POST
|
Modules are lazy loaded when autoLoad=false - the default. Thus, the module initialize will fire when the first "action" occurs that triggers module loading - for example - a button click on the ribbon (which is the most common) or a previously open dockpane is re-opened at the beginning of the session. At that time, before _anything_ else, the Module is constructed (eg new Module1() {}) and Initialize is called. Then everything else. Obviously, the coding pattern for Initialize can get a bit tricky when autoLoad=false because the timing of when it will occur within a given session will change (depending on when the first action that triggers module loading occurs). Setting autoLoad=true means that the Module will always load at the same time at the beginning of the session regardless of when the first action or "use" occurs.
... View more
03-22-2024
10:50 AM
|
0
|
1
|
158
|
POST
|
Note: i used 3.3, .NET 8 (just happens to be what i hv on my box). So u will need to change the target fwk back to .NET 6 and fix references - just use the Pro SDK tool for that.
... View more
03-19-2024
10:15 AM
|
1
|
1
|
387
|
POST
|
can u point me to the incorrect documentation please? I did a quick scan of https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Exploration#mapcontrol but didnt see a reference to Mouse events....I wld like to correct it. fyi: perhaps because u r "seeing" the inherited events from the base WPF UIElement class on the api reference? https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic12547.html#EventsBookmark If u uncheck "Include Inherited Members" u will see only the events implemented on the map control itself
... View more
03-19-2024
09:25 AM
|
0
|
1
|
115
|
POST
|
i think this post will help: https://stackoverflow.com/questions/23108045/how-to-make-observablecollection-thread-safe I think the issue u r running into is based on how u r handling the observable collections in your view model. Two things: 1 - you must lock them (see article above) 2 - Once you assign them do NOT re-assign them because that will break the binding (ie, once u do this: var _regions = new ObservableCollection<Regions>(); do _not_ do this....._regions = some_new_list. I also added virtualization to your region combo box. It was choking if u hit the dropdown _before_ selecting a commune (i was getting some 50,000 odd regions in the collection for the area i was using). Without virtualization, the combobox freezes when trying to fill the dropdown if there are too many values in the Regions list. look at this post for help on virtualization: https://stackoverflow.com/questions/8198645/wpf-combobox-performance-problems-by-binding-a-large-collections With your permission i will add the zip to the post containing the downloaded code from your repo w/my edits
... View more
03-18-2024
06:28 PM
|
1
|
0
|
412
|
POST
|
the screenshot looks normal. Ribbon commands, tools, etc. are disabled, not frozen, while the queued task is running. If you mouse over the ribbon do u get tooltips? does the ribbon re-paint if u drag another window over the top of it? If yes then the UI is remaining responsive and operating normally. Frozen would imply exactly that - no response to mouse over, no repaint, etc. which is different. Note that your TOC looks enabled which is also normal. U shld be able to change the visibility of layers, etc. while the queued task is running also.
... View more
03-18-2024
12:00 PM
|
0
|
2
|
426
|
POST
|
This is not currently supported. Thank u for the requirement. We will look into adding event subscription for the control at 3.4.
... View more
03-15-2024
03:26 PM
|
0
|
3
|
137
|
POST
|
.NET 6 to .NET 8 is not a breaking change. Your 3.0-3.2 addins will run on 3.3 with no need to recompile. If you are using specific 3rd party dlls/drivers, etc. then their forwards compatibility wld need to be verified but, generally speaking, Microsoft .NET 6 is forwards compatible with .NET 8 same as the Esri Pro assemblies.
... View more
03-14-2024
08:37 AM
|
2
|
0
|
182
|
POST
|
Im not sure it can be removed. I think what u r seeing is related to this: https://pro.arcgis.com/en/pro-app/latest/help/data/kml/kml-layers.htm Scroll down to the "Overlays" and "Dynamic content" sections. WIthin the "Overlays" section, it states: KML files can include screen overlays and ground overlays. Screen overlays are
images that appear at a set location on the screen over the display. When you
pan the map or scene, their location relative to the screen is fixed. They can
be turned on and off from the Contents pane, but they cannot be modified.
... View more
03-08-2024
05:21 PM
|
1
|
1
|
173
|
POST
|
I see the issue. This is a tricky one. Because u r making a map-on-the-fly, it does not have an associated MapView. The MapView - as in the "rendering" or "display" of the map (and not the map itself - which is the "data" or model ) is what actually gets exported..... For this to work u need to split it into 2 separate steps - or button clicks....The first step creates the map and renderers it on a MapView. The second step, or "click" creates your layout on-the-fly and exports it. These do not have to happen, of course, in an exact sequence....the requirement for the Map frame to be exported is that the Map, at some point in time, prior to the export, has been rendered on a MapView. It does not have to "immediately" precede the export. To create a MapView pane to render/display the map programmatically do: await FrameworkApplication.Panes.CreateMapPaneAsync(newMap); So, in the case of your specific code example, I made two buttons - a "Create Map" and a "Create Export". The Create Map consolidates all the code to create the map, add the layer, and create a MapView. The Create Export is, basically, everything else. Create the map: protected override void OnClick() {
var census_map = await QueuedTask.Run(() =>
{
var map = MapFactory.Instance.CreateMap(
"Census Map",
MapType.Map,
MapViewingMode.Map,
Basemap.NationalGeographic
);
string url =
@"https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer";
Uri uri = new Uri(url);
LayerFactory.Instance.CreateLayer(uri, map);
return map;
});
FrameworkApplication.Panes.CreateMapPaneAsync(census_map);
}
} Create the export: protected override void OnClick()
{
//Find the map to be exported
Map census_map = null;
var map_panes = FrameworkApplication.Panes.OfType<IMapPane>().ToList();
foreach(var map_pane in map_panes) {
if (map_pane.MapView.Map.Name == "Census Map") {
census_map = map_pane.MapView.Map;
break;
}
}
if (census_map == null) {
//Early exit, MessageBox, etc.
}
await QueuedTask.Run(() => {
//Create the layout
//Export, etc.
};
...
... View more
02-21-2024
01:30 PM
|
1
|
0
|
140
|
Title | Kudos | Posted |
---|---|---|
2 | a week ago | |
1 | 03-18-2024 06:28 PM | |
1 | 03-19-2024 10:15 AM | |
1 | 03-18-2024 03:46 PM | |
2 | 03-14-2024 08:37 AM |
Online Status |
Online
|
Date Last Visited |
5 hours ago
|