2

I am building a dojo app using the ESRI JavaScript version 4.5. I built it using these instructions from ESRI:

https://developers.arcgis.com/javascript/latest/guide/using-bower/

I'm trying to render my feature layers with WebGL. In order to do this, I need to include this script tag before loading the JavaScript API into the app:

<script>
 var dojoConfig = {
 has: {
 "esri-featurelayer-webgl": 1
 }
 }
</script>

I downloaded the ESRI JavaScript API to my machine, so I don't have to load it into the app. Where do I include this script tag to make WebGL work?

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Jan 2, 2018 at 17:06

1 Answer 1

2

Make sure you check out the sample application in the jsapi-resources repo.

You'll want to add that flag in the defaultConfig of the Dojo build profile. In that sample, the flag is set to 0, so you can just change it to 1 when you do your build.

Hope that helps!

answered Jan 2, 2018 at 17:45

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.