IDEA
|
I have a use-case where (point) features need to be drawn with a complicated symbol, that cannot be configured in ArcGIS. The symbol depends on a number of attribute values from a related table, and in theory, every feature could have a unique symbol. Symbols need to be updated whenever an attribute value changes. My idea is to generate images of the symbols whenever an attribute value is updated, and store those images in a web-accessible location. The layer renderer would then need picture markers with a (possibly unique) URL for every feature. This would probably be an easy task when using the JavaScript API, one could write a custom renderer that does just that. However, it would be cool if it is supported out of the box, and not just with the JavaScript API, but everywhere. To do this, I imagine a PictureMarkerSymbol could be used, but the URL should allow for fieldname substitution, e.g. https://example.com/images/{OBJECTID}.png would result in https://example.com/images/12345.png This approach could also be used for any classified renderer, so rather than generating the classes beforehand, we would have a more flexible way to do that.
... View more
12-09-2022
02:43 AM
|
1
|
0
|
371
|
POST
|
I see you found the same snippet too 😉 https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-MapAuthoring#add-a-wfs-service
... View more
04-23-2021
05:26 AM
|
0
|
0
|
997
|
POST
|
Does anyone know how to add a WFS service to a map using the CIMWFSServiceConnection class? The WMS and WMTS equivalents work perfect, but when using CIMWFSServiceConnection, the layer that's added to the map has a red exclamation mark in front of it, and the Source entry on the layer's properties dialog shows Data source information not available This is the code I used for adding a WMS service, the only differences are the URL, and the class used in line 2: var serverConnection = new CIMInternetServerConnection { URL = "https://example.com/wms?service=WMS" };
connection = new CIMWMSServiceConnection { ServerConnection = serverConnection };
LayerFactory.Instance.CreateLayer(connection, MapView.Active.Map); Adding a WFS through the user interface (i.e. Favorites > Add Item > New WFS Server) also works without problems.
... View more
04-14-2021
12:39 AM
|
0
|
2
|
1082
|
POST
|
Thanks, that is good enough for now. My project has only one button, and it doesn't really need a separate group. Two things to note for whoever wants to do something similar: When looking up the ID of an existing group, make sure you're looking at the correct version of the DAML. Although they are the same for large parts, there are some minor differences. E.g. 2.7 has esri_mapping_layerGroup whereas in 2.5 it's called esri_mapping_mapGroup. If you want to support multiple versions, I suppose two updateGroup tags are needed (but I haven't tried that yet) There is no need to insert dependencies mentioned earlier, it works fine without those
... View more
03-19-2021
01:20 AM
|
0
|
0
|
3273
|
POST
|
That would make sense, but it still doesn't seem to work. I'm only referencing stuff from ADCore, but adding that module as a dependency doesn't change anything. Here's what I have now: <ArcGIS defaultAssembly="ProAppModule3.dll" defaultNamespace="ProAppModule3" xmlns="http://schemas.esri.com/DADF/Registry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.esri.com/DADF/Registry file:///C:/Program%20Files/ArcGIS/Pro/bin/ArcGIS.Desktop.Framework.xsd">
<AddInInfo id="{f2d61d01-095a-4b9a-9bf3-4437643fe624}" version="1.0" desktopVersion="2.5.22081">
<Name>ProAppModule3</Name>
<Description>ProAppModule3 description</Description>
<Image>Images\AddinDesktop32.png</Image>
<Author>NLBVRE</Author>
<Company>Acme</Company>
<Date>3/16/2021 10:34:42 AM, 2021</Date>
<Subject>Framework</Subject>
<!-- Note subject can be one or more of these topics:
Content, Framework, Editing, Geodatabase, Geometry, Geoprocessing, Layouts, Map Authoring, Map Exploration -->
</AddInInfo>
<dependencies>
<dependency name="ADCore.daml" />
</dependencies>
<modules>
<insertModule id="ProAppModule3_Module" className="Module1" autoLoad="false" caption="Module1">
<groups>
<group id="UpdateInsertTab_Group1" caption="Group 1" appearsOnAddInTab="false">
<button refID="ProAppModule3_Button1" size="large" />
</group>
</groups>
<controls>
<!-- add your controls here -->
<button id="ProAppModule3_Button1" caption="Button 1" className="Button1" loadOnClick="true" smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue16.png" largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue32.png">
<tooltip heading="Tooltip Heading">Tooltip text<disabledText /></tooltip>
</button>
</controls>
</insertModule>
<updateModule refID="esri_core_module">
<tabs>
<updateTab refID="esri_core_insertTab">
<insertGroup refID="UpdateInsertTab_Group1" placeWith="esri_project_styles" insert="before"/>
</updateTab>
</tabs>
</updateModule>
</modules>
</ArcGIS>
... View more
03-18-2021
01:08 AM
|
0
|
0
|
3291
|
POST
|
Thanks, that works. Unfortunately not in version 2.5 which is the version I am supposed to be working in ☹️. But in 2.7, yes. (I didn't test 2.6)
... View more
03-17-2021
01:27 AM
|
0
|
0
|
3301
|
IDEA
|
Christopher, That documentation describes in a bit more detail the steps I already outlined in my question. The problem is, as soon as you start Visual Studio, the update process will begin immediately and by the time you get to the checkbox, it's already too late. The only way I found to fix this is by disconnecting my laptop from the internet before starting Visual Studio. This is not exactly straightforward. I don't know what's possible with extensions in Visual Studio, maybe automatic update can be set to 'off' by default, or maybe the installer could check for the version of Pro that is installed. Maybe each version of Pro should have it's own distinct set of extensions.
... View more
03-17-2021
12:43 AM
|
0
|
0
|
1229
|
IDEA
|
I have an older version of ArcGIS Pro installed, because that's what (some of) our customers are using. I also installed the Visual Studio extensions for ArcGIS Pro for this version. When starting Visual Studio, it automatically updates the Pro extensions for VS to the most recent version. If I then start a new project in Visual Studio, I get an error message about mismatched versions. The only way to disable the automatic update is to Uninstall the latest version Install the version I want, again Disconnect laptop from internet Start Visual Studio Uncheck Automatic updates for both ArcGIS Pro extensions Could you please have extension's installers check the installed version of Pro, and only update if there is a matching Pro version?
... View more
03-16-2021
02:50 AM
|
3
|
2
|
1314
|
POST
|
Thanks, I didn't know the updateModule tag. However, I can't seem to actually add a button. This is what I have now: <updateModule refID="esrimappingExtension">
<groups>
<insertGroup id="My_Group1" caption="Hello" appearsOnAddInTab="false">
<button refID="My_Button" size="large" />
</insertGroup>
</groups>
<controls>
<!-- Add button here? -->
</controls>
</updateModule> This should at least add an empty group, right? The controls tag only accepts deleteButton or updateButton, but no button (or insertButton, or whatever). Do you happen to have an example of how to actually add a button? And are the existing refID's documented somewhere?
... View more
03-12-2021
08:47 AM
|
0
|
0
|
3352
|
POST
|
in ArcGIS Pro, is it possible to add a button to an existing tab on the ribbon? I'd like to have my button appear on the Insert tab rather than the default Add-In tab. I tried to add it to esri_mapping_insertTab, but that doesn't seem to work. <tabs>
<tab id="esri_mapping_insertTab">
<group refID="My_Group1" />
</tab>
</tabs>
... View more
03-12-2021
07:42 AM
|
0
|
8
|
3394
|
POST
|
Thanks, I had tried q=tags:"tag1" or "tag2" but not q=tags:"tag1" OR "tag2" (uppercase OR). Quotes don't seem to be necessary in this example. This works perfect. BTW shouldn't it be tags:tag1 OR tags:tag2
... View more
08-06-2020
06:22 AM
|
1
|
0
|
2270
|
POST
|
Hi, I'm trying to search items in Agol that have one or more tags from a list. For instance, when searching for tag1,tag2, I'd like to find all items that have either tag1 or tag2 (or both). Some things I've tried: q=tags:tag1,tag2 q=tags:tag1 OR tags:tag2 And several permutations of this, but none seem to work. If I search for a single individual tag, it works as expected. The documentation only shows searching for a single tag, but the name of the parameter (tags) suggest multiple tags should be supported. Is this possible at all, or should I do a separate search for each tag?
... View more
08-06-2020
05:43 AM
|
0
|
2
|
2301
|
POST
|
It seems that between version 4.9 and 4.10, display of a graphic's symbol was changed so that it's rotation is always relative to the screen rather than the mapview. I have added some features to a graphicslayer that I want to point in a certain compass direction, which obviously does not work now. Is there an option to override the default behavior, and set the angle relative to the mapview's rotation?
... View more
12-18-2019
03:22 AM
|
0
|
1
|
1264
|
POST
|
Hi, I'm trying to use dynamic data layers in ArcGIS Server REST to replace the datasource for a layer in a mapservice when making a request to the /export method. What happens is that for certain users, instead of the original featureclass, a view is used in order to limit what they see on the map. This already works. However, when using a dataLayer object, I'm forced to also provide a drawingInfo object that specifies the symbology. But this particular mapservice uses some complicated symbols that cannot be reproduced by the renderer in the drawingInfo. I was wondering if there is a way to tell ArcGIS Server to use the renderer from an existing mapLayer in the service, and only replace the datasource being used. I also noticed there is something called a workspaceLayer that can be used when the service is published by ArcGIS Pro, and which references a .lyrx file. So far I haven't been able to get the proper syntax. For example, setting dynamicLayers to [ {
"id": 1,
"source": {
"type": "workspaceLayer",
"workspaceId": "TEST_WS",
"layerId": "layerfile.lyrx"
}
} ] gives me: 'Unable to create workspaceLayer with invalid 'layerId' input.'
... View more
12-06-2019
12:29 AM
|
1
|
0
|
478
|
POST
|
I noticed that the native ArcGIS MessageBoxes have their own button on the Windows taskbar (e.g. the 'Do you want to save...' box when closing Pro). This can be somewhat confusing for users, especially when the setting to group taskbar buttons is not enabled, so I was wondering if it it possible to change this behavior. Example: One thing that is very annoying happens when hovering the mouse over the taskbar button, and then hovering over the MessageBox thumbnail; all other windows, including the ArcGIS Main window, will now be hidden (default Windows 10 and 11 behavior). The same happens when showing a MessageBox from an add-in. It doesn't seem to matter if I set the parent window or not: ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(Application.Current.MainWindow, "Message"); Note that unfortunately I'm still working with 2.2, so if anyone can confirm whether this is fixed in a later version, that's OK too. Update 16-1-2024: I'm at 3.1.0 now, and this behavior has not changed
... View more
10-02-2019
07:47 AM
|
1
|
0
|
396
|
Title | Kudos | Posted |
---|---|---|
1 | 10-02-2019 07:47 AM | |
1 | 07-25-2023 07:28 AM | |
1 | 12-06-2019 12:29 AM | |
1 | 12-09-2022 02:43 AM | |
3 | 03-16-2021 02:50 AM |
Online Status |
Offline
|
Date Last Visited |
09-20-2024
11:02 AM
|