After upgrading ArcGIS JS API from 3.23 to 3.30 (referring https://github.com/Esri/jsapi-resources for upgrade).
Some map service layers are not rendering on map(Mostly point and Line features).
If I run my application locally, refereeing arcgis js api online. The app works fine and all layers are rendering without any issue.
But, deploying the app, most of the point and line features are not rendering on map.
Please let me know if you require any additional information.
Below is the screen shot of the app:
Point features are rendered if i refer Online API:
Point features are not rendered after deploying app.
Solved! Go to Solution.
Thanks for the reply.
I am not getting any error in console. Also not seeing any error during the build. If I down grade the API version to 3.23 the app works fine.
If I try to upgrade to 3.24 or 3.25 then this problem occurs. Unfortunately, I can’t share app code. I am trying to create small app with same grunt and app profile.
I'm sorry, I'm a little confused. You've mentioned many different versions of the API. The current 3x version of the API is 3.31, and the current 4x version of the API is 4.14.
It looks like you are using this sample as a starting point?
There should be some information either in the browser console or network traffic. Please create a simple, reproducible test app (a one page html file is sufficient, no need for grunts). And host it someplace like codepen or jsfiddle.
Please find the attached code (dojo.zip in original post).
If I run the app from source folder. It works fine and I am able to see the point layer in map.
After build, The point layer is not appearing in map. if i execute the app from dist folder. There is no error message in console and network tab.
Thank you for posting that code. It looks like all the API and SDK references are to locally hosted files. Perhaps there is something going on with the build process, as the layer and the JS API versions seem fine from my end:
JS API version 3.31
JS API version 3.30
JS API version 3.25
Can you describe your workflow for how you are building the app? And what you are using? I'm not sure how else to help troubleshoot, as everything looks fine from an API perspective.
I took this sample (jsapi-resources/3.x/bower/dojo at master · Esri/jsapi-resources · GitHub )and just modified app code .
Used following steps to build application.
npm install -g bower
npm run clean
npm run build or grunt build
I added all the below layers in the sample application.
After build, i am able to see only the below two layers in map.
But the below layer is not visible in map.
I used same steps, that i have mentioned in my last post to build the app.
PFA updated code.