|
POST
|
That json is just an item that lives in ArcGIS Online. That won't change, and I think style updates are done as new items, so yes it's constant. Can you accomplish the same thing with the VT Style Editor? You can create your own style to use in your apps, and if you need to finetune it, you can edit the JSON in the editor. https://developers.arcgis.com/vector-tile-style-editor
... View more
05-09-2022
06:32 PM
|
1
|
3
|
2907
|
|
POST
|
It looks like you're tying to initialize a layer with the query endpoint of a URL. You don't need to do that. Pass the URL with the index and define your query in the definitionExpression instead. This tutorial might be helpful as it shows how to apply SQL expressions to the deinfitionExpression of a layer. https://developers.arcgis.com/javascript/latest/filter-a-feature-layer-with-sql/
... View more
05-05-2022
10:40 AM
|
0
|
0
|
1737
|
|
POST
|
The JSAPI doesn't have anything other than Expand for something like this. This is more of an app level utility. I don't think calcite components have a close button either, but you can put some together with them. https://developers.arcgis.com/calcite-design-system/
... View more
05-04-2022
12:30 PM
|
0
|
0
|
1149
|
|
POST
|
Is something like this what you're looking for? https://developers.arcgis.com/javascript/latest/sample-code/view-disable-zoom/ StoryMaps uses this.
... View more
05-03-2022
07:19 AM
|
0
|
0
|
1462
|
|
POST
|
You might need to update your browser list as described here. https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app#misc Edit 1: Nevermind, looking at your project, I see you did. I can look at this later today. Edit 2: I don't know, your repro app works fine. I tried with yarn and npm, no issues. Does this happen on a particular browser/os? I tested on Mac with Chrome, FF, and Safari.
... View more
05-03-2022
05:12 AM
|
1
|
2
|
2802
|
|
POST
|
When you use your built component in your application (the npm package) are you also using the ArcGIS JSAPI in your app? If so, you can't mix JSAPI instances in your app with your component. You'll see errors regarding the Accessor. This is equivalent to trying to create a MapView using @arcgis/core and loading a Map created with the CDN. It won't work. You can publish your component without including the JSAPI in your build, and let the build tools handle it in your app. I do something similar with this published utility library (https://github.com/odoe/explode).
... View more
05-02-2022
08:59 AM
|
1
|
1
|
2109
|
|
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
|
3389
|
|
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
|
2146
|
|
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
|
1206
|
|
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
|
4096
|
|
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
|
4101
|
|
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
|
4108
|
|
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
|
1945
|
|
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
|
2198
|
|
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
|
1006
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM | |
| 2 | 04-21-2026 07:06 AM | |
| 1 | 02-27-2026 06:31 AM |
| Online Status |
Online
|
| Date Last Visited |
8 hours ago
|