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
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.