Skip to main content

How to create a polygon in a workflow?

Comments

3 comments

  • Permanently deleted user
    forgot to actually tell you where I went for reference: https://developers.arcgis.com/javascript/jsapi/polygon-amd.html
    0
  • Chris Dunlop
    Thanks Marshall!  Quite a tricky set of procedures.... But it got me what I needed!

     

    What I'm not sure about is why the "new Polygon(coordinates)" constructor doesn't work...
    0
  • Permanently deleted user
    Yeah, I know, you have me intrigued.  I got this to at least compile, but it is still not an inline constructor (not sure if it works:

     

    thePolygon = new Polygon

     

    thePolygon.rings(0) = new PointCollection(new MapPoint() {new MapPoint(7655000,613000), new MapPoint(7655000,620000),new MapPoint(7675000,620000), new MapPoint(7675000,613000), new MapPoint(7655000,613000)})

     

     I haven't tested it, just happy I could compile it before the end of the day...I'll test tomorrow

     

     
    0

Please sign in to leave a comment.