|
POST
|
Hi there, You can safely ignore the error. We will investigate where the issue comes from and make sure we properly process the error for it to not show up.
... View more
12-15-2022
09:19 AM
|
0
|
0
|
6479
|
|
POST
|
This simple codepen show how this can be done: https://codepen.io/U_B_U/pen/VwdJbBe?editors=100 and the below is the main code: const itemPanelDiv = document.createElement("div");
const sliderDiv = document.createElement("div");
sliderDiv.classList.add("esri-widget");
const slider = new Slider({
min: 0,
max: 1,
precision: 2,
values: [1],
visibleElements: {
labels: true,
rangeLabels: true
},
container: sliderDiv
});
slider.on("thumb-drag", (event) => {
const { value } = event;
item.layer.opacity = value;
});
const legendDiv = document.createElement("div");
legendDiv.classList.add("esri-widget");
const legend = new Legend({
view: view,
layerInfos: [
{
layer: item.layer
}
],
container: legendDiv
});
itemPanelDiv.append(sliderDiv, legendDiv);
item.panel = {
content: itemPanelDiv,
className: "esri-icon-collection",
open: true, //item.visible,
title: "title"
};
... View more
12-13-2022
09:57 AM
|
1
|
0
|
1820
|
|
POST
|
The await operators can only be used inside async functions. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await Or you can change the code the way you had it and use nested promises.
... View more
12-13-2022
09:39 AM
|
0
|
0
|
3767
|
|
POST
|
Hi there, So I tested client-side feature layer with polylines with Editor widget and I was not able to reproduce the behavior you described. Here is a simple codepen app I set up: https://codepen.io/U_B_U/pen/ExRBWpL?editors=1000
... View more
12-13-2022
09:08 AM
|
0
|
1
|
1793
|
|
POST
|
Hi there, This sample shows how it can be done: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=highlight-features-by-geometry From the button click you call the SketchViewModel.create() method and pass in the tool name you need as shown below. selectButton.addEventListener("click", () => {
sketchViewModel.create("rectangle");
});
... View more
12-13-2022
08:47 AM
|
0
|
1
|
1044
|
|
POST
|
Hi there, Have you tried customParameters property on WFSLayer?
... View more
12-13-2022
08:40 AM
|
0
|
1
|
1351
|
|
POST
|
Hi there, Sage is completely right. If the filter is applied to features that are outside of the current extent then these features are not available in the layer view. So you have to query the layer to get the extent. However, if you must use layerView for performance reasons... I think you can do the something like this. Run the queryExtent on LayerView and if the LayerView does not return an extent then run the queryExtent on the layer so this way you are getting features that are not available in the layer view. So you can do something like this. const query = {
where: layerView.filter.where,
returnGeometry: true,
};
let {extent, count} = await layerView.queryExtent(query);
if (count == 0){
let {extent, count} = await layer.queryExtent(query);
view.goTo(extent);
console.log("layer query extent")
} else {
view.goTo(extent);
console.log("layerview query extent");
}
... View more
12-12-2022
09:52 AM
|
2
|
1
|
3806
|
|
POST
|
Hi there, Perhaps I misunderstood your question. GeoJSONLayer.queryFeatures runs successfully and returns attributes of the features as expected as you can see here in this codepen: https://codepen.io/U_B_U/pen/ExRMoGB?editors=1000
... View more
12-08-2022
08:55 AM
|
0
|
0
|
1563
|
|
POST
|
Hi there, FeatureLayer.capabilities is a readonly property that lists what is possible with a given feature layer. You cannot edit someone's feature service unless otherwise the owner enabled editing for the service. You can created your own service and enable editing on the service. You can read about hosted feature service editing from here: https://doc.arcgis.com/en/arcgis-online/manage-data/manage-editing-hfl.htm/.
... View more
12-05-2022
12:02 PM
|
0
|
0
|
754
|
|
POST
|
Hi there, Could you please share your geojson url so that I can take a look at what might be going on? If you cannot share then would you mind sharing json for one feature from your geojson file?
... View more
12-05-2022
11:59 AM
|
0
|
0
|
1601
|
|
POST
|
Yes we do have plans add support for fetching all polyline and polygon features at once if they meet certain requirements. However, I do not know what the timeline is. I will be sure to update you once we add support for this.
... View more
12-02-2022
09:40 AM
|
0
|
0
|
3527
|
|
POST
|
Hi there, This appears to be a legit issue for ImageryTileLayer in SceneView. Thank you for reporting this issue and I will update you once we have a fix for this. -Undral
... View more
12-02-2022
09:29 AM
|
0
|
0
|
5667
|
|
POST
|
Hi there, The sample you referenced is not related to supportsCacheHint. At 4.19, we improved of performance of point FeatureLayers to fetch all its features at once from the server. Once loaded, the features won't need to be re-requested from the server, which will make future redraws after panning and zooming much faster. Point feature layer fetches all of its features at once if the following conditions are met: featureCount = 0-80,000, fetch all features featureCount = 80,001-400,000, fetch all features if view's initial extent is greater than 10% of the layer's data extent (i.e., if we are not super zoomed) The point feature layer will request features as needed (do not fetch all features) if 1. Point layer is editable 2. If layer.refreshInterval is set and lastEditDate is `undefined` in the metadata. The point layer referenced in the sample fetches all of features as once since it meets the requirements mentioned above. If you enabled caching on your enterprise service (caching always enabled for hosted feature services), the JS API will take advantage of the server caching as it makes tile query requests for display. Please review this document for more info about caching. If you are sending query requests from your app and the query params always the same you can set the cacheHint property on your query object. https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#cacheHint
... View more
12-02-2022
08:54 AM
|
1
|
1
|
3534
|
|
POST
|
ClassbreaksRenderer should work! Please feel free to share your code with me. You can also use RasterStretchRenderer for your cog. The following an example that works your cog. Please refer to this doc to learn more about stretching: https://pro.arcgis.com/en/pro-app/latest/help/data/imagery/histogram-stretching.htm const layer = new ImageryTileLayer({
renderer: new RasterStretchRenderer({
stretchType: "min-max",
statistics: [[-227, 50, -172, 19]],
useGamma: false,
computeGamma: false,
dra: false,
gamma: [1],
colorRamp: {
type: "multipart",
colorRamps: [
new AlgorithmicColorRamp({
algorithm: "hsv",
fromColor: [255, 45, 8, 255],
toColor: [255, 57, 251, 255]
}),
new AlgorithmicColorRamp({
algorithm: "hsv",
fromColor: [255, 57, 251,255],
toColor: [26,35,253,255]
}),
new AlgorithmicColorRamp({
algorithm: "hsv",
fromColor: [ 26, 35, 253, 255],
toColor: [ 0, 181, 255, 255 ]
}),
new AlgorithmicColorRamp({
algorithm: "hsv",
fromColor: [ 0, 181, 255, 255 ],
toColor: [ 0, 253, 255, 255 ]
}),
new AlgorithmicColorRamp({
algorithm: "hsv",
fromColor: [ 0, 253, 255, 255 ],
toColor: [ 0, 251, 50, 255 ]
}),
new AlgorithmicColorRamp({
algorithm: "hsv",
fromColor: [ 0, 251, 50, 255 ],
toColor: [ 255, 254, 52, 255 ]
}),
new AlgorithmicColorRamp({
algorithm: "hsv",
fromColor: [ 255, 254, 52, 255 ],
toColor: [ 255, 181, 61, 255 ]
}),
new AlgorithmicColorRamp({
algorithm: "hsv",
fromColor: [ 255, 181, 61, 255 ],
toColor: [ 255, 45, 8, 255 ]
}),
new AlgorithmicColorRamp({
algorithm: "hsv",
fromColor: [ 255, 45, 8, 255 ],
toColor: [ 190, 190, 190, 255 ]
})
]
}
}),
url: "data/cog/raster.tif",
});
... View more
12-01-2022
08:58 AM
|
1
|
1
|
4686
|
|
POST
|
So I uploaded the shameful to ArcGIS online and added the layer to the JS API test app. I tested both in SceneView and MapView and I do not see the behaviors you describe. Here is a codepen: https://codepen.io/U_B_U/pen/LYrJXXb?editors=100
... View more
11-30-2022
12:10 PM
|
0
|
1
|
3739
|
| 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
|