|
POST
|
Instead of adding GraphicsLayer, you can create a client-side FeatureLayer and set the renderer of the feature layer. This way you don't have assign a symbol to every single graphic. Take a look at this sample: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-featurelayer-collection-edits
... View more
05-18-2023
08:57 AM
|
1
|
1
|
1997
|
|
POST
|
4.x does not have concept of selection symbol. You can change the highlightOptions for the layer view. Please take a look this sample as this shows how to change the layer view's highlightOptions: https://developers.arcgis.com/javascript/latest/sample-code/highlightoptions-layerviews/
... View more
05-18-2023
07:45 AM
|
0
|
1
|
2004
|
|
POST
|
Hi there, This is my understanding of your question. I apologize if I did not understand the question. I think you are asking to run search when user clicks on features of a given feature layer and show a popupTemplate using results of the search. This codepen app shows a proof of concept for how it can be done: https://codepen.io/U_B_U/pen/oNaMVoe?editors=100 Essentially, you want to use MapView.hittest() to return a result only when user clicks on the featurelayer of your choice by setting includes parameter. If the hittest returns results then you can call search widget's search method using either attribute, geometry or long,lat. Once the search returns the result, then you can show the popup by calling view.popup.open() method. You can setup the action, content and title of the popup as needed. Hope this helps,
... View more
05-15-2023
08:51 AM
|
0
|
0
|
1168
|
|
POST
|
Hi there, 4.x does not have concept of selection symbol. You can change the highlightOptions for the layer view. Please take a look this sample as this shows how to change the layer view's highlightOptions: https://developers.arcgis.com/javascript/latest/sample-code/highlightoptions-layerviews/
... View more
05-12-2023
12:34 PM
|
0
|
1
|
2291
|
|
POST
|
Hi there, This issue will be fixed at version 4.27. You can test the fix by pointing your codepen to our next version.
... View more
05-08-2023
05:24 PM
|
2
|
0
|
6299
|
|
POST
|
TileLayer needs to be reprojected on the server. If the server does not support the projection of the mapview then nothing will be displayed.
... View more
05-08-2023
08:24 AM
|
1
|
1
|
3627
|
|
POST
|
Hi there, You will not be able to set the hightLightOptions to use symbols. We however are exploring to add different options so that you can set for the highLightOptions to stand out from the rest of the features on the map. You can do what you said (using graphicslayer) to use simple marker symbol to show the selected features.
... View more
05-05-2023
08:18 AM
|
1
|
0
|
1640
|
|
POST
|
Hi there, The error "failed to execute compile of webassembly: Incorrect mime type. Expected application/wasm" - seems to be related to you not configuring your server to serve wasm content. Adding wasm hopefully will solve the issue.
... View more
05-05-2023
08:06 AM
|
0
|
0
|
2663
|
|
POST
|
It is hard to suggest things to try without a repro case. What happens if you set the basemap in the map constructor? It is blank perhaps because your TileLayer cannot be reprojected to the spatialReference of the view.spatialReference. The server must be able to reproject the TileLayer to match the spatialReference of the view.
... View more
05-04-2023
11:08 AM
|
0
|
1
|
3650
|
|
POST
|
Hi there, Without a reproducible case it is not possible to say what the issue is for sure. Is possible for you to share your service or a simple test app that throws this error? Thanks
... View more
05-04-2023
08:44 AM
|
0
|
1
|
2688
|
|
POST
|
Hi there, I am not sure what issue you are running into. Can you please explain the problem bit more in detail? If you are using 4.23 and later, you can change spatialReference of the MapView at runtime. Here are the details how it works: https://developers.arcgis.com/javascript/latest/4.23/#basemaps-with-different-spatial-references
... View more
05-04-2023
08:42 AM
|
0
|
1
|
3665
|
|
POST
|
Hi there, I'd run queryExtent method on the layerView using the same expression requirements. This will return an extent of all features meet the criteria. Or you can do something similar in this example: https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-find-the-extent-of-an-array-of-graphics/td-p/368324
... View more
05-01-2023
08:01 AM
|
1
|
0
|
1938
|
|
POST
|
Hi there, You don't have to do this via CSS. You can set the LayerList.listItemCreatedFunction to expand the grouplayer on start. The code snippet in the SDK doc shows this and the following is the code. const layerList = new LayerList({
view: view,
// executes for each ListItem in the LayerList
listItemCreatedFunction: defineActions
});
// Add widget to the top right corner of the view
view.ui.add(layerList, "top-right");
function defineActions(event) {
const item = event.item;
if (item.layer.type === "group"){
item.open = true;
}
} Hope this helps, -Undral
... View more
04-28-2023
12:55 PM
|
3
|
0
|
3178
|
|
POST
|
The problem is you are removing all graphics from your graphicslayer whenever user either creates a point or changes the distance. You need to check that logic. In any case hope you can use one of the following codepens Something like this? https://codepen.io/U_B_U/pen/rNqwYQW?editors=1000 Or something like this? https://codepen.io/U_B_U/pen/MWPoOLe?editors=1000 Or like this? https://codepen.io/U_B_U/pen/MWPoOMj?editors=1000
... View more
04-27-2023
01:44 PM
|
1
|
0
|
3784
|
|
POST
|
Hi there, Please take a look at this codepen as this shows how to transform map points to screen points: https://codepen.io/ycabon/pen/ExdXXjP?editors=0011
... View more
04-27-2023
10:11 AM
|
0
|
0
|
1341
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2025 03:29 PM | |
| 1 | 07-09-2025 08:48 AM | |
| 2 | 07-08-2025 08:09 AM | |
| 2 | 07-07-2025 03:57 PM | |
| 1 | 06-11-2025 03:25 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-01-2025
08:03 AM
|