|
18 | 18 | <li>Create and run a local server. |
19 | 19 | <ul><li><code>LocalServer.INSTANCE</code> creates a local server</li></ul> |
20 | 20 | <ul><li><code>Server.startAsync()</code> starts the server asynchronously</li></ul> |
21 | | -<li>Create a <code>LocalMapService</code> instance using an empty .MPK file (the sample uses one that is created for you). Don't start it yet.</li> |
22 | | -<li>Create a <code>ShapefileWorkspace</code> with id 'shp_wkspc' and absolute path to location of were shapefile is being stored.</li> |
| 21 | +<li>Create a LocalMapService instance using an empty .MPK file (the sample uses one that is created for you). Don't start it yet.</li> |
| 22 | +<li>Create a ShapefileWorkspace with id 'shp_wkspc' and absolute path to location of were shapefile is being stored.</li> |
23 | 23 | <li>Create a <code>TableSublayerSource</code> using <code>shapefileWorkspace.getId()</code> and name of shapefile with extension, example `mjrroads.shp`.</li> |
24 | | -<li>Add <code>ShapefileWorkspace</code> to <code>LocalMapService.setDynamicWorkspaces()</code>.</li> |
25 | | -<li>Start the <code>LocalMapService</code> |
| 24 | +<li>Add ShapefileWorkspace to <code>LocalMapService.setDynamicWorkspaces()</code>.</li> |
| 25 | +<li>Start the LocalMapService |
26 | 26 | <ul><li><code>localMapService.startAsync()</code></li></ul> |
27 | 27 | <ul><li><code>localMapService.addStatusChangedListener()</code> fires whenever the status of the local server has changed.</li></ul></li> |
28 | 28 | <ul><li>Wait for server to be in the <code>LocalServerStatus.STARTED</code> state.</li></ul> |
29 | 29 | <li>Create a <code>ArcGISMapImageLayer</code> using <code>localMapService.getUrl()</code></li> |
30 | | -<li>Add the ArcGISMapImageSublayer to it's list of sublayers. The ArcGISMapImageSublayer points to the shapefile file on disk. |
31 | | -<li>Once <code>ArcGISMapImageLayer</code> is done loading, set <code>ArcGISMapImageSublayer</code> to <code>ArcGISMapImageLayer.getSublayers()</code>. The ArcGISMapImageSublayer points to the shapefile file on disk.</li> |
| 30 | +<li>Add the <code>ArcGISMapImageSublayer</code> to it's list of sublayers. The ArcGISMapImageSublayer points to the shapefile file on disk. |
| 31 | +<li>Once ArcGISMapImageLayer is done loading, set ArcGISMapImageSublayer to <code>ArcGISMapImageLayer.getSublayers()</code>. The ArcGISMapImageSublayer points to the shapefile file on disk.</li> |
32 | 32 | </ol> |
33 | 33 |
|
34 | 34 | <h2>Features</h2> |
|
39 | 39 | <li>LocalServer</li> |
40 | 40 | <li>ShapefileWorkspace</li> |
41 | 41 | <li>TableSublayerSource</li> |
42 | | -</ul> |
| 42 | +</ul> |
0 commit comments