File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/main/java/com/esri/samples/localserver/local_server_dynamic_workspace_raster Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1818<li >Create and run a local server.
1919<ul ><li ><code >LocalServer.INSTANCE</code > creates a local server</li ></ul >
2020<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 the < code > RasterWorkspace</ code > and <code >RasterSublayerSource</code > instances.</li >
23- <li >Add the < code > RasterWorkspace</ code > the list of dynamic workspaces of the < code > LocalMapService</ code > .</li >
24- <li >Start the < code > LocalMapService</ code >
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 the RasterWorkspace and <code >RasterSublayerSource</code > instances.</li >
23+ <li >Add the RasterWorkspace the list of dynamic workspaces of the LocalMapService.</li >
24+ <li >Start the LocalMapService
2525<ul ><li ><code >localMapService.startAsync()</code ></li ></ul >
2626<ul ><li >Wait for server to be in the <code >LocalServerStatus.STARTED</code > state.</li ></ul >
2727<ul ><li ><code >localMapService.addStatusChangedListener()</code > fires whenever the status of the local server has changed.</li ></ul ></li >
28- <li >Create a <code >ArcGISMapImageLayer</code > using the url from the < code >localMapService</ code > </li >
29- <li >Add the ArcGISMapImageSublayer to it's list of sublayers. The ArcGISMapImageSublayer points to the raster file on disk.
30- <li >Finally, add the < code > ArcGISMapImageLayer</ code > to map's list of operational layers. The raster layer appears in the map.</li >
28+ <li >Create a <code >ArcGISMapImageLayer</code > using the url from the LocalMapService </li >
29+ <li >Add the < code >ArcGISMapImageSublaye< code >r to it's list of sublayers. The ArcGISMapImageSublayer points to the raster file on disk.
30+ <li >Finally, add the ArcGISMapImageLayer to map's list of operational layers. The raster layer appears in the map.</li >
3131</ol >
3232
3333<h2 >Features</h2 >
You can’t perform that action at this time.
0 commit comments