Skip to content

Commit 836e9b6

Browse files
authored
Merge pull request #217 from Esri/john0005/simpleFix
Minor sample fix
2 parents c8d9fe7 + 2c344cd commit 836e9b6

File tree

5 files changed

+37
-22
lines changed

5 files changed

+37
-22
lines changed

src/main/java/com/esri/samples/analysis/line_of_sight_location/LineOfSightLocationSample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void start(Stage stage) throws Exception {
5252
StackPane stackPane = new StackPane();
5353
Scene fxScene = new Scene(stackPane);
5454

55-
// set title, size, and add JavaFX scene to stage
55+
// set title, size, and add JavaFX scene to stage
5656
stage.setTitle("Line of Sight Location Sample");
5757
stage.setWidth(800);
5858
stage.setHeight(700);
@@ -70,7 +70,7 @@ public void start(Stage stage) throws Exception {
7070

7171
// add base surface for elevation data
7272
Surface surface = new Surface();
73-
surface.getElevationSources().add(new ArcGISTiledElevationSource( "http://elevation3d.arcgis" +
73+
surface.getElevationSources().add(new ArcGISTiledElevationSource("http://elevation3d.arcgis" +
7474
".com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"));
7575
scene.setBaseSurface(surface);
7676

@@ -79,7 +79,7 @@ public void start(Stage stage) throws Exception {
7979
sceneView.getAnalysisOverlays().add(analysisOverlay);
8080

8181
// initialize a line of sight analysis and add it to the analysis overlay
82-
Point observerLocation = new Point(-73.06958032962375,-49.253112971555446,2000, SpatialReferences.getWgs84());
82+
Point observerLocation = new Point(-73.06958032962375, -49.253112971555446, 2000, SpatialReferences.getWgs84());
8383
Point targetLocation = new Point(-73.079266999709162, -49.300457676730559, 1312, SpatialReferences.getWgs84());
8484
LocationLineOfSight lineOfSight = new LocationLineOfSight(observerLocation, targetLocation);
8585
analysisOverlay.getAnalyses().add(lineOfSight);

src/main/java/com/esri/samples/featurelayers/feature_layer_definition_expression/FeatureLayerDefinitionExpressionSample.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import javafx.scene.Scene;
2323
import javafx.scene.control.ToggleButton;
2424
import javafx.scene.layout.StackPane;
25-
import javafx.scene.layout.VBox;
2625
import javafx.stage.Stage;
2726

2827
import com.esri.arcgisruntime.data.ServiceFeatureTable;
@@ -45,7 +44,7 @@ public class FeatureLayerDefinitionExpressionSample extends Application {
4544
public void start(Stage stage) throws Exception {
4645

4746
try {
48-
// create stack pane and application scene
47+
// create stack pane and application scene
4948
StackPane stackPane = new StackPane();
5049
Scene scene = new Scene(stackPane);
5150
scene.getStylesheets().add(getClass().getResource("/css/style.css").toExternalForm());

src/main/java/com/esri/samples/featurelayers/generate_geodatabase/GenerateGeodatabaseSample.java

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2017 Esri.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
116
package com.esri.samples.featurelayers.generate_geodatabase;
217

318
import java.io.File;
@@ -74,11 +89,12 @@ public void start(Stage stage) throws Exception {
7489
generateButton.setDisable(true); //wait until sync task loaded
7590
ProgressBar progressBar = new ProgressBar();
7691
progressBar.visibleProperty().bind(Bindings.createBooleanBinding(() -> progressBar.getProgress() > 0,
77-
progressBar.progressProperty()));
92+
progressBar.progressProperty()));
7893
progressBar.setProgress(0.0);
7994

8095
// create a geodatabase sync task
81-
String featureServiceURL = "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer";
96+
String featureServiceURL =
97+
"https://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer";
8298
GeodatabaseSyncTask syncTask = new GeodatabaseSyncTask(featureServiceURL);
8399
syncTask.loadAsync();
84100
syncTask.addDoneLoadingListener(() -> generateButton.setDisable(false));
@@ -96,7 +112,7 @@ public void start(Stage stage) throws Exception {
96112

97113
// create generate geodatabase parameters for the current extent
98114
ListenableFuture<GenerateGeodatabaseParameters> defaultParameters = syncTask
99-
.createDefaultGenerateGeodatabaseParametersAsync(extent);
115+
.createDefaultGenerateGeodatabaseParametersAsync(extent);
100116
defaultParameters.addDoneListener(() -> {
101117
try {
102118
// set parameters
@@ -122,7 +138,7 @@ public void start(Stage stage) throws Exception {
122138
if (job.getStatus() == Job.Status.SUCCEEDED) {
123139
Geodatabase geodatabase = job.getResult();
124140
displayMessage("Geodatabase successfully generated", "Unregistering geodatabase since we're not " +
125-
"syncing it here");
141+
"syncing it here");
126142
geodatabase.loadAsync();
127143
geodatabase.addDoneLoadingListener(() -> {
128144
if (geodatabase.getLoadStatus() == LoadStatus.LOADED) {

src/main/java/com/esri/samples/na/offline_routing/OfflineRoutingSample.java

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
/*
2-
* Copyright 2017 Esri. Licensed under the Apache License, Version 2.0 (the
3-
* "License"); you may not use this file except in compliance with the License.
4-
* You may obtain a copy of the License at
5-
* http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
6-
* or agreed to in writing, software distributed under the License is
7-
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8-
* KIND, either express or implied. See the License for the specific language
9-
* governing permissions and limitations under the License.
2+
* Copyright 2017 Esri.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
1015
*/
11-
1216
package com.esri.samples.na.offline_routing;
1317

1418
import java.util.Arrays;

src/main/java/com/esri/samples/ogc/wms_layer_url/WmsLayerUrlSample.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,11 @@
2626
import javafx.stage.Stage;
2727

2828
import com.esri.arcgisruntime.layers.WmsLayer;
29-
import com.esri.arcgisruntime.layers.WmtsLayer;
3029
import com.esri.arcgisruntime.loadable.LoadStatus;
3130
import com.esri.arcgisruntime.mapping.ArcGISMap;
3231
import com.esri.arcgisruntime.mapping.Basemap;
3332
import com.esri.arcgisruntime.mapping.Viewpoint;
3433
import com.esri.arcgisruntime.mapping.view.MapView;
35-
import com.esri.arcgisruntime.ogc.wmts.WmtsLayerInfo;
36-
import com.esri.arcgisruntime.ogc.wmts.WmtsService;
37-
import com.esri.arcgisruntime.ogc.wmts.WmtsServiceInfo;
3834

3935
public class WmsLayerUrlSample extends Application {
4036

0 commit comments

Comments
 (0)