|
POST
|
As described in the doc, when constructing a client-side Feature Layer you need to specify the field details instead of using: fields: [*],
... View more
08-30-2021
08:12 AM
|
0
|
2
|
2761
|
|
POST
|
I'm not familiar with the WAB internals so I can't speak to all the 'proxy' related stuff. However, when working with layers coming from services it is common practice to wait for the layer to be loaded. Many times layers are accessed via a layer item (instead of a URL) which might have overrides to some properties defined in the service, so after retrieving the service level information we'd have to then override those properties after retrieving the information from the layer item, which happens asynchronously. The same applies to accessing a layer in a web map, which might have overrides of its own. So, to ensure we don't work with properties that will change depending on how the layer was accessed, we instead wait for all the overrides to be applied (the load event) before working with the properties. I hope this helps.
... View more
08-26-2021
12:23 PM
|
1
|
1
|
1763
|
|
POST
|
When using JS API 3.x, the way to wait for a layer to be loaded is like this: featureLayer.on("load", ()=> {
console.info(featureLayer.fields);
});
... View more
08-26-2021
09:05 AM
|
0
|
3
|
1785
|
|
POST
|
I see, so your question is about the WAB and JS API 3.x? All the suggestions I've seen here are for the JS API 4.x because that is what the original question was about. You should consider creating a new question specific to your use-case as it's very different from this one.
... View more
08-26-2021
08:52 AM
|
0
|
1
|
983
|
|
POST
|
And here's a quick CodePen using the service you mention above: https://codepen.io/john-grayson/pen/MWowbgX
... View more
08-26-2021
08:43 AM
|
0
|
0
|
988
|
|
POST
|
Q: do you have a very simple codepen (or similar) so we can experience the issue?
... View more
08-26-2021
08:26 AM
|
0
|
3
|
4133
|
|
POST
|
Maybe try using a Rotation VisualVariable to do this task? If it doesn't work for you, having a simple codepen (or similar) so we can see the code and experience the issue really helps.
... View more
08-26-2021
08:21 AM
|
0
|
1
|
1588
|
|
POST
|
Q: did you try my suggestion of waiting for the layer to loaded first? featureLayer.load().then(() => {
console.log(featureLayer.title, featureLayer.fields);
});
... View more
08-26-2021
08:16 AM
|
0
|
5
|
4139
|
|
POST
|
Looks like you're creating a FeatureLayer with client-side graphics via the source property. However, you don't specify the fields schema. Instead of '[*]' try to specify the details about the fields. Check out the first 'Read more' section in the doc and look for a sub-section called 'Add an array of client-side features' as it contains an example on how to do this. Also, here's a sample. If that doesn't help, then having a codepen or similar to experience your issue would really help.
... View more
08-24-2021
08:16 AM
|
0
|
4
|
2788
|
|
POST
|
Have you tried to set the 'zoomScale' property of the locator/feature source?
... View more
08-16-2021
05:52 PM
|
0
|
0
|
573
|
|
POST
|
Do you have a very simple codepen showing the issue?
... View more
08-11-2021
01:13 PM
|
1
|
0
|
1313
|
|
POST
|
"...find all feature layers with a certain tag" is not the same as "...using search to find specific items". I think you're reading too much into the highlighted sentence. What you should avoid using 'search' for is when you want to access a specific item. If you need to access a specific item I would recommend creating a PortalItem and use the item id directly. Searching for layers with a certain tag is a valid use of 'search', especially if you limit the search to within an org, group, or by user. If you're using the JS API you can use the above classes to do what you need without having to do things via REST.
... View more
08-09-2021
05:06 PM
|
0
|
0
|
1503
|
|
POST
|
Check out the storybook for calcite-dropdown; one of the examples is 'Items as Links': https://esri.github.io/calcite-components/?path=/story/components-buttons-dropdown--items-as-links
... View more
08-09-2021
04:49 PM
|
0
|
0
|
1297
|
|
POST
|
As mentioned previously there are more than one way to do this task depending on your needs. If you have multiple layers but don't want to display them in the map and still create these types of charts, then using a client-side pixel filter is probably not the way to do this as your use-case and workflow are very, very different. I would suggest you investigate the use of histograms as a possibility. You can still pass in the 'clip' raster function as part of the renderingRule. The counts you get back would represent the number of pixels in each class and you could build the charts based on those values.
... View more
08-09-2021
08:40 AM
|
0
|
0
|
4062
|
|
POST
|
Have you checked out the 'search' doc yet? https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#queryItems https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#query https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm https://developers.arcgis.com/rest/users-groups-and-items/search.htm
... View more
08-09-2021
08:28 AM
|
0
|
1
|
1508
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-07-2024 04:14 PM | |
| 1 | 02-23-2024 12:40 PM | |
| 1 | 03-01-2024 10:48 AM | |
| 2 | 08-03-2023 02:34 PM | |
| 2 | 07-19-2023 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-24-2024
06:01 PM
|