I am trying to select kml features using Buffer. I think I need to create QueryTask using "esri.tasks.QueryTask(url)" but it is not working for kml file. Is there any way to select kml features without using QueryTask?
I tried to use "onBufferComplete" event, but it gives an error - code below.
function doBuffer(evt) { map.graphics.clear(); var params = new esri.tasks.BufferParameters(); params.geometries = [ evt.mapPoint ];
//buffer in linear units such as meters, km, miles etc. params.distances = [ 1, 2 ]; params.unit = esri.tasks.GeometryService.UNIT_US_NAUTICAL_MILE; params.outSpatialReference = map.spatialReference;
var symbol = new esri.symbol.SimpleFillSymbol( esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol( esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,0,255,0.65]), 2 ), new dojo.Color([0,0,255,0.15]) );
dojo.forEach(geometries, function(geometry) { var graphicBuffer = new esri.Graphic(geometry,symbol); map.graphics.add(graphicBuffer); }); }