nachchid_sel

Converting mapPoint to texcoord - tessellateExtent (4.14)

Discussion created by nachchid_sel on Mar 18, 2020

Hello,

I am new to webgl. 

Going through this example , I see how tessellateExtent is working. 

Tessellation helpers for custom WebGL layer views | ArcGIS API for JavaScript 4.14 

 

I have a lat long with in this extent. 

I want to convert a map point (lat,long) to a texcoord , so that I can use it in my webgl shaders. 

 

I am not sure how to convert.  

Going  through the documentation , I see we need to convert from map point (lat,long ) - > pixel -> clipspace -> texcoord . Correct me if I am wrong. 

 

Could you provide a code example for this case ? 

 

 

Outcomes