Service area task

3705
1
02-06-2015 09:01 AM
KeisukeNozaki
Occasional Contributor II

I would like to modify service area task from sample code.

To add another time, I changed the following.

      var driveTimes = "5 10 15 20";

          else if (f == 3) {

            var polySymbolYellow = new SimpleFillSymbol();

            polySymbolYellow.setOutline(new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([0, 0, 0, 0.5]), 1));

            polySymbolYellow.setColor(new Color([255, 255, 0, 0.7]));

            feature.setSymbol(polySymbolYellow);

          }

The graphic still does not show up, and I wonder which code I am missing.

Thank you in advance.

Keisuke

Tags (1)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Keisuke,

   You have to look at the restriction on this sample service.

The maximum drive time allowed is 15 minutes. Anytime over 15 minutes is ignored.

http://sampleserver1c.arcgisonline.com/arcgisoutput/Network_ESRI_DriveTime_US/CreateDriveTimePolygon...