|
POST
|
In addition, no dojo libs are part of the 4.25 CDN anymore. https://developers.arcgis.com/javascript/latest/release-notes/#removal-of-non-esri-packages-from-cdn The release notes show how you can use 4.24 CDN dojo libs if needed, but they no longer ship with ongoing releases.
... View more
02-22-2023
07:01 AM
|
2
|
2
|
3364
|
|
POST
|
Since this is react, if you could provide a stackblitz or codesandbox, maybe a github repo. If you could simplify it down to reproducing without react in a codepen, even better. But other than that, no way to tell what the issue is.
... View more
02-17-2023
07:19 AM
|
1
|
0
|
959
|
|
POST
|
4.25 is built with calcite-components 1.0.0-beta.97. The next release, will be built with calcite ~1.0.5. You can try it now in the "next" build before release. https://www.npmjs.com/package/@arcgis/core/v/4.26.0-next.20230213
... View more
02-14-2023
07:18 AM
|
1
|
0
|
1217
|
|
POST
|
That sample is incredibly outdated at this point, and the material lib used is now deprecated. This demo app use nextjs and redux https://github.com/odoe/jsapi-nextjs This demo app uses nextjs, trpc, tailwind https://github.com/odoe/arcgis-create-t3-app And we have a more basic React application too https://github.com/Esri/jsapi-resources/tree/main/esm-samples/jsapi-react These samples are much more representative of modern react apps
... View more
02-13-2023
07:31 AM
|
0
|
0
|
1333
|
|
POST
|
There is a lot going on in that sample, but if I had to guess, it's because you are calling the result of your ajax request "fl", and calling the FeatureLayer "fl", shadowing the variables. That's just a guess, the sample doesn't run as-is due to some other issues.
... View more
02-08-2023
07:01 PM
|
0
|
1
|
4730
|
|
POST
|
Does your PopupTemplate have a title property? If it doesn't, you get this "Untitled" text for the summary row. You can review this sample to help. https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featurereduction-cluster
... View more
02-08-2023
02:19 PM
|
1
|
0
|
1315
|
|
POST
|
If you can provide a sample in codepen or similar, it would help. Could be the layer, but no way to tell. https://codepen.io/
... View more
02-08-2023
08:11 AM
|
0
|
3
|
4745
|
|
POST
|
Looks like this is an issue with calcite, and not the Maps SDK. According to this issue, the fix is available in 1.0.4-next.4 release. https://github.com/Esri/calcite-components/issues/6310 So you can try the calcite "next" build for now until the next production release.
... View more
02-06-2023
08:07 AM
|
1
|
1
|
2584
|
|
POST
|
4.25 was built using 1.0.0-beta.97, lots of changes to version 1.0.3. Are there particular widgets you are using that cause this error? The "next" version of the API uses calcite-components 1.0.3, can you try that and see if the error persists? https://www.npmjs.com/package/@arcgis/core/v/4.26.0-next.20230205?activeTab=explore
... View more
02-05-2023
04:45 PM
|
1
|
3
|
2859
|
|
POST
|
This sample shows how to use the layer as a search source. There are other options you need to set, like what fields to search and stuff. https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/
... View more
02-01-2023
07:24 AM
|
0
|
0
|
1967
|
|
POST
|
That is a TypeScript typing issue. TypeScript doesn't type autocasted properties, so you need to instantiate it as an instance of the SearchSource. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html sources: [new SearchSource({ layer, ...otherstuff })] Might need to instantiate some other stuff to make TypeScript happy.
... View more
01-31-2023
01:51 PM
|
0
|
2
|
1995
|
|
POST
|
You can manually create the DOM elements and add them to the custom content of your popup, which would be the recommended way to do something like this. https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#content popupTemplate: {
title: "{name}",
content: [
{
type: "custom",
outFields: ["*"],
creator(event) {
const elem = document.createElement("div");
const btn = document.createElement("button");
btn.innerText = event.graphic.attributes.name;
btn.addEventListener("click", () => {
alert(event.graphic.attributes.description);
});
elem.appendChild(btn);
return elem;
}
}
]
} https://codepen.io/odoe/pen/QWBVKMM?editors=0010
... View more
01-30-2023
09:35 AM
|
0
|
0
|
3806
|
|
POST
|
Not able to replicate in the samples or a codepen, so I think it's going to depend on what this.myfunction() is doing. You might be trying to access properties that are still changing, or maybe something with the view. If you can provide a repro demo in codepen or github, could have a better idea.
... View more
01-30-2023
06:49 AM
|
0
|
0
|
1027
|
|
POST
|
Highlight is a method on the LayerView, so you need a reference to the LayerView that your features come from. https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#highlight You get a reference to the LayerView for each layer using the view.whenLayerView method. https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#whenLayerView Then you can use the layerView to highlight the features you are interested in. Here is one of a few samples that show how to use highlight https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-feature-multiplelayers
... View more
01-27-2023
06:54 AM
|
1
|
0
|
1838
|
|
POST
|
The KMLLayer doesn't parse KML via the client, it sends the KML url to a utility service that parses it into features and returns those results, so passing a KML blob won't work. The KML url has to be accessible by the utility service. Per the documentation. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html The KMLLayer uses a utility service from ArcGIS.com, therefore your kml/kmz files must be publicly accessible on the internet.
... View more
01-24-2023
08:59 AM
|
2
|
0
|
1818
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 2 | 3 weeks ago | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM | |
| 1 | 12-31-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|