POST
|
Hi there, So we just fixed this issue and you will be able to test it out on our next version. Here is your app pointing to next version: https://codepen.io/U_B_U/pen/ExOWVgr?editors=1000 -Undral
... View more
02-05-2024
12:19 PM
|
1
|
0
|
1927
|
POST
|
Hi there, I am not exactly clear on what you are asking here. Seems like you are expecting to features on the map outside of your filter geometry? If so, then you would have to remove your filter geometry or move the filter geometry to the new location so that stream layer streams features within the filter geometry. StreamLayerView.queryFeatures() only returns results for features visible in View.
... View more
02-05-2024
10:10 AM
|
0
|
0
|
154
|
POST
|
No at all. It should work just the same. Do you have a repro case? This codepen shows class breaks renderer working with enterprise feature service: https://codepen.io/U_B_U/pen/abMKLLY?editors=100
... View more
02-05-2024
08:15 AM
|
0
|
0
|
275
|
POST
|
Hi there, No there is no automatic way of doing this if you disable popup. You have to use the layer view's highlight method to highlight as you already pointed out.
... View more
02-05-2024
08:02 AM
|
0
|
0
|
361
|
POST
|
Hi there, I did not quite exactly follow the issue you are reporting here. It seems like the problem is applyEdits performance when being called frequently? If so applyEdits method is not meant to be used with such high frequency. If you are updating feature frequently then consider using StreamLayer instead. This document talks about different ways of creating stream layer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#creating-a-streamlayer
... View more
02-02-2024
10:06 AM
|
0
|
0
|
447
|
POST
|
The definitionExpression does work for your service. Looks like it is a really small road - https://codepen.io/U_B_U/pen/abMYXbG?editors=1000
... View more
02-01-2024
06:10 PM
|
1
|
0
|
609
|
POST
|
Hi there, VectorTIleLayer hitTest will only be supported in 2D MapView at version 4.29. We will definitely add support it in 3D SceneView. Hopefully sooner than later.
... View more
02-01-2024
06:03 PM
|
0
|
1
|
1985
|
POST
|
Hi Michael, It is not fixed. I will update you when we have a fix.
... View more
02-01-2024
07:04 AM
|
1
|
3
|
2013
|
POST
|
Hi there, That definitionExpression looks valid to me. Is it possible for you to shrare your data with me so I can take a look? The following example works. const view = new MapView({
container: "viewDiv",
map: map,
center: [-122.907, 47.018],
zoom:12
});
const featureLayer = new FeatureLayer({
url: "https://data.wsdot.wa.gov/arcgis/rest/services/Shared/LocalAgencyPublicRoadData/FeatureServer/0",
definitionExpression: "RoadName = 'Columbia St NW'"
});
... View more
01-31-2024
07:05 AM
|
0
|
1
|
677
|
POST
|
Hi there, According to this doc, you can only access the places service if you have an ArcGIS Developer account. ArcGIS Online accounts are not supported. You also need to enable to the Places service for your api key. To do it, edit your API key and enable Places service. Then try our the places tutorial
... View more
01-30-2024
04:07 PM
|
0
|
1
|
573
|
POST
|
Hi there, I updated the features widget sample to allow users select features from a layer using a rectangle user draws on the map and display the popup info in Features widget. Hope you can use as a starting point: https://codepen.io/U_B_U/pen/JjzpNjx?editors=1000 The main part to pay attention to is the following, where you query the features from the layer view once user provides the spatial geometry. Then to pass the filtered features to the Features widget's features property when calling its open method. layerView.queryFeatures(query).then((results) => {
if (results.features.length === 0) {
return;
} else {
featuresWidget.open({
location: event.mapPoint,
features: results.features
});
}
});
... View more
01-30-2024
09:01 AM
|
0
|
1
|
430
|
POST
|
Hi there, You could do this with the use of client-side StreamLayer. This sample shows you how you can do this.
... View more
01-25-2024
07:17 AM
|
1
|
1
|
411
|
POST
|
Hi there, Do you have data with two date fields like opening and close dates? If so then you can filter your data based on the closing dates whenever timeSlider.timeExtent changes as shown below: timeSlider.watch("timeExtent", () => {
const closedDate = timeSlider.timeExtent.start.getTime();
const where = `perimeterdatetime = ${closedDate}`;
layerView.filter = new FeatureFilter({
where
});
}); The following demo app shows how it can be done. Here is the live app:https://ubatsukh.github.io/arcgis-js-api-demos/devsummit2021/fire-perimeter/ Here is the code: https://github.com/ubatsukh/arcgis-js-api-demos/tree/master/devsummit2021/fire-perimeter Hope this helps
... View more
01-24-2024
08:21 AM
|
2
|
1
|
316
|
POST
|
Hi there, You mean something like this? https://codepen.io/U_B_U/pen/oNVGzqX?editors=1000
... View more
01-24-2024
08:13 AM
|
0
|
0
|
252
|
POST
|
Hi there, You could listen to the pointer-up event on the timeSlider div to achieve what you are trying to do. Here is a codepen showing how it is done. https://codepen.io/U_B_U/pen/abMJdaL?editors=1000 The following is the how you can do it. document.getElementById("timeSlider").addEventListener("pointerup",(event) => {
console.log("here is your time extent", timeSlider.timeExtent);
}); You could also debounce when watching timeExtent using the debounce function technique mentioned in this article: JavaScript Debounce Function (davidwalsh.name) Hope this helps, -Undral
... View more
01-16-2024
03:11 PM
|
1
|
0
|
539
|
Title | Kudos | Posted |
---|---|---|
1 | a week ago | |
1 | a month ago | |
1 | a month ago | |
1 | 08-27-2024 09:08 AM | |
1 | 08-20-2024 09:04 AM |
Online Status |
Online
|
Date Last Visited |
2 hours ago
|