I have a need to take a point geometry, such as what's taken from a search widget, and buffer it with the geometry engine. I can't seem to figure out how. I've set up a CodePen to demonstrate my issue - a simplified version of the Sample Code on geodesic buffer. Check out my code and the "Instructions" in the JS pane: https://codepen.io/Mike-Dolbow/pen/XWymPWx
GeometryEngine won't autocast your point object to a Point instance. Try creating a "new Point()" and see if that works.
Thanks Rene! I thought of that on my run yesterday, forehead slap. Another way of saying this: my code is just creating a plain old object that happens to have a type of "point" and lat/long values, not an actual full-blown point geometry object that the geodesic buffer requires. I'll update the code pen to demonstrate this.
Did you check out this:
https://developers.arcgis.com/javascript/latest/calculate-geometries/
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.