Skip to content

Commit 7e5c864

Browse files
committed
changed package name to match sample name
1 parent c0187c9 commit 7e5c864

File tree

6 files changed

+348
-348
lines changed

6 files changed

+348
-348
lines changed
Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
<h1>Service Area Task</h1>
2-
3-
<p>Demonstrates how to find services areas around a point using the ServiceAreaTask. A service area shows locations that can be reached from a facility based off a certain impedance [such as travel time]. Barriers can also be added which can effect the impedance by not letting traffic through or adding the time is takes to pass that barrier.</p>
4-
5-
<p><img src="ServiceAreaTask.gif"/></p>
6-
7-
<h2>How to use sample</h2>
8-
<li>In order to find any service areas at least one ServiceAreaFaciltiy needs to be added.</li>
9-
<li>To add a facility, click the facility button, then click anywhere on the MapView.</li>
10-
<li>To add a barrier, click the barrier button, and click multiple locations on MapView.</li>
11-
<ul><li>Hit the barrier button again to finish drawing barrier.</li>
12-
<li>Hitting any other button will also stop the barrier from drawing.</li></ul>
13-
<li>To show service areas around facilities that were added, click show service areas button.</li>
14-
<li>Reset button, clears all graphics and reset ServiceAreaTask.</li>
15-
16-
<h2>How it works</h2>
17-
18-
<p>To display service areas around a certain location:</p>
19-
20-
<ol>
21-
<li>Create a <code>ServiceAreaTask</code> from an online service.</li>
22-
<li>Get ServiceAreaParameters from task, <code>task.createDefaultParametersAsync()</code></li>
23-
<li>Setting return polygons to true will return all services areas, <code>serviceAreaParameters.setReturnPolygons(true)</code></li>
24-
<li>Add a <code>ServiceAreaFacilty</code> to parameters, <code>serviceAreaParameters.setFacilities(serviceAreaFacility)</code></li>
25-
<li>Get <code>ServiceAreaResult</code> by solving the service area task using parameters, <code>task.solveServiceAreaAsync(serviceAreaParameters).get()</code></li>
26-
<li>Get any <code>ServiceAreaPolygon</code>s that were returned, <code>serviceAreaResult.getResultPolygons(facilityIndex)</code></li>
27-
<ul><li>facilityIndex is the faciltiy from the mapview that you want to get the services areas of</li></ul>
28-
<li>Display services areas to MapView, <code>graphicsOverlay.getGraphics().add(new Graphic(serviceAreaPolygon.getGeometry(), fillSymbol))</code></li>
29-
</ol>
30-
31-
<h2>Features</h2>
32-
<ul>
33-
<li>ArcGISMap</li>
34-
<li>GraphicsOverlay</li>
35-
<li>MapView</li>
36-
<li>PolylineBarrier</li>
37-
<li>ServiceAreaFacility</li>
38-
<li>ServiceAreaParameters</li>
39-
<li>ServiceAreaPolygon</li>
40-
<li>ServiceAreaResult</li>
41-
<li>ServiceAreaTask</li>
42-
<li>PolylineBuilder</li>
43-
</ul>
44-
1+
<h1>Service Area Task</h1>
2+
3+
<p>Demonstrates how to find services areas around a point using the ServiceAreaTask. A service area shows locations that can be reached from a facility based off a certain impedance [such as travel time]. Barriers can also be added which can effect the impedance by not letting traffic through or adding the time is takes to pass that barrier.</p>
4+
5+
<p><img src="ServiceAreaTask.gif"/></p>
6+
7+
<h2>How to use sample</h2>
8+
<li>In order to find any service areas at least one ServiceAreaFaciltiy needs to be added.</li>
9+
<li>To add a facility, click the facility button, then click anywhere on the MapView.</li>
10+
<li>To add a barrier, click the barrier button, and click multiple locations on MapView.</li>
11+
<ul><li>Hit the barrier button again to finish drawing barrier.</li>
12+
<li>Hitting any other button will also stop the barrier from drawing.</li></ul>
13+
<li>To show service areas around facilities that were added, click show service areas button.</li>
14+
<li>Reset button, clears all graphics and reset ServiceAreaTask.</li>
15+
16+
<h2>How it works</h2>
17+
18+
<p>To display service areas around a certain location:</p>
19+
20+
<ol>
21+
<li>Create a <code>ServiceAreaTask</code> from an online service.</li>
22+
<li>Get ServiceAreaParameters from task, <code>task.createDefaultParametersAsync()</code></li>
23+
<li>Setting return polygons to true will return all services areas, <code>serviceAreaParameters.setReturnPolygons(true)</code></li>
24+
<li>Add a <code>ServiceAreaFacilty</code> to parameters, <code>serviceAreaParameters.setFacilities(serviceAreaFacility)</code></li>
25+
<li>Get <code>ServiceAreaResult</code> by solving the service area task using parameters, <code>task.solveServiceAreaAsync(serviceAreaParameters).get()</code></li>
26+
<li>Get any <code>ServiceAreaPolygon</code>s that were returned, <code>serviceAreaResult.getResultPolygons(facilityIndex)</code></li>
27+
<ul><li>facilityIndex is the faciltiy from the mapview that you want to get the services areas of</li></ul>
28+
<li>Display services areas to MapView, <code>graphicsOverlay.getGraphics().add(new Graphic(serviceAreaPolygon.getGeometry(), fillSymbol))</code></li>
29+
</ol>
30+
31+
<h2>Features</h2>
32+
<ul>
33+
<li>ArcGISMap</li>
34+
<li>GraphicsOverlay</li>
35+
<li>MapView</li>
36+
<li>PolylineBarrier</li>
37+
<li>ServiceAreaFacility</li>
38+
<li>ServiceAreaParameters</li>
39+
<li>ServiceAreaPolygon</li>
40+
<li>ServiceAreaResult</li>
41+
<li>ServiceAreaTask</li>
42+
<li>PolylineBuilder</li>
43+
</ul>
44+

0 commit comments

Comments
 (0)