POST
|
The documentation for the Symbol.listSymbolsFromGallery() method says (emphasis mine): listSymbolsFromGallery provides a mechanism to return a list of symbols that exists in a system or project style gallery. If I create a layer in memory through a geoprocessing tool, using only raw paths as inputs and not existing map layers, then the resulting layer is not associated with any project (I think). So, if I then call listSymbolsFromGallery() like so... symbols = my_layer.symbology.renderer.symbol.listSymbolsFromGallery(symbol_name) ...then Pro apparently only pulls system symbols and not project symbols. Makes sense. However, if I then add that layer to a map in a project that has a style file added, and save the project... aprx_map.addLayer(my_layer)
aprx.save()
symbols = my_layer.symbology.renderer.symbol.listSymbolsFromGallery(symbol_name) ...then listSymbolsFromGallery() still does not list the symbols in the project's style file. How can I get listSymbolsFromGallery() to pull symbols from a style file?
... View more
06-28-2023
06:02 PM
|
0
|
0
|
177
|
POST
|
The Table.Search method contains a parameter called useRecyclingCursor. However, the documentation on that parameter is cryptic to me: If set to true, all the entries in RowCursor will reference the most current row returned by Current. To ensure all the entries in RowCursor remain unique, set useRecyclingCursor to false. The default is true. Three questions on that: On the first sentence there, what does "the most current row" mean (isn't there only one current row)? On the second sentence, I found some old ArcMap Java documentation here under the "Recycling and cursors" section. Assuming this documentation applies, where the Pro SDK documentation says "To ensure all the entries in RowCursor remain unique," I presume that means "To ensure each row gets its own object instance," correct? What are the use cases for "true" vs. "false" for this parameter? Thanks.
... View more
06-22-2023
02:58 PM
|
0
|
1
|
347
|
POST
|
Ah yes, that's just what I need. Apparently I was searching the wrong area of the CIM spec. Thanks!
... View more
03-31-2023
09:57 AM
|
1
|
0
|
269
|
POST
|
I want to access a layer's display filters, as in Symbology > Display filters, through arcpy. Is this possible? The CIM spec doesn't seem to include display filters, and definition queries will not work in this case.
... View more
03-30-2023
05:56 PM
|
0
|
2
|
303
|
POST
|
Thanks, @KyleC. Do you have any updates on ENH-000129001? Is there a way we can check the status ourselves?
... View more
08-10-2022
11:38 AM
|
0
|
1
|
808
|
POST
|
Using React, are there any good reasons to use class components vs. function components with the ArcGIS JavaScript API?
... View more
06-09-2022
05:11 PM
|
0
|
0
|
259
|
POST
|
I'm looking at @MattDriscoll's repo here from the 2022 dev summit, which I attended. I understand how to make a reusable web component (I'm using Stencil), but how can a web component be integrated into an app? For example, say I have a simple app that just shows a map. If I make a web component that shows a little box with a list of layers (just a hypothetical example), how do I import that web component into my app such that the list of layers shows up on top of the map? And how do I hook up communication between the web component and map? I'm considering using React as a framework in the web component and/or app, but I'm not sure how that plays into either. Therefore I'd be interested in knowing how this is done with or without React. I'm using the latest ArcGIS JSAPI, TypeScript, and Vite. Thanks!
... View more
06-07-2022
09:22 AM
|
0
|
1
|
520
|
POST
|
OK, thanks. When we say "web components," I thought that a custom ArcGIS widget is a web component. What's the difference exactly? Specifically I'm looking to build a reusable widget/component that can be imported into any app and lets the user do dynamic queries, similar to definition queries in ArcGIS Pro where you can add as many criteria as you like. I was thinking React in order to dynamically add the query boxes, and the ArcGIS JSAPI for the ArcGIS integration (e.g. sending query to ArcGIS Server). I'm hoping to use TS and other "latest and greatest" things where it makes sense. Any samples/insight/etc. appreciated.
... View more
06-02-2022
03:36 PM
|
0
|
1
|
658
|
POST
|
I used Vite to create a React app with TypeScript. The app has a custom widget. I have it all working, but I'm wondering if this information by @ReneRubalcava3 is still valid: . . . React uses React.createElement for vdom and the JSAPI uses tsx and TypeScript only allows a single jsxFactory to be defined. . . . // @ts-nocheck
/** @jsxRuntime classic */
/** @jsx tsx */ . . .You lose type checking on your custom widget However, React has a new runtime (called "automatic") that doesn't use React.createElement. Details are here. So the question is: Is the new React "automatic" runtime compatible with the ArcGIS JSAPI, such that we can (1) use the new runtime's features and (2) keep TS type checking, when making apps with custom widgets?
... View more
06-02-2022
02:31 PM
|
1
|
3
|
685
|
POST
|
Still a bug in 2.8.0. The bug's page is here: https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDA5MzcyNw== It says, "Not in Current Product Plan" @Robert_LeClair, you are with Esri, correct? Can you offer an explanation/justification?
... View more
09-28-2021
03:21 PM
|
0
|
0
|
755
|
POST
|
@CharlesMacleod Can you provide an update on this? Thanks.
... View more
09-13-2021
01:53 PM
|
0
|
1
|
560
|
POST
|
How can I get the blue spinning "donut" icon like we see in the attribute table and map view when you click the "refresh" button? I don't see that icon in the icon reference here, or any samples on how to make it spin like the existing ones. Thanks!
... View more
07-27-2021
11:57 AM
|
0
|
1
|
591
|
POST
|
I've tried those troubleshooting steps. They specify ways to fix issues, not known issues that are unfixable. Therefore, I don't think that link really says, "Sorry, the library is broken" but rather "here's what to do if it's broken, after which it should work." Again, the missing DLL is in the raw build output, so I suspect that the DLL isn't recognized after it goes through the Esri build process to create the .EsriAddinX file. I can use System.Data.SqlClient for now as a workaround, but I highly recommend testing Microsoft.Data.SqlClient for future releases. Thanks again for your help!
... View more
07-23-2021
11:35 AM
|
0
|
0
|
6664
|
POST
|
Yes, please see the second-to-last paragraph of my original post: The code works with System.Data.SqlClient, but that package is basically being succeeded by the Microsoft.Data.SqlClient. The blog post there mentions that it's in preview, but it's been out of preview for quite a while now and is the "latest and greatest" so-to-speak.
... View more
07-22-2021
03:46 PM
|
0
|
0
|
6679
|
POST
|
Thanks, @Wolf . That code sample has: using System.Data.SqlClient; instead of: using Microsoft.Data.SqlClient; See lines 1 and 2 of my original code. Unfortunately, when I switch to the Microsoft reference in your code, I get the same exception. Does that happen for you as well?
... View more
07-22-2021
02:12 PM
|
0
|
0
|
6686
|
Title | Kudos | Posted |
---|---|---|
1 | 05-18-2021 03:15 PM | |
1 | 03-31-2023 09:57 AM | |
1 | 06-02-2022 02:31 PM | |
2 | 09-11-2020 12:50 PM |
Online Status |
Offline
|
Date Last Visited |
02-16-2024
11:16 PM
|