title: Mapping shapes from a flat equirectangular panorama to planes within A-Frame
body: <p>I'm trying to build a hotspot editor for 360 images within A-Frame. </p>
  
  <p>The idea is that you could draw on an equirectangular panorama and then this tool would convert the shapes into planes with THREE.ShapeGeometry. </p>
  
  <p>I can get X/Y coordinates for each shape's nodes from a JS vector editor and the planes rendered in A-Frame. However, I'm having problems getting them positioned correctly atop the skybox.</p>
  
  <p>I know I need to do some kind of equirectangular projection but am unsure how to approach that in this context. </p>
  
  <p>Any ideas? </p>
  
  <p><a href="http://www.maxellinger.com/projection-example.jpg" rel="nofollow noreferrer">Screenshot of vector editor to show what I mean</a></p>