|
POST
|
Hi Bob, it seems like this is a duplicate post. let's move the accuracy discussion to this other thread => https://community.esri.com/t5/arcgis-api-for-javascript-questions/poor-accuracy-of-locate-widget/m-p/1192491#M77928
... View more
07-15-2022
02:55 PM
|
0
|
0
|
3215
|
|
POST
|
Hi @BobCowling2 thanks for reaching out, can you please open a support ticket? That way they can gather all the necessary information from your set up. The bouncing around might be related to spurious location values not being filtered out.
... View more
07-15-2022
08:45 AM
|
1
|
6
|
3063
|
|
POST
|
Hi @DamonDamon here are Mozilla's guidelines for trying to address problems similar to yours: https://support.mozilla.org/en-US/kb/upgrade-graphics-drivers-use-hardware-acceleration. Have you looked into this?
... View more
07-11-2022
10:49 AM
|
0
|
4
|
7565
|
|
POST
|
Hi All, Please provide a simple GitHub repo that reproduce these errors so that we can investigate your issue. We recommend you start with one of our ES modules samples: https://github.com/Esri/jsapi-resources/tree/master/esm-samples. "unexpected token" errors are very common in JavaScript. It's related to a parsing error in the code. With JavaScript frameworks, this is most commonly caused by configuration issues.
... View more
07-11-2022
07:41 AM
|
0
|
4
|
9379
|
|
POST
|
@turbolego can you share your package.json and tsconfig here? Also, please retest using the .browserslistrc file I link to above, and then try setting your tsconfig to target ES2020.
... View more
07-05-2022
08:55 AM
|
0
|
0
|
9432
|
|
POST
|
Hi @Anirban_Banerjee we recommend using ES modules "@arcgis/core" with new React projects rather than esri-loader. Here is a working example: https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app.
... View more
07-05-2022
07:42 AM
|
0
|
1
|
2655
|
|
POST
|
@turbolego thanks for sharing, we'll look into this further. I'm not liking that you had to downgrade your JS API version to get it to work.
... View more
07-05-2022
07:09 AM
|
0
|
1
|
9443
|
|
POST
|
Hi @turbolego those errors seem to be showing a configuration issue in Angular and not an issue with arcgis/core. Did the app work with a previous version of arcgis/core? We'll need a simple a GitHub repo that reproduces the issue. Also, check your TSConfig and browserslistrc. Here's the browsers list from our Angular 11 sample (~early 2021, v4.19) https://github.com/Esri/jsapi-resources/blob/9b4b278c2611f413fdfaa8c880177052fda9e336/esm-samples/jsapi-angular-cli/.browserslistrc and tsconfig https://github.com/Esri/jsapi-resources/blob/9b4b278c2611f413fdfaa8c880177052fda9e336/esm-samples/jsapi-angular-cli/tsconfig.json
... View more
07-01-2022
07:38 AM
|
0
|
1
|
9542
|
|
POST
|
@MikeVare you able to reproduce the issue with this codepen: https://codepen.io/andygup/pen/LYdYybe?
... View more
06-28-2022
09:08 AM
|
0
|
0
|
536
|
|
POST
|
Correct, we measure a variety of stats including the size of the entire build folder for each of the samples. A 1GB folder could the the result of things like configuration issues, third party libraries, a very large and complex application, lots of image files, etc.
... View more
06-16-2022
01:44 PM
|
1
|
0
|
3242
|
|
POST
|
@JamesBrett Nope, that doesn't sound right. Can you provide a simple github repo that we can look at? Here are our sample app build sizes for comparison: https://github.com/Esri/jsapi-resources/blob/master/esm-samples/.metrics/4.23.0.csv
... View more
06-16-2022
01:36 PM
|
0
|
2
|
3244
|
|
POST
|
I also updated my previous code snippet to hopefully make the pattern more clear.
... View more
06-06-2022
07:36 AM
|
0
|
1
|
1704
|
|
POST
|
Oh, whoops, you have to import the module first, here's a working AMD codepen example: https://codepen.io/andygup/pen/rNJrbzM?editors=1000. <html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link
rel="stylesheet"
href="https://js.arcgis.com/4.23/esri/themes/light/main.css"
/>
<script src="https://js.arcgis.com/4.23/"></script>
<script>
require(["esri/Map",
"esri/views/MapView",
"esri/core/reactiveUtils"], (Map, MapView, reactiveUtils) => {
const map = new Map({
basemap: "topo-vector"
});
const view = new MapView({
container: "viewDiv",
map: map,
zoom: 4,
center: [15, 65]
});
const handle = reactiveUtils.when(
// getValue function
() => view.updating === false,
// Callback function
() => {
console.log("view update: ", view.updating);
}
);
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html> With ES modules the import pattern would look like this: import { when } from "esri/core/reactiveUtils";
when(() => item.layer.visible === true, () => layerListFormat(item));
when(() => item.layer.visible === false, () => layerListFormat(item));
... View more
06-06-2022
07:31 AM
|
0
|
2
|
1704
|
|
POST
|
We are updating the docs for 4.24. This might help in the meantime: // watchUtils
watchUtils.whenTrue(foo, "some.value", () => console.log("True"));
watchUtils.whenFalse(foo, "some.value", () => console.log("False"));
// Equivalent in reactiveUtils
reactiveUtils.when(() => some.value === true, () => console.log("True"));
reactiveUtils.when(() => some.value === false, () => console.log("False"))
... View more
06-02-2022
06:41 AM
|
1
|
0
|
1769
|
|
POST
|
Oh, one more thought. Even if it is a life-cycle issue related to something like a Symbol.iterator, we'd still need a repro case to figure out what part of the API might be choking.
... View more
05-27-2022
12:22 PM
|
0
|
0
|
1702
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 08-01-2025 06:20 AM | |
| 1 | 05-27-2025 12:39 PM | |
| 1 | 04-23-2025 06:56 AM | |
| 1 | 04-23-2025 07:09 AM | |
| 1 | 04-08-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-05-2025
07:24 AM
|