|
POST
|
There was a known issue that's been fixed for the 4.19 release, which will be available in a few weeks. Trying testing again by substituting https://js.arcgis.com/4.18 for https://js.arcgis.com/next. Reference: https://github.com/Esri/feedback-js-api-next#arcgis-api-for-javascript---next
... View more
04-12-2021
09:44 AM
|
0
|
0
|
907
|
|
POST
|
I recommend getting the code running outside of Angular in a vanilla JS app first. Can you provide a codepen that reproduces the issue?
... View more
04-12-2021
08:04 AM
|
0
|
1
|
4677
|
|
POST
|
Okay, I looked at the TypeScript definition file and there are typings missing, we'll look into that. Here's one example of a temporary workaround: graphic: new Graphic ({
geometry : {
type : 'point' , // autocasts as new Point()
longitude : - 71.2643 ,
latitude : 42.0909
} as __esri.Point,
symbol : {
// @ts-ignore
type : 'simple-line',
size : '12px' ,
color : 'blue' ,
outline : {
color : '#efefef' ,
width : '1.5px'
}
}}); [Edit: just a footnote, my suggestions are based on 4.18/4.19-next]
... View more
04-09-2021
02:07 PM
|
0
|
2
|
4722
|
|
POST
|
It looks like a typings issue related to auto-casting, we may have missed something. Try explicitly declaring the Symbol, don't forget to add the module reference to your require() statement: symbol: new SimpleLineSymbol({
size: '12px',
color: 'blue',
outline: {
color: '#efefef',
width: '1.5px'
]),
... View more
04-09-2021
11:14 AM
|
0
|
1
|
4730
|
|
POST
|
Hi Sahil, can you provide a code snippet that demonstrates the issue? And, which version of the JS API?
... View more
04-09-2021
08:17 AM
|
0
|
1
|
4747
|
|
POST
|
There's been a few bugs fixed that might be related to your issue. Try testing using 4.19-next build, which will be released to production in a few weeks. With 4.19 the assets will load via CDN by default, but you can still load them locally if needed. So comment out your assetsPath code when you try this upgrade: npm i @Anonymous User/core@next Also, here's a working repo you can use to test: https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli
... View more
04-08-2021
04:33 PM
|
0
|
1
|
1557
|
|
POST
|
Maybe try updating via `npm i '@ArcGIS/core@next`. Starting at 4.19 (coming out later this month) there's no asset copying by default (unless you need the assets locally). Here's our working sample for 4.18: https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app
... View more
04-08-2021
09:52 AM
|
0
|
0
|
5180
|
|
POST
|
Same API just different modules: @arcgis/core uses ES modules and arcgis-js-api uses AMD modules. The underlying functionality is exactly the same. How is your webpack configured? cc @ReneRubalcava
... View more
04-08-2021
09:38 AM
|
0
|
5
|
5187
|
|
POST
|
If the SketchViewModel runs slower in Angular than in a vanilla JS app, and there aren't any errors in the console, it's possible the performance issue is related to zone.js and Angular's built-in component change detection. There are two primary ways to try and address these types of issues. You can move to a manual change detection pattern within your map component, there is a lot of info about this on the web, here is one example of how to do it. Or, you can also try running your code outside of the Angular "zone", similar to this super basic, pseudo-example: this.zone.runOutsideAngular(() => {
// Initialize MapView here
this.initializeMap().then(() => {
// The map has been initialized
. . .
// For non-map-related component events, run them outside the Zone
this.zone.run(() => {
console.log('mapView ready: ');
});
});
});
... View more
04-05-2021
02:56 PM
|
1
|
0
|
4140
|
|
POST
|
I can repro, that's a TypeScript definition problem, I'll open an issue. You can temporarily bypass the issue and continue your builds by using //@ts-ignore: //@ts-ignore
var ImageLayer = BaseTileLayer.createSubclass({ I also see that the API reference documentation needs to be updated. We're looking into that, as well. Thanks for reporting.
... View more
04-02-2021
12:58 PM
|
1
|
6
|
4104
|
|
POST
|
Here's an AMD example: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-custom-tilelayer. There aren't any dojo methods in the 4.18 API. The way the modules functionality is implemented in ESM (POJO or TypeScript) is exactly the same as AMD, you just need to change the path used by the import statements: https://developers.arcgis.com/javascript/latest/es-modules/#migrate-to-es-modules.
... View more
04-02-2021
07:24 AM
|
0
|
8
|
4123
|
|
POST
|
Hi @SSilva, the https://github.com/Esri/bootstrap-map-js project isn't being maintained, there are newer approaches. If you can provide more information on what you are trying to do, maybe we can point you in a better direction?
... View more
03-30-2021
08:07 AM
|
0
|
1
|
1274
|
|
POST
|
> Do you know if it would help to load the script that initializes the map at the end of the body, instead of in the header? My hunch is that using onLoad or one of the webform's lifecycle steps will be the trick to get the DOM timing right.
... View more
03-24-2021
03:43 PM
|
0
|
0
|
1822
|
|
POST
|
That sure sounds like an application lifecycle issue. Are you using a JavaScript framework? If so, then you'll need to use the framework's hooks to wait until the application component has initialized before initializing the map.
... View more
03-24-2021
01:23 PM
|
0
|
1
|
1833
|
|
POST
|
You might take a look at these issue comments for potential workaround: https://github.com/Esri/jsapi-resources/issues/268#issuecomment-781899119. I didn't test them out, so I can't vouch for them.
... View more
03-19-2021
08:56 AM
|
0
|
2
|
5223
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 06-04-2026 08:15 AM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
06-04-2026
08:11 AM
|