In the example Buffer a point | ArcGIS API for JavaScript , a buffer is displayed based on the click event. Is there a way I can manually the point location?.
The line in question is params.geometries = [ evt.mapPoint ];
I want to simply new up a geometry with 1 or many points, but can't find a way to do it. I have the x, y values I need and the buffer.
Thanks
Rob
Solved! Go to Solution.
Simply create a point and use it instead of "evt.mapPoint" as follows:
First:
dojo.require("esri.geometry.Point");
Then:
var point = new esri.geometry.Point(-96.816, 32.976); params.geometries = [ point ];
Simply create a point and use it instead of "evt.mapPoint" as follows:
First:
dojo.require("esri.geometry.Point");
Then:
var point = new esri.geometry.Point(-96.816, 32.976); params.geometries = [ point ];
Thanks,
I had my parenthesis mixed up.