I get this error esri.views.2d.engine.webgl.mesh.templates.WGLTemplateStore when use png for PictureMarkerSymbol?

684
3
10-01-2021 01:30 AM
ZenBahsin
New Contributor II

I get this error esri.views.2d.engine.webgl.mesh.templates.WGLTemplateStore when use png for PictureMarkerSymbol, someone can help my issue?

this my code for PictureMarkerSymbol use png image

 

  var symbol = {
                    type: "picture-marker",
                    url: "mario.png",
                    width: "10px",
                    height: "10px"
                };

                const RendererSymbol = {
                    type: "simple",
                    defaultSymbol: {
                        type: "simple-marker",
                        color: "red",
                        style: "circle",
                        size: "4px"
                    },
                    symbol: symbol
                };

 

this error in browser

ZenBahsin_0-1633076783640.png

 

Tags (2)
0 Kudos
3 Replies
Noah-Sager
Esri Regular Contributor

What happens if you provide the fully qualified URL to the png file? Can you provide a simplified test app that reproduces the issue on something like codepen? 

0 Kudos
ZenBahsin
New Contributor II

Dear Noah

this is my code on codepen

https://codepen.io/zenbahsin/pen/GREaMbQ 

thanks

0 Kudos
ShekharSahu
New Contributor

@ZenBahsin were you able to resolve this error?

0 Kudos