|
POST
|
Hi @corndog see my response on the other post: https://community.esri.com/t5/arcgis-api-for-javascript-questions/esm-modules-broken-error-resolving-module/m-p/1140083/highlight/true#M76240.
... View more
02-02-2022
01:26 PM
|
1
|
0
|
1204
|
|
POST
|
Hi @corndog any chance you able to open a tech support ticket? They might be able to help get you pointed in the right direction. I'm curious why you are looking to migrate to ESM? AMD is a perfectly acceptable approach. We mention that in the documentation here: https://developers.arcgis.com/javascript/latest/tooling-intro/#should-i-migrate-to-es-modules. If you use the AMD CDN without a JavaScript framework or local build tools, then there’s no need to migrate. The AMD modules will be available for the foreseeable future, and the AMD and ES modules have the same API capabilities.. Lastly, we have an ESM CDN that can be used for prototyping and testing-only. That might be a good place to start since you don't need node or npm. Here's a link to that sample application: https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-esm-cdn and the source code is in that directory: https://github.com/Esri/jsapi-resources/blob/master/esm-samples/jsapi-esm-cdn/esm-cdn.html.
... View more
02-02-2022
01:21 PM
|
0
|
2
|
10124
|
|
POST
|
@corndogdid you look at any of the samples we have here: https://github.com/Esri/jsapi-resources/tree/master/esm-samples? I'm actually in the process of updating the guide topic page, it needs to mention that you are required to have local build tools in order to use @arcgis/core modules. I also noticed you are importing both the AMD CDN via a script tag, and @arcgis/core, that will cause API conflicts.
... View more
02-01-2022
04:02 PM
|
0
|
3
|
10185
|
|
POST
|
@DanielFrunza Try removing the following line from \node_modules\@arcgis\core\package.json and then try again: "crypto": false,
... View more
02-01-2022
03:47 PM
|
0
|
6
|
2942
|
|
POST
|
@DanielFrunzaare you using React or Angular? Crypto error sounds like React, and if that's the case here's a link to a repo that was mentioned above that might help you out: https://github.com/defiantgoat/esri-react-typescript
... View more
02-01-2022
09:05 AM
|
0
|
9
|
2952
|
|
POST
|
Hi @mohammed_raufshaikh, I'm aware of the formulas to do it but haven't researched it recently, you might marked this post as answered and create a new post about curved lines to get better visibility from the community. Here's a simple example of how to draw a curved line between two points: https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-draw-a-curved-line-between-two-points/td-p/253177
... View more
01-27-2022
09:03 AM
|
0
|
1
|
3786
|
|
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
|
1068
|
|
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
|
908
|
|
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
|
21204
|
|
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
|
2799
|
|
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
|
739
|
|
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
|
768
|
|
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
|
2842
|
|
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
|
3823
|
|
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
|
3824
|
| 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
|