POST
|
We are using the ArcGIS JavaScript API 4.13 in an Angular 8 based project and are about to change from esri-loader to a Webpack approach. I followed the instructions on Angular | ArcGIS API for JavaScript 4.14 installing @arcgis/webpack-plugin 4.13.1. The example worked fine, but when i startet migrating the project, several imported classes show up "undefined". I went back to the simple example to reproduce the error, and it was the same. We are using roughly 50 classes from different packages, but five classes show up undefined, these are the failing imports: import watchUtils from 'arcgis-js-api/core/watchUtils'; import geometryEngine from 'arcgis-js-api/geometry/geometryEngine'; import webMercatorUtils from 'arcgis-js-api/geometry/support/webMercatorUtils'; import size from 'arcgis-js-api/renderers/smartMapping/creators/size'; import color from 'arcgis-js-api/renderers/smartMapping/creators/color'; I realize that each of the imported classes starts with a lower case letter, but the same goes for "import config from 'arcgis-js-api/config';", which is not failing. What am i missing? Cheers, Schotty
... View more
02-03-2020
09:12 AM
|
1
|
2
|
1714
|
POST
|
Hi Undral, sorry for answering so late, thanks for the tip! We managed to get around this, but i will keep the updating-property in mind. Cheers Schotty
... View more
02-03-2020
08:13 AM
|
0
|
0
|
329
|
POST
|
Dear all, recently i came across a strange behaviour of the Esri-JavaScript Api 4.13. The MapView.scale was set in one method, and then the getter was called in another method. But the value returned was still the old one. I stepped inside the sources to the point where the set and get methods are implemented (Accessor, then MapView) and realised that there is a flag "internallyReady", which, in case of the getter, is used to decide which value to return, the old one or the new one. I locked up the Api-Docs, but there was not any note about the scale property being asynchronous. To me it seems kind of odd, that a getter/setter is showing this kind behaviour. When is it save to call the getter to receive the value that was actually set? Am i missing something? Best regards Andreas
... View more
11-08-2019
09:47 AM
|
0
|
2
|
422
|
POST
|
Hi everyone, recently we have tried to create a Web map-JSON (Web map specification overview | ArcGIS for Developers) with the undocumented toJSON()-method of the WebMap-class/JS-API 4.10. When calling the method, an error gets thrown saying that the toJSON()-method is not yet implemented. What are the plans concerning toJSON-conversion-methods supporting the web map specification? Will it be included in future releases of the JS-API?
... View more
04-04-2019
06:26 AM
|
1
|
2
|
952
|
Title | Kudos | Posted |
---|---|---|
1 | 02-03-2020 09:12 AM | |
1 | 05-15-2019 03:32 AM | |
1 | 04-04-2019 06:26 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|