Hi all
With the ability to use graphic draw tools (point, line, polygons) and create the objects to use in a query such as those in this example:
https://developers.arcgis.com/javascript/3/samples/util_buffergraphic/Β
How would I customise this so as to be able to enter x,y coordinates manually to create an object such as aΒ point, line or polygon and then buffer this?
I have a simple create a point object and zoom to it taking in user entered x,y coordinates using the following:
Β Β Β Β Β Β on(dom.byId("btnFindCoordinates"), "click", function() {
Β Β Β Β Β Β Β map.graphics.clear();
Β Β Β Β Β Β Β var x = dom.byId("xCoord").value;
Β Β Β Β Β Β Β var y = dom.byId("yCoord").value;
Β Β Β Β Β Β Β var coordPoint = new Point(x,y);
Β Β Β Β Β Β Β prjParams.geometries = [coordPoint];
Β Β Β Β Β Β Β Β Β map.centerAndZoom(coordPoint, 11);
Β Β Β Β Β Β Β map.graphics.add(new Graphic(coordPoint, markerSymbol));
Β Β Β Β Β Β Β Β Β Β Β
Β Β Β Β Β Β });
But not sure how I would add this into the example above, any hints welcome.
Thanks and best,
Mark