Converting mapPoint to texcoord - tessellateExtent (4.14)

355
0
03-18-2020 10:48 AM
NachiChidambaram
New Contributor II

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 ? 

0 Kudos
0 Replies