|
POST
|
Can you provide a codepen showing the issue? https://codepen.io/ No way to tell without seeing it in action. It could be a bad geometry, spatial reference mismatch, or something else.
... View more
05-02-2022
07:16 AM
|
0
|
0
|
3111
|
|
POST
|
Are you storing an instance of the Widget or Map in Vuex? You can't do that because Vuex wraps objects in native Proxy (nexted Proxies) and that will break our Accessor in the API. You can store the JSON instance of values or other things are interested in, but JSAPI instances. Here is a sample Vue application that uses Pinia (similar to Vuex) and only manages non-JSAPI data https://github.com/odoe/nearby-app
... View more
05-01-2022
01:20 PM
|
0
|
0
|
1950
|
|
POST
|
Please look at the documentation for the 4x FeatureTable https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html It looks like you are trying to move from 3x to 4x and that would be a complete rewrite of your application. I don't think you can filter out characters like you are looking for in the FeatureTable. I would think it would be part of FieldColumnConfig, but doesn't look like it. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html Maybe using an Arcade expression on the layer and defining filter the fields displayed in the table.
... View more
04-30-2022
08:11 AM
|
0
|
0
|
1096
|
|
POST
|
It looks like they converted all the data to vector tiles, so they're not loading the raw geosjon. Same idea, just a different format.
... View more
04-29-2022
09:14 AM
|
0
|
1
|
3479
|
|
POST
|
I checked that dataset and it is huuuge. You don't need to set the geometryType, GeoJSONLayer will figure it out, but the actual geojson takes a looong time to load. I was able to verify it changing the limit parameter to 1000. I could see some lines to verify that it's working. The GeoJSONLayer doesn't have a way to paginate over the results to try and stream them in. This is probably a case where it's better to download the GeoJSON and upload as a hosted FeatureService due to the sheer size. That dataset is still downloading on my machine, but this would definitely be a better candidate as a featureservice, because at that point we can take advantage of feature tiles, generalizing the geometries, and make it much more performant than raw geojson. Unless you can limit the results vie a where clause on the API, that's the route I would recommend.
... View more
04-29-2022
08:43 AM
|
0
|
3
|
3484
|
|
POST
|
This one is going to require a little bit of work to find what data you want, but can be done. Looking at the opendata console, you can request results as geojson and use the GeoJSONLayer. I think you would first want to pull in the datasets you are interested in. The API supports where clauses and other SQL queries, so you can limit to what you are interested in. Once you do that, you can grab. a dataset_id. I'm not familiar with this, but they look like long strings with domains maybe? Not sure that's what you're looking for, but it gets you to the next step. This will give you the URL you can use to download the data in GeoJSON. https://data.opendatasoft.com/api/v2/catalog/datasets/zones-tendues-et-tres-tendues@dila/exports/geojson?select=*&limit=-1&offset=0&timezone=UTC Then you can use a GeoJSONLayer with customParameters to load it. https://codepen.io/odoe/pen/KKQPejP?editors=100 const geojsonLayer = new GeoJSONLayer({
url: url, // no parameters in this URL
customParameters: {
select: "*",
limit: "-1",
offset: "0",
timezone: "UTC"
},
copyright: "OpenDataSoft",
renderer: renderer
});
... View more
04-29-2022
07:21 AM
|
0
|
0
|
3491
|
|
POST
|
Update your import syntax to import from the projection module. import * as projection from "@arcgis/core/geometry/projection"; Per here: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html That should fix you all up!
... View more
04-29-2022
06:47 AM
|
0
|
0
|
1748
|
|
POST
|
If you have a sample github repo, could take a look. Not enough info to tell.
... View more
04-28-2022
07:44 AM
|
0
|
2
|
2002
|
|
POST
|
You don't need a typed Collection Collection.ofType(FeatureLayerView) When you do this, the Collection will try to initialize the added object as a new FeatureLayerView() and that doesn't work because it's already a class. If this is for TypeScript, you can do this. const featureLayersViews = new Collection<FeatureLayerView>();
... View more
04-26-2022
10:48 AM
|
0
|
0
|
910
|
|
POST
|
You should only need to use esriId.destroyCredentials() Don't try to manually remove cookies or session storage, that could be causing an issue when the IdentityManager tries to clean up. This app is a little older, but does this https://github.com/Esri/nearby-javascript Do you have a sample app showing this behavior? ArcGIS JSAPI version? Browser version? OS?
... View more
04-25-2022
07:34 AM
|
0
|
1
|
1642
|
|
POST
|
Like @UndralBatsukh said, hitTest for 4.24 will act on the actual symbol marker, with a slight tolerance. We don't have a list of updated modules these updates are in, as it could span multiple modules. As stated, if you have a repro showing what the expected behavior should be versus what it is that could help narrow down the issue during this release cycle.
... View more
04-22-2022
08:29 AM
|
0
|
0
|
2375
|
|
POST
|
The SketchViewModel state does change. It looks like while it's active, the view "click" event can't be captured. This is probably due to the introduction of snapping over the previous releases. If you update your code like this, it works. https://jsitor.com/oBfmc8eSf if (event.state === "complete") {
if(event.graphic.geometry.type === "point") {
params.returnGeometry = true;
params.geometry = event.graphic.geometry;
params.mapExtent = view.extent;
identifyTask.execute(params)
.then(function (response) {
var results = response.results;
let feature = results.map(function (result) {
var feature = result.feature;
var layerName = result.layerName;
feature.attributes.layerName = layerName;
return feature;
});
if (feature && feature[0]) {
sketchGeometry = feature[0].geometry;
runQuery();
}
})["catch"](promiseRejected);
... If you need to do something when the SketchViewModel state is active, you can do something like this. sketchViewModel.watch("state", (state) => {
if ("active" === state) {
// stuff
}
}); You just need to refactor a little bit.
... View more
04-21-2022
06:49 PM
|
1
|
1
|
1977
|
|
POST
|
It looks like the MapView click event is superseded by Sketch events, so when you try to set the point for your identity geometry it doesn't get set, and you're ternary check for it doesn't pass, so you never actually call the Identify. You could grab the geometry of the graphic from the sketch params.geometry = event.graphic.geometry Then you can rework how that click handler works
... View more
04-21-2022
03:41 PM
|
0
|
3
|
2010
|
|
POST
|
You have two options Layer.fromArcGISServerUrl https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fromArcGISServerUrl Or using Layer.fromPortalItem https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fromPortalItem The root on the service will give you the itemId I even did a video on this
... View more
04-21-2022
01:14 PM
|
0
|
0
|
1135
|
|
POST
|
This would require a full rewrite of your application. Here is a guide to help in the process. https://developers.arcgis.com/javascript/latest/migrating/ It should be noted, that depending how you built your original application and it's complexity, if your application is using the 3x CDN, you can probably continue to use the 4x CDN. However, if you were using the Dojo build tools to build your application, that process is deprecated for 4x. We recommend you use some modern build tools as shown in this sample repo. https://github.com/Esri/jsapi-resources/tree/master/esm-samples
... View more
04-19-2022
08:33 PM
|
1
|
0
|
2998
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 2 | a month ago | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM | |
| 1 | 12-31-2025 09:05 AM |
| Online Status |
Online
|
| Date Last Visited |
2 hours ago
|