|
POST
|
I've performed more testing and results even more interesting. It seems AddLabelClass method actually just do kind of request to add class, but doesn't add it actually. Here is screenshot: If I try to get added class immediately after AddLabelClass, LabelClasses collection will not contain it! But after couple of seconds: So now it's OK... In the middle between these two points in time class is added but has Class 1 name. So the entire process in SDK looks like this: Make request for adding label class and return control to calling thread Somewhere in the future class will be added with Class 1 name Somewhere in the future name will be changed to passed to AddLabelClass It's absolutely unobvious that AddLabelClass exits without class actually added. These "somewhere in the future" are not good.
... View more
06-07-2019
03:33 AM
|
0
|
1
|
991
|
|
POST
|
FeatureLayer.AddLabelClass always adds label class with Class 1 name ignoring the name passed to the method. Am I missing something?
... View more
06-06-2019
03:34 AM
|
0
|
3
|
1069
|
|
POST
|
No, that doesn't work. ComboBox view model is not created until add-in tab opened in ribbon. Seems like a bug.
... View more
06-05-2019
03:25 PM
|
0
|
2
|
1927
|
|
POST
|
Is it possible to load combobox defined in Config.daml automatically on ArcGIS Pro start? Something like loadOnClick="false" for button. I want to load combobox without necessity to go to add-in tab. I need it to have combobox view model created when add-in initialized.
... View more
06-04-2019
09:55 AM
|
0
|
4
|
2037
|
|
POST
|
Hello Christopher, I already tried this method but it throws exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
... View more
05-31-2019
02:54 AM
|
0
|
1
|
973
|
|
POST
|
It seems that 'Create Raster Dataset' geoprocessing tool doesn't work at all for GDB, either programmatically or not. My code: var args = Geoprocessing.MakeValueArray(datastorePath, RasterDatasetName, null, "8_BIT_SIGNED", null, 3);
var env = Geoprocessing.MakeEnvironmentArray(outputCoordinateSystem: SpatialReferences.WGS84);
var gpResult = await Geoprocessing.ExecuteToolAsync("CreateRasterDataset_management", args, env, can When tool executing, program crashes. If I try to create raster dataset manually in ArcGIS Pro, ArcGIS Pro crashes. How can I create raster dataset in GDB?
... View more
05-28-2019
07:38 AM
|
0
|
6
|
1626
|
|
POST
|
Is there API for 'Refresh values' command of proportional renderer? I'm interested in such API since this command automatically updates histogram, corrects symbol sizes and redraws symbols. If I can achieve this behavior with the current API please let me know.
... View more
05-24-2019
03:05 PM
|
0
|
3
|
1048
|
|
POST
|
In 2.3 something went wrong. TargetModel is null in DropInfo that passed to OnDrop method of a drop handler. It makes it impossible to determine where I drop my object. I should perform drop on MapView only. In 2.2 TargetModel contained that MapView when I dragging an object over it. Is it a bug or there is API to specify where it is valid to drop an object?
... View more
05-17-2019
04:14 PM
|
0
|
3
|
1252
|
|
POST
|
In the Buffer geoprocessing tool there is ability to specify linear distance (in such units as meters, miles and so on) for data with geographic spatial refernce too. How can I achieve that without geoprocessing on Geometry object? GeometryEngine doesn't accept Units argument and it's impossible to convert between angular and linear units (which is reasonable).
... View more
05-09-2019
01:34 PM
|
0
|
0
|
520
|
|
POST
|
Let's see an example: var mapToolsOverlayControl = new MapToolsOverlayControl
{
DataContext = new MapToolsOverlayControlViewModel()
};
MapView.Active.AddOverlayControl(mapToolsOverlayControl); Then if I call MapView.Active.GetOverlayControls(), I'll get objects of these types: ArcGIS.Desktop.Internal.Mapping.Controls.MapCreditsControl ArcGIS.Desktop.Internal.Mapping.Controls.AirspaceControlWrapper Where is my MapToolsOverlayControl? Inspecting things with reflection I found that GetOverlayControls returns UIElements that has UserControl property. So I'm able to find my control with reflection. But why it is wrapped to some internal class (AirspaceControlWrapper)? It's not what user expects from AddOverlayControl. If you need to wrap added control for some reason, please return new object from AddOverlayControl and give a remark in docs with snippet of how to get a control after it's added on map.
... View more
05-07-2019
03:34 AM
|
0
|
3
|
1611
|
|
POST
|
I'm trying to generate a picture and show it as raster layer with the picture stretched to current map extent. But if I create a layer with this image, the picture appears on map very small. Is it possible to specify which extent an image corresponds to?
... View more
03-29-2019
01:34 PM
|
0
|
0
|
615
|
|
POST
|
What is the proper way to add CIMPictureGraphic to map? What properties should be set? I tried following code: var box = EnvelopeBuilder.CreateEnvelope(x - 10, y - 10, x + 10, y + 10, SpatialReferences.WGS84);
var pictureGraphic = new CIMPictureGraphic
{
SourceURL = imgPath,
PictureURL = imgPath,
Box = box
};
var overlay = _mapView.AddOverlay(pictureGraphic); Image exist on path imgPath, but it is not shown on map.
... View more
03-27-2019
01:19 PM
|
0
|
4
|
1450
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-25-2018 09:14 AM | |
| 1 | 11-20-2017 12:35 PM | |
| 1 | 02-16-2017 08:55 PM | |
| 1 | 11-18-2017 06:15 AM | |
| 1 | 01-13-2017 07:15 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|