Information on updating your 1.5 applications to work with version 2.0 of the ArcGIS API for JavaScript. The GeometryService now takes geometries as input instead of graphics. Applications that use the following geometry service operations will need to be modified. The RouteTask.onSolveComplete event now returns an anonymous solveResult object which contains: routeResults, barriers, polylineBarriers, polygonBarriers, and messages. function doBuffer(evt){ var graphic = new esri.Graphic(evt.mapPoint, symbol), var params = new esri.tasks.BufferParameters(), params.features = [ graphic ], ... event now returns an anonymous solveResult object which contains: routeResults, barriers, polylineBarriers, polygonBarriers, and messages. function showRoute(solveResult) { directions = solveResult.routeResults[0].directions, directionFeatures = directions.features, } Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 18, 2016 @ 12:03 pm