function addToMap(geometry) { var symbol; toolbar.deactivate(); // map.showZoomSlider(); switch (geometry.type) { case "point": symbol = new esri.symbol.SimpleMarkerSymbol(); break; case "multipoint": symbol = new esri.symbol.SimpleMarkerSymbol(); break; case "polyline": symbol = new esri.symbol.SimpleLineSymbol(); break; default: symbol = new esri.symbol.SimpleFillSymbol(); break; } var graphic = new esri.Graphic(geometry, symbol); graphicsDrawnOnScreen = graphic; map.graphics.add(graphic); var params = new esri.tasks.BufferParameters(); //params.distances = [100]; params.geometries = graphicsDrawnOnScreen; // params.unit = esri.tasks.GeometryService.UNIT_METER; //params.geometries = [evt.mapPoint]; //params.unit = esri.tasks.GeometryService.UNIT_STATUTE_MILE; geometryService.buffer(params); geometryService.intersect(graphicsDrawnOnScreen); toolbarItemClicked == false; } i tried the above code without commenting out the above lines.
<String[]> outFields A comma delimited list of field names to include in the FeatureLayer. If not specified, the feature layer will return the OBJECTID field and if applicable the start time field, end time field and type id field. You can specify ["*"] to fetch the values for all fields in the layer, this is useful when editing features.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.