|
POST
|
Hi there, I just want to give you a quick on this. We fixed this issue at JS API version 4.22. This version will be released end of December. The popup will display for all overlapping features without you having to do anything once you migrate to 4.22. Thanks, -Undral
... View more
11-19-2021
01:57 PM
|
0
|
0
|
7401
|
|
POST
|
Hi there, This sounds like a legitimate bug. Will test locally and create an issue to fix it. I will let you know when it is fixed. I also want to point out that GeoJSONLayer will not be editable by default starting at version 4.22. You will need to set its editingEnabled property to true to edit your geojson features. -Undral
... View more
11-16-2021
10:43 AM
|
2
|
0
|
6530
|
|
POST
|
Hi there, Until versions up to 4.21, The GeoJSONLayer expects the id property of the feature object in the GeoJSON to be of type number. Other data types are not honored. It is stated in known limitations section of the GeoJSONLayer document. However, starting at version 4.22, GeoJSONLayer supports string and number feature ids for the ObjectID field. You can test this using our next build which shows what's coming at 4.22. This simple test app shows that this can now be done at the JS API version 4.22. The version 4.22 will be released end of December. Hope this helps, -Undral
... View more
11-10-2021
08:43 AM
|
0
|
0
|
4908
|
|
POST
|
You don't have to do anything. The GeoJSONLayer uses esriRequet to fetch the data. If your url query params are more 2000 characters, the esriRequest switches to post automatically. So the GeoJSONLayer will fetch the data no matter how long the url is.
... View more
11-03-2021
08:18 AM
|
0
|
0
|
2352
|
|
POST
|
Hi there, The esriRequest automatically switches to POST if URL is too long. The maxUrlLength controls when requests switch to POST. So you don't have to anything. 🙂 Hope this helps, -Undral
... View more
11-01-2021
09:03 AM
|
1
|
1
|
2368
|
|
POST
|
Hi there, At version 4.22, GeoJSONLayer will support customParameters property where you can set your custom query parameters. GeoJSONLayer will also be a refreshable layer. For example, you can change the customParameters of your GeoJSONLayer at runtime and call refresh method. This will update the layer's data at runtime. You can test this using our next build. This codepen app shows customParameters and refresh in action. The JS API 4.22 version will be released end of December 2021. Hope this helps, -Undral
... View more
10-29-2021
08:34 AM
|
3
|
1
|
2400
|
|
POST
|
Hi there, The customParameters is not supported on VectorTileLayer so setting it on the layer won't help. However, the before interceptors will work. If you are being asked to login that means you still have urls that need to have the token attached. You can look in the network tab to see where it's being sent and which response says it needs a token. Copy those urls and add them to the interceptor urls. Your vector tiles will display without a login promo, once all urls requiring tokens are added to the interceptor urls. I have tested and verified that it works as expected. Here is my simple test (token is already expired in this case) and I am adding vector tiles from a protected portal item however the service itself is publicly accessible (so I don't have to add urls for the service). const interceptor = {
urls: [
"https://www.arcgis.com/sharing/rest/content/items/92499d146008498091eed0ffaa4b09d5"
],
before({ url, requestOptions }) {
requestOptions.query.token = "10ilTU8DrsMBMrmj2kApv1pkhFn0MS1OhjNoAzFWU7DUeQufPC9xNj-4lDd0Di1MTSHzwzPKwDdDiE1gDRcXTAxWsFVyCbVoFsChB_9Ez1C6NSqkRE3mftygP_2zW3KEDrmRw87zcwFxezZ9Q9SW0AxlxOeVAZf1o0G5wSwvF11J8jRovtfqunLunkjXQiFFViTKgnDM5NbOc7TAU5uyUes3piH5FCWxts36StJUMAw.";
}
};
esriConfig.request.interceptors.push(interceptor);
const map = new Map();
// Make map view and bind it to the map
const view = new MapView({
container: "viewDiv",
map: map,
center: [-98.5795, 39.8282],
zoom: 3
});
const tileLayer = new VectorTileLayer({
portalItem: {
id: "92499d146008498091eed0ffaa4b09d5"
}
});
map.add(tileLayer); Hope this helps, -Undral
... View more
10-12-2021
09:33 AM
|
1
|
1
|
3870
|
|
POST
|
Hi there, So the GeoJSONLayer creates date fields if the GeoJSON feature properties contain unix/epoch timestamp. In your case, feature property contains ISO 8601 strings. So you will need to: Intercept your data after it is fetched. Loop through the GeoJSON features Get the ISO value from the feature Parse a unix/epoch timestamp from the ISO value Create a new property of the feature and assign the new epoch timestamp Then in your GeoJSONLayer constructor Set fields property. Fields can only contain the property that has the unix timeStamp and set the field type to date. Set timeInfo property as you shown above. But for the field use the field you created in the step above. This test app shows everything I listed above. However, this app needs to be updated when you upgrade to 4.22 or above versions. At 4.21, when you intercept the geojson request, the geojson data is returned as array buffers, so you will have to decode those array buffers at 4.21. At 4.22, we are changing this behavior. We updated the request flow of workers so that an after interceptor receives the expected data type. This means after interceptors that were expecting array-buffers for client-side layers such as GeoJSONLayer and CSVLayer will receive the expected data types json or text. At the very end of this test app, I added an after interceptor function that will work at 4.22. Lastly, we will update the doc for GeoJSONLayer.timeInfo property to show the workflow we talked about in this discussion. Hope this helps, -Undral
... View more
10-07-2021
10:34 AM
|
1
|
2
|
3804
|
|
POST
|
Hi there, This is supported and should work. I do see couple of issues in your paint properties json... All property names should be surrounded by double quotes (") and also the color names should be surrounded by double quotes. JSON does not accept single quotes ('). So please try changing your json to the following and it should work. var fill ={
"property": "myAttribute",
"default": "red",
"stops": [
[0 , "#a1a1a1"],
[10000, "#ccece6"],
[200000, "#99d8c9"],
[500000, "#66c2a4"],
[1000000, "#2ca25f"],
[15000000, "#006d2c"],
]
} This test app shows how to change circle-color paint properties the same way you want to change and it is working. I added two buttons to the app... One button shows how to use setPaintProperties and the other button uses setStyleLayer method to change the style properties. Hope this helps, -Undral
... View more
09-30-2021
10:32 AM
|
0
|
2
|
2306
|
|
POST
|
Hi there, Are you using 4.x api? If so then you can enable: FeatureTable.editingEnabled to true. This SDK sample shows you how to enable an editing on a layer: https://developers.arcgis.com/javascript/latest/sample-code/widgets-featuretable-editing/ Hope this helps, -Undral
... View more
09-07-2021
09:30 AM
|
1
|
1
|
1522
|
|
POST
|
Hi there, Looks like you need to pass in "square-kilometers" as documented in the SDK doc: 3.x: https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#planararea 4.x: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#ArealUnits Hope this helps, -Undral
... View more
09-07-2021
09:24 AM
|
0
|
0
|
1578
|
|
POST
|
Hi there, @ReneRubalcava is 100% correct. Please use the FeatureLayer.queryExtent() to zoom to the full extent of all features stored in your client-side feature collection especially if the features are being added or removed. I will update the sample description accordingly since it is outdated. -Undral
... View more
09-03-2021
12:15 PM
|
0
|
0
|
3598
|
|
POST
|
Hi there, Hope I understand the question right. The JS API does not offer pre-set actions out of the box. Developers are responsible for creating their own custom actions. The sample @KenBuja provided shows how to create custom actions. -Undral
... View more
08-31-2021
11:30 AM
|
0
|
2
|
2711
|
|
POST
|
Hi there, This is a bug in the SDK sample. We will get this fixed in the sample. Thanks for bringing this issue to our attention, -Undral
... View more
08-30-2021
12:19 PM
|
1
|
0
|
2161
|
| 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
|