AnsweredAssumed Answered

WebGL Invalid Resource Error

Question asked by danf on Jul 31, 2018
Latest reply on Jul 31, 2018 by danf

Pesky error, that I'm having a hard time getting past. I'm using the JavaScript API 4.8 to create a 2D web map with some relatively simple layers, and hopefully simple labels. For labeling in particular, I apparently need to enable WebGL rendering of my layers. With a simple renderer, my layers draw fine. As soon as I add the requisite WebGL-enabling section though, in the proper location in my header, rendering fails:

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

If I look at my console in Chrome, I get:

dojo.js:251 [esri.views.2d.engine.webgl.TextureManager]
  1. {name: "mapview-invalid-resource", message: "Couldn't find font tahoma-bold. Falling back to Arial Unicode MS Regular", details: undefined}
    1. details:undefined
    2. message:"Couldn't find font tahoma-bold. Falling back to Arial Unicode MS Regular"
    3. name:"mapview-invalid-resource"
    4. __proto__:b

The WebGL samples work fine, and do not give this error. 

 

Might anyone have an insight?

 

Thanks in advance. 

Outcomes