POST
|
As seen in the documentation, point objects don't have an extent (the value of their extent property is null). You might want to built a single MultiPoint object from the points returned by your query and zoom to it instead.
... View more
3 weeks ago
|
0
|
0
|
163
|
POST
|
The 4.27 AMD implementation is esri/widgets/Directions; the 4.33 documentation is here, and although doesn't mention the AMD syntax, AMD is supported in 4.27 and should still be largely (if not completely) the same (that is, the properties and methods documented in 4.33 probably haven't changed much since 4.27).
... View more
08-11-2025
04:29 PM
|
1
|
0
|
255
|
POST
|
The absence of a method in the SDK to generate a JSON object in webmap specification appears intentional. Are you needing the map information in the webmap JSON format, or would perhaps something similar suffice? I ask because it's fairly easy to get hold of a web_map_as_json object generated by the print module and used as input to the printing service. It's not the same as the webmap specification, but includes much of the same info.
... View more
07-25-2025
04:50 PM
|
1
|
0
|
146
|
POST
|
Also reported here as well...looks like it will be resolved soon.
... View more
07-23-2025
09:24 AM
|
1
|
0
|
163
|
BLOG
|
@Noah-Sager The download for 4.33 appears to be just another file for 4.32. For example, all of the js files have the line: // See https://js.arcgis.com/4.32/esri/copyright.txt for details. (note the "4.32" in the path), and many of the files reported to be added in 4.33 are not present. Could you please look into this?
... View more
07-21-2025
11:14 AM
|
1
|
0
|
298
|
POST
|
That's not a bad idea...you could extend that workaround to include validation like so: var featureLayer = new FeatureLayer({
//etc
});
featureLayer.originalApplyEdits = featureLayer.applyEdits;
featureLayer.applyEdits = function(edits, options) {
var errorMessage = null;
//validate the values in the edits object; if validation fails, set a string value to the errorMessage variable, for example:
/*
if (edits.addFeatures[0].attributes.name === "")
errorMessage = "Name - value required";
*/
if (typeof errorMessage == "string")
return Promise.reject(new Error(errorMessage));
else
return this.originalApplyEdits.apply(this, arguments);
};
... View more
07-21-2025
10:02 AM
|
0
|
0
|
167
|
POST
|
Unfortunately, the print widget will not include symbology for GraphicsLayer instances. However, you can achieve this by using a client-side FeatureLayer instead. See more info in this sample, and under the documentation here (click "Read more" under the section "Creating a FeatureLayer" and scroll down to the "Add an array of client-side features" subsection).
... View more
07-15-2025
06:12 PM
|
1
|
0
|
120
|
POST
|
An ugly but effective way to intercept a function call prior to its execution is to store a reference to the function, override it with your custom processing, and then call the original function at the end like so: var featureLayer = new FeatureLayer({
//etc
});
featureLayer.originalApplyEdits = featureLayer.applyEdits;
featureLayer.applyEdits = function(edits, options) {
//do whatever you want to the "edits" object
return this.originalApplyEdits.apply(this, arguments);
};
... View more
07-10-2025
05:24 PM
|
0
|
1
|
227
|
POST
|
You can disable the snapshot behavior by adding this prior to loading the SDK: <script type="text/javascript">
window.esriConfig = {
has: {
"featurelayer-snapshot-enabled": !1 // disable snapshot
}
};
</script> For example, in your codepen, you'd add it before this line: <script src="https://js.arcgis.com/4.32/"></script> I don't think I've seen any official documentation for this functionality, but it gets mentioned somewhat casually from time to time, like here and here. My two cents on this particular issue: Esri would do well to allow developers to make this decision on a layer-by-layer basis similar to how it was done in 3.x.
... View more
07-10-2025
05:09 PM
|
0
|
2
|
391
|
POST
|
The Sketch widget overrides the value of availableCreateTools supplied in the constructor. Whether that's a bug or not is debatable (I would suggest that it is), but whatever the case, you should be able to set it after the constructor instead: sketch = new Sketch({
layer: graphicsLayer,
view: view,
creationMode: "update"
});
sketch.availableCreateTools = ["point", "polyline", "rectangle", "freehandPolygon", "multipoint", "freehandPolyline", "polygon"];
... View more
06-04-2025
04:46 PM
|
0
|
0
|
191
|
POST
|
You can probably achieve the desired behavior by using the goTo method of the MapView. For example: mapView.goTo({
target: point,
zoom: 16
});
... View more
06-04-2025
04:27 PM
|
0
|
0
|
179
|
POST
|
Setting resultGraphicEnabled in the sample with 4.31 works as well...
... View more
05-15-2025
05:27 PM
|
1
|
0
|
647
|
POST
|
My bad, just saw you were using 4.31. I'll check the samples with that version.
... View more
05-15-2025
05:24 PM
|
0
|
1
|
647
|
POST
|
It does sound like a bug, but since it works in the samples, I'm not sure what to say about it. Are you also using 4.32? The code I gave is the "autocast" syntax, so should work without the constructor: const invisible = {
type: "simple-marker",
style: "square",
color: [0, 0, 0, 0],
size: "8px",
outline: {
color: [0, 0, 0, 0],
width: 1
}
};
sources.forEach(searchSource => {
searchSource.resultSymbol = invisible;
}); I'm not certain it'll make a difference, but may be worth a try. Other things would be to delete your temporary internet files (i.e. clear your cache), and user your browser's developer tools to ensure you see the latest code, and it's actually being executed by placing breakpoints, etc.
... View more
05-15-2025
05:22 PM
|
0
|
2
|
647
|
Title | Kudos | Posted |
---|---|---|
1 | 08-11-2025 04:29 PM | |
1 | 07-15-2025 06:12 PM | |
1 | 07-23-2025 09:24 AM | |
1 | 07-25-2025 04:50 PM | |
1 | 07-21-2025 11:14 AM |