Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in updated hook: "TypeError: animatedEnvironmentLayer_1.AnimatedEnvironmentLayer is not a constructor" #4

Closed
xqwIOS opened this issue Jul 2, 2019 · 4 comments

Comments

@xqwIOS
Copy link

xqwIOS commented Jul 2, 2019

I changed the code of file pageSetUp.js function init:
WX20190702-145233

when i console.log(animatedEnvironmentLayer_1) it returns
{byId: ƒ, isDescendant: ƒ, setSelectable: ƒ}
byId: ƒ (b,f)
isDescendant: ƒ (b,h)
setSelectable: ƒ (b,h)
proto: Object
now . what shoud i do? thanks....

@nickcam
Copy link
Owner

nickcam commented Jul 2, 2019

Hi @xqwIOS - I'm a bit unclear as to what you're trying to do? What was the point of your update.

Also, the pageSetup.js file is generated from typescript, you'd be much better off editing the typescript file, typescript/pageSetup.ts. You can still debug into it and set breakpoints etc.

Just follow the Usage instructions in the readme to get the project running using typescript.

@xqwIOS
Copy link
Author

xqwIOS commented Aug 8, 2019

Now I had add the windy data . to the map (my arcgis for js 4.11 ) but i found that when I move the map the windy and the map load very slow and how can I change the speed of Windy . thanks . my Map only add a geojsonLayer and a featureLayer

@xqwIOS
Copy link
Author

xqwIOS commented Aug 8, 2019

I just used animatedEnvironmentLayer.js file My project used Vue.js framework

@nickcam
Copy link
Owner

nickcam commented Aug 12, 2019

Sorry I'm not very familiar with vue.js. Are you using esri-loader to load the arcgis libraries inside of your app. If so follow the instructions in it's readme related to configuring dojo to load other libraries. https://github.com/Esri/esri-loader#configuring-dojo.

If it's still slow it could be that your wind data is of a very high resolution. The more data, the more processing it has to do on each render. If this is the case you may need to dynamically switch out data sources depending on the current scale/zoom of your map. So for further out scales, use a lower resolution dataset, and then swap in a higher resolution one just for more detailed zoom levels. Obviously this could involve a little to a lot more data having to be fetched though.

@nickcam nickcam closed this as completed Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants