POST
|
Hi, Do you mind verifying if I have your set up correctly summarized here? 1. You have a layer, rendered with a CIMSymbol in a SimpleRenderer. This symbol contains a TextSymbolLayer to display the name of the feature (I'm guessing by using a primitive override). 2. When you enable featureReduction on the layer, the same symbol is used for the clusters, including the text displaying the feature name. A LabelClass is also generated for the cluster configuration which returns the cluster count in the center of the symbol. 3. Individual features display as expected...using the CIM Symbol with the text symbol layer indicating the feature name. 4. Cluster display is unexpected...you see a name displayed in the cluster symbol and the cluster count. You only want to see cluster count in this scenario. If this is accurate, then you need to move the feature labels outside of the CIM Symbol and move them to a LabelClass on the layers labelingInfo. This should render the feature labels for individual features only. Cluster labels (cluster count) will only display for clusters of a size 2 or greater.
... View more
05-06-2025
03:09 PM
|
1
|
0
|
153
|
POST
|
The reason for this is because we haven't released this feature in Map Viewer yet. We're still in the middle of R&D work, gathering feedback, and doing more prototyping before we release this publicly. If there are specific AI capabilities you're looking for in Map Viewer, please DM me, and we can chat about what workflows will work for you.
... View more
04-29-2025
08:36 AM
|
1
|
0
|
466
|
POST
|
Do you mind returning `GetEnvironment()` from your expression to see what spatial reference is set to the Arcade context? I suggest returning the following in your popup as the popup context is different than the Arcade editor context:
Text(GetEnvironment().spatialreference)
Post the response you see in the popup...
... View more
12-12-2024
01:32 PM
|
0
|
1
|
483
|
POST
|
Do you mind reaching out to Esri Support (support@esri.com) and reporting the issue there? That way we can get it logged in our system for tracking bugs and get it resolved as soon as possible.
... View more
08-20-2024
08:06 AM
|
1
|
1
|
813
|
POST
|
A couple of things on this: 1. You can tell if a feature represents a cluster if the isAggregate property of the feature is `true`. Checking for `cluster_count` is pretty reliable for clusters, but unreliable if you want to check if a feature represents an aggregate from binning or clustering. 2. You cannot tell if a feature is an aggregate from a layer query (e.g. `layer.queryFeatures()`). This will always result in returning features from the underlying service, not from the client. At this point, clusters (and bins) are always generated client-side. Therefore, you cannot query them from a service. However, you may query them on the layerView. 3. You can query aggregates (i.e. clusters or bins) from the layer view using the queryAggregates() method. This will only query aggregates in the view, and not return any individual features. 4. If you query an aggregate that you want to drill into further (e.g. you query for a cluster with 5,000 features) you can use the resulting aggregate graphic of that query to query the features represented by (or contained within) that cluster. You can do this by calling the queryFeatures() method on the layer view and by setting the aggregateIds property to include the id of the aggregate feature you had just queried. 5. How can I determine whether a feature has been clustered or not? This depends on the origin of the feature. You can easily find out through hitTest if you are getting the feature from a click event. Simply check the isAggregate property. If you are getting the feature from a service query, then it's a bit more complicated. You would need to query all aggregates, iterate through each, then query all features included in each aggregate and check for a match. This is a pretty fast operation since these are all client-side queries. Here's an example of how to do this: https://codepen.io/kekenes/pen/MWMOrVP?editors=1000 In that sample I query a feature from the service, then highlight the cluster to which it belongs (even though it is not rendered in the view). const highlightCluster = async (layerView, id ) => {
if (highlightHandle) {
highlightHandle.remove();
highlightHandle = null;
}
const { features } = await layerView.queryAggregates();
features.forEach( async (f) => {
const aggId = f.getObjectId();
const q = layerView.createQuery();
q.aggregateIds = [ aggId ];
const { features } = await layerView.queryFeatures(q);
const result = features.find(f => f.getObjectId() === id);
if(result){
highlightHandle = layerView.highlight([aggId]);
}
});
}; Hopefully this helps.
... View more
08-13-2024
11:53 AM
|
1
|
1
|
825
|
POST
|
> Is there a way to generate the heat map using the data in the map view, what's in the current view extent? This is how this method works. It only takes into account what is in the view. > if I load the map being zoomed in with no data in the view, the heatmap is completely washed out. That's because there is no data in the view. You will only see anything meaningful if you zoom to the area where you have data and want to create a heatmap. > Or, can I set the zoom dynamically before loading the Heatmap, so the data is in the view? Yes. You can set this with the goTo method or by setting the view extent.
... View more
07-22-2024
11:04 AM
|
1
|
1
|
643
|
POST
|
I suggest contacting Esri support (support@esri.com ) with this issue. We're about to make another update, so it would be good to get this recorded in our our bug triage system to address it as soon as possible.
... View more
06-17-2024
09:24 AM
|
0
|
0
|
503
|
POST
|
This looks like it could be a bug. Could you reach out to Esri support and report to them? That way we can can a repro case on our end and an issue logged in our system that you can track the progress on.
... View more
05-16-2024
09:46 AM
|
1
|
0
|
411
|
POST
|
For performance issues and rendering bugs, I recommend you reach out to Esri Support (support@esri.com). They'll validate the issue you're seeing and create a bug report in our system so we can take a look at it. You'll also be able to track the planning and progress for the bug when reporting through that channel.
... View more
04-25-2024
08:56 AM
|
1
|
0
|
586
|
POST
|
Yikes. Do you mind logging an issue with support so we can get this into the system for fixing ASAP?
... View more
03-02-2024
01:02 PM
|
1
|
0
|
583
|
POST
|
You can do this by changing the selectedClusterBoundaryFeature symbol. view.popup.viewModel.selectedClusterBoundaryFeature.symbol = {
type: "simple-fill",
style: "none",
outline: null
}; Here's an app that demonstrates this: https://codepen.io/kekenes/pen/yLwWJoq?editors=100
... View more
02-21-2024
10:46 AM
|
1
|
0
|
887
|
POST
|
It's possibly a bug in the Enterprise map viewer. Is the error showing up in the Arcade editor where you're authoring the expression? If so, I'd log a bug with support so they can get that fixed. The execution context for the editor must have a matching spatial reference as well as the map. If you're copying and pasting into the playground of the online documentation, then you will definitely see that error as the spatial reference there is web mercator.
... View more
02-20-2024
02:53 PM
|
2
|
1
|
1470
|
POST
|
You can test it out using https://js.arcgis.com/next/
... View more
02-05-2024
04:26 PM
|
0
|
0
|
1038
|
POST
|
This should be fixed in the next update of the JS API (v4.29).
... View more
02-05-2024
04:25 PM
|
0
|
1
|
1038
|
POST
|
You need to define aggregate fields for them to come through in $feature. That's what I meant by featureReduction.fields. This sample demonstrates how to do that. https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-aggregate-fields/
... View more
02-02-2024
08:29 AM
|
0
|
0
|
1503
|
Title | Kudos | Posted |
---|---|---|
1 | 05-06-2025 03:09 PM | |
1 | 04-29-2025 08:36 AM | |
1 | 08-20-2024 08:06 AM | |
1 | 08-13-2024 11:53 AM | |
1 | 07-22-2024 11:04 AM |
Online Status |
Offline
|
Date Last Visited |
05-06-2025
03:01 PM
|