|
POST
|
Sorry, we only provide minified. If you can give us specifics and an error message we might be able to help troubleshoot.
... View more
01-24-2022
10:10 AM
|
0
|
1
|
1461
|
|
POST
|
I'm a little confused - the comments above mention using https://www.npmjs.com/package/arcgis-js-api but the sample is using https://www.npmjs.com/package/@arcgis/core? Also, what were you using previously that only had 19 files on-disk, that sounds like you might have been using esri-loader which is CDN-based. Can you share a github repo? Check out our Angular 13 sample: https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli. I'm seeing 208 files and 8.5MB on-disk. Note, not all of these files are being used on initial application load.
... View more
01-20-2022
08:36 AM
|
0
|
0
|
1132
|
|
POST
|
Hi @gryffs this sounds like a component life-cycle issue and those can be a bit tricky. If you comment out line 86 does everything work correctly? I'm not sure what the dependencies are but that seemed like a good starting point.
... View more
01-18-2022
08:17 AM
|
0
|
1
|
21892
|
|
POST
|
Okay, thanks for the repo. What's going on has to do with CSS precedence and specificity, as well as Angular component life-cycle and encapsulation, so it's a little tricky. The important difference between the Angular component and the Popup is that the ArcGIS API's Popup is not a member of your Angular component when the component is initialized. Popup pulls its CSS from the ArcGIS CDN assets which are loaded after the component's CSS, and by default are pulled from here https://js.arcgis.com/4.22/@arcgis/core/assets/esri/themes/light/main.css. You can see this request in the developer console's Network tab. There are several ways to address this issue. You identified one of them - use a global CSS to override styles. You can also host the ArcGIS assets locally and create your own custom Sass-based theme. Here are a few links: Working with local assets Custom CSS with Sass Angular life-cycle hooks Angular component styles Did that help?
... View more
01-13-2022
05:17 PM
|
0
|
0
|
3279
|
|
POST
|
Hi @jesin2001 that is odd. However, we still require the following in order to try and figure this out: - A link to the repo. - Screenshots of any console errors.
... View more
01-13-2022
09:03 AM
|
0
|
0
|
1100
|
|
POST
|
Hi @jesin2001 please provide the following: - a link to the repo. There are several from 2021. - screenshot of the console error messages,. There's almost always errors when the map doesn't render. - your browser version. This info is to make sure you are using a supported browser.
... View more
01-12-2022
07:17 AM
|
0
|
2
|
1129
|
|
POST
|
@IfThenTim that does seem odd. If the map code is in a component, in theory the CSS will work at the component level. Were there any console messages? Do you have a GitHub repo that demonstrates the issue?
... View more
01-04-2022
03:32 PM
|
0
|
0
|
3322
|
|
POST
|
Oops, 2 functions got cut off and I can't edit my previously reply. You'll also need these two functions: function toRad(degrees){
return degrees * Math.PI / 180;
}
function toDeg(radians){
return radians * 180 / Math.PI;
}
... View more
01-04-2022
10:44 AM
|
0
|
1
|
4645
|
|
POST
|
@mohammed_raufshaikh here's a snippet the will help you find the new point using latitude, longitude, bearing and radius (distance). That should at least get you started. Once you have the new point you can draw a polyline using the beginning and ending points. Here's a sample that demonstrates the concepts for creating a line (see item number 3 and 4): https://developers.arcgis.com/javascript/latest/sample-code/intro-graphics/. function bearingDistance(lat, lon, radius, bearing){
let lat1Rads = toRad(lat);
let lon1Rads = toRad(lon);
const R_KM = 6371; // radius in KM
let d = radius/R_KM; //angular distance on earth's surface
let bearingRads = toRad(bearing);
let lat2Rads = Math.asin(
Math.sin(lat1Rads) * Math.cos(d) + Math.cos(lat1Rads) * Math.sin(d) * Math.cos(bearingRads)
);
let lon2Rads = lon1Rads + Math.atan2(
Math.sin(bearingRads) * Math.sin(d) * Math.cos(lat1Rads),
Math.cos(d) - Math.sin(lat1Rads) * Math.sin(lat2Rads)
);
return {
latitude: toDeg(lat2Rads),
longitude: toDeg(lon2Rads)
}
}
... View more
01-04-2022
10:42 AM
|
1
|
1
|
4646
|
|
POST
|
Okay, thanks. Taking another look at those two error messages, this seems to be a ES6-to-ES5 transpilation error. That's typically a configuration issue with your framework/bundler and not an issue with the ArcGIS JS API. I'm basing my guess on one instance of a similar code signature that is in my local install /node_modules/@arcgis/core/views/input/keys.js. I've installed @arcgis/core@4.22. and that module is using ES6+ syntax. for(let s=48;s<58;s++)o[s]=String.fromCharCode(s); Try building your component using our example as a base and let us know if that works? https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app
... View more
12-16-2021
11:58 AM
|
0
|
1
|
10942
|
|
POST
|
@naveenanne This looks like an issue with one of your other libraries, the file path listed in the error message isn't coming from the ArcGIS API for JavaScript.
... View more
12-16-2021
07:44 AM
|
0
|
3
|
10986
|
|
POST
|
@GauravGoyalcan you provide more information on your use case? You can use any charting library of your choice. Are you looking for an opensource charting library? If so you could start by looking at this library: https://github.com/Esri/cedar. If you have questions or issues with Cedar you'll need to open an issue on that repo.
... View more
12-16-2021
07:31 AM
|
0
|
0
|
897
|
|
POST
|
For those coming across this issue that are using Angular, I updated my example repo to Angular 13 and Jest 27: https://github.com/andygup/angular-jsapi-jest. Jest v27 + jest-preset-angular v11 supports a bunch of file types out-of-the-box: ts, html, js, json and mjs. To get the sample working, my jest config was minimal (see package.json).
... View more
12-14-2021
02:54 PM
|
0
|
1
|
3794
|
|
POST
|
@baohuachu2for loading multiple frameworks when using the ArcGIS API for JavaScript's AMD modules you might take a look at the esri-loader library: https://github.com/esri/esri-loader.
... View more
12-14-2021
07:58 AM
|
1
|
0
|
1142
|
|
POST
|
@EmreCan @MatthieuBrisset Ah yes, I blew away my old node_modules and package-lock. When I reinstalled I see the problem, a dependency update changed something and I'm not sure why it doesn't work now. It will take some time to research. Hopefully it's just a configuration issue.
... View more
12-09-2021
08:38 AM
|
0
|
0
|
3764
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-10-2026 08:29 AM | |
| 1 | 03-26-2026 03:12 PM | |
| 2 | 02-21-2026 10:23 AM | |
| 2 | 08-01-2025 06:20 AM | |
| 1 | 05-27-2025 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|