Fixed tabs. Again.
@@ -26,7 +26,6 @@ import com.esri.arcgisruntime.localserver.LocalServerStatus;
import com.esri.arcgisruntime.localserver.RasterWorkspace;
import com.esri.arcgisruntime.mapping.ArcGISMap;
import com.esri.arcgisruntime.mapping.Basemap;
-import com.esri.arcgisruntime.mapping.Viewpoint;
import com.esri.arcgisruntime.mapping.view.MapView;
public class LocalServerDynamicWorkspaceRasterSample extends Application {
@@ -55,15 +54,15 @@ public class LocalServerDynamicWorkspaceRasterSample extends Application {
addButton.setMaxSize(150, 25);
addButton.setDisable(false);
- // choose the file, then start the Local Server instance and the local map service...
+ // choose the file, then start the Local Server instance and the
+ // local map service...
addButton.setOnAction(e -> {
if (LocalServer.INSTANCE.checkInstallValid()) {
// Browse to the raster file
FileChooser fileChooser = new FileChooser();
fileChooser.setTitle("Open Resource File");
- fileChooser.getExtensionFilters().addAll(
- new ExtensionFilter("Image Files", "*.tif"));
+ fileChooser.getExtensionFilters().addAll(new ExtensionFilter("Image Files", "*.tif"));
fileChooser.setInitialDirectory(new File("./samples-data/raster/"));
File selectedFile = fileChooser.showOpenDialog(stage);
@@ -98,7 +97,8 @@ public class LocalServerDynamicWorkspaceRasterSample extends Application {
}
}
- /** Start the LocalServer and the LocalMapService
+ /**
+ * Start the LocalServer and the LocalMapService
*
* @param fileName
* @param path
@@ -114,7 +114,8 @@ public class LocalServerDynamicWorkspaceRasterSample extends Application {
String mapServiceURL = "./samples-data/local_server/mpk_blank.mpk";
LocalMapService localMapService = new LocalMapService(mapServiceURL);
- // Can't add a dynamic workspace to a running service, so do that first...
+ // Can't add a dynamic workspace to a running service, so do
+ // that first...
RasterWorkspace rasterWorkspace = new RasterWorkspace("raster_wkspc", path);
RasterSublayerSource source = new RasterSublayerSource(rasterWorkspace.getId(), fileName);
ArcGISMapImageSublayer imageSublayer = new ArcGISMapImageSublayer(0, source);
@@ -135,7 +136,8 @@ public class LocalServerDynamicWorkspaceRasterSample extends Application {
});
imageLayer.loadAsync();
- //add the image layer to map. Clear any previous layers...
+ // add the image layer to map. Clear any previous
+ // layers...
mapView.getMap().getOperationalLayers().clear();
mapView.getMap().getOperationalLayers().add(imageLayer);
}
@@ -158,7 +160,8 @@ public class LocalServerDynamicWorkspaceRasterSample extends Application {
/**
* Opens and runs application.
*
- * @param args arguments passed to this application
+ * @param args
+ * arguments passed to this application
*/
public static void main(String[] args) {
