AnsweredAssumed Answered

javascript api 3.13 geometryEngine.geodesicBuffer error

Question asked by brywesty on Apr 7, 2015
Latest reply on Apr 7, 2015 by bsvensson-esristaff

Im trying to use the new geometryEngine.geodesicBuffer.  when passing in my polygon geometry, the api is throwing the following error. (Uncaught TypeError: Cannot read property 'dd' of null)  geomtryEngine.js: 519

 

I believe this is a bug in the new client side geometry engine.

 

I'm using Web Mercator projection (wkid 102100).

 

            var SelectGraphicsLayer = map.getLayer("SelectGraphicsLayer");

            var _geometry;

            var _geometries = [];

            for (var i = 0; i < SelectGraphicsLayer.graphics.length; i++) {

                _geometries.push(SelectGraphicsLayer.graphics[i].geometry);

            }

            if (_geometries.length > 1) {

                _geometry = GeometryEngine.union(_geometries);

            }

            else {

                _geometry = _geometries[0];

            }

            //var buffer = GeometryEngine.buffer(_geometry, 330, Units.FEET, true); //THIS ONE WORKS

            var buffer = GeometryEngine.geodesicBuffer(_geometry, 330, Units.FEET, true);  // THIS ONE DOES NOT

Outcomes